/* ===========================
   AUTH PAGES STYLES
   =========================== */

/* Auth Container */
.auth-container {
    display: flex;
    min-height: 100vh;
}

/* Left Side - Image/Branding */
.auth-left-side {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 41, 147, 0.95) 0%, rgba(188, 158, 80, 0.95) 100%),
                url('/images/auth-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.auth-overlay {
    text-align: center;
    z-index: 2;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.auth-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 20px;
    font-weight: 300;
}

/* Right Side - Form */
.auth-right-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #ffffff;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 480px;
}

.auth-header {
    margin-bottom: 32px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Form Styles */
.auth-form {
    margin-top: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.form-input:focus {
    outline: none;
    border-color: var(--navy);
    background-color: #ffffff;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--navy);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Form Row */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--navy);
}

/* Links */
.forgot-link {
    font-size: 0.9rem;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--golden);
}

.auth-link {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--golden);
}

.back-home-link {
    color: #6b7280;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-home-link:hover {
    color: var(--navy);
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--navy);
    color: var(--golden);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 41, 147, 0.25);
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
}

.auth-divider span {
    position: relative;
    background-color: #ffffff;
    padding: 0 16px;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    width: 100%;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #ffffff;
}

.social-btn:hover {
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-btn {
    color: #ea4335;
}

.facebook-btn {
    color: #1877f2;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Alerts */
.alert-success {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

/* OTP Specific Styles */
.otp-icon,
.forgot-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--golden) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.otp-icon i,
.forgot-icon i {
    font-size: 36px;
    color: white;
}

.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}

.otp-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: var(--navy);
    background-color: #ffffff;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-left-side {
        min-height: 250px;
        padding: 30px 20px;
    }

    .auth-right-side {
        padding: 30px 20px;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .otp-input {
        width: 45px;
        height: 50px;
        font-size: 20px;
    }

    .otp-input-group {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .auth-left-side {
        min-height: 200px;
        padding: 20px;
    }

    .auth-logo h1 {
        font-size: 1.5rem;
    }

    .auth-tagline {
        font-size: 0.9rem;
    }

    .otp-input {
        width: 40px;
        height: 45px;
        font-size: 18px;
    }
}