/* Authentication Pages Modern Styling */

/* ===== GLOBAL AUTHENTICATION STYLES ===== */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

/* Wider card for registration forms */
.auth-card.registration-card {
    max-width: 800px;
}

/* Platform-specific card sizing */
.auth-card.platform-card {
    max-width: 700px !important;
    width: 100%;
}

/* ===== LOGO STYLING ===== */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* ===== FORM STYLING ===== */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
    background-color: white;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-control.is-valid {
    border-color: #198754;
    background-color: #f0fff4;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.form-select:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
    background-color: white;
}

/* ===== INPUT GROUP STYLING ===== */
.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #6c757d;
    padding: 0.75rem 1rem;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.input-group .form-control:focus {
    border-left: none;
}

/* ===== BUTTON STYLING ===== */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #157347 0%, #146c43 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #157347 0%, #146c43 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5c636a 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5c636a 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

.btn-link {
    color: #198754;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #157347;
    text-decoration: underline;
}

/* ===== ALERT STYLING ===== */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.alert-success {
    background-color: #f0fff4 !important;
    color: #0f5132 !important;
    border-left: 4px solid #198754 !important;
}

.alert-warning {
    background-color: #fffbeb;
    color: #d97706;
    border-left: 4px solid #d97706;
}

.alert-info {
    background-color: #eff6ff;
    color: #2563eb;
    border-left: 4px solid #2563eb;
}

/* ===== PLATFORM SPECIFIC STYLES ===== */
/* Green theme platform cards */
.platform-info-card {
    background-color: #f8f9fa;
    border: none;
    border-radius: 12px;
}

.platform-info-card .card-body {
    padding: 1rem;
}

.platform-info-card .card-title {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.platform-info-card .card-title i {
    margin-right: 0.5rem;
}

/* Platform icon colors */
.platform-icon-primary {
    color: #198754;
}

.platform-icon-secondary {
    color: #20c997;
}

.platform-icon-tertiary {
    color: #157347;
}

.platform-icon-quaternary {
    color: #0f5132;
}

/* Platform stats cards */
.platform-stat-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.platform-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.1);
}

.platform-stat-card .stat-icon {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.platform-stat-card .stat-number {
    font-weight: 600;
    color: #495057;
}

.platform-stat-card .stat-label {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Platform action buttons */
.platform-btn-primary {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border: none;
    color: white;
}

.platform-btn-primary:hover {
    background: linear-gradient(135deg, #157347 0%, #146c43 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.3);
}

.platform-btn-secondary {
    background: linear-gradient(135deg, #20c997 0%, #198754 100%);
    border: none;
    color: white;
}

.platform-btn-secondary:hover {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.3);
}

/* Platform footer links */
.platform-footer-link {
    color: #198754;
}

.platform-footer-link:hover {
    color: #157347;
    text-decoration: none;
}

/* ===== VALIDATION STYLING ===== */
.text-danger {
    color: #dc3545 !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* ===== UTILITY CLASSES ===== */
.text-muted {
    color: #6c757d !important;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: #6c757d;
    line-height: 1.6;
}

.font-bold {
    font-weight: 600;
}

.rounded-circle-5 {
    border-radius: 50%;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 576px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        margin: 0 1rem;
        border-radius: 12px;
    }
    
    .auth-card.platform-card {
        max-width: 100%;
        margin: 0 0.5rem;
    }
    
    .logo-image {
        width: 45px;
        height: 45px;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .platform-stat-card {
        padding: 0.75rem;
    }
    
    .platform-stat-card .stat-icon {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .auth-card {
        max-width: 100%;
    }
    
    .auth-card.registration-card {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .auth-card.platform-card {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .logo-image {
        width: 50px;
        height: 50px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== FOCUS VISIBLE ===== */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid #198754;
    outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .auth-card {
        animation: none;
    }
    
    .btn:hover,
    .platform-stat-card:hover {
        transform: none;
    }
    
    .logo-image:hover {
        transform: none;
    }
}
