/* ============================================
   LOGIN PAGE - SPECIFIC STYLES
   Fully Responsive - Mobile First
   ============================================ */

body.login-page {
    background: var(--bg-section);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    min-height: calc(100vh - 200px);
}

/* Auth Container */
.auth-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    background: white;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}

.auth-tab {
    flex: 1;
    padding: 0.9rem 0.5rem;
    text-align: center;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.auth-tab.active {
    color: var(--primary);
    background: var(--bg-section);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px 2px 0 0;
}

/* Auth Forms */
.auth-form {
    background: white;
    padding: 1.5rem;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-card);
    display: none;
    animation: fadeIn 0.5s ease;
}

.auth-form.active {
    display: block;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-weight: 800;
}

.form-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-group label i {
    color: var(--accent);
    width: 18px;
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.input-with-icon {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
}

.password-toggle:hover {
    color: var(--primary);
}

/* OTP Input */
.otp-input-container {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin: 1rem 0;
}

.otp-input {
    width: 42px;
    height: 50px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
    outline: none;
}

.otp-input.filled {
    border-color: var(--success);
    background: rgba(39, 174, 96, 0.05);
}

/* Countdown Timer */
.countdown {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0.75rem 0;
}

.countdown span {
    color: var(--primary);
    font-weight: 600;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    margin: 0;
    line-height: 1.4;
}

.checkbox-group a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 0.9rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.submit-btn:disabled {
    background: var(--border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Links */
.form-links {
    text-align: center;
    margin-top: 1.25rem;
}

.form-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.form-links a:hover {
    text-decoration: underline;
}

/* Error/Success/Info Messages */
.error-message,
.success-message,
.info-message {
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    font-size: 0.85rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease;
}

.error-message {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.success-message {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.info-message {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info);
}

.error-message.show,
.success-message.show,
.info-message.show {
    display: flex;
}

/* Resend OTP */
.resend-otp {
    text-align: center;
    margin: 0.75rem 0;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    font-size: 0.85rem;
}

.resend-btn:disabled {
    color: var(--text-light);
    cursor: not-allowed;
    text-decoration: none;
}

/* Forgot Password Steps */
.forgot-password-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
}

.forgot-password-steps::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 35px;
    height: 35px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 50%;
    margin: 0 auto 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: var(--transition);
}

.step.active .step-circle {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.step.completed .step-circle {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.step-label {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 600;
}

.step.active .step-label {
    color: var(--primary);
}

/* Forgot Steps Container */
.forgot-steps-container {
    position: relative;
    min-height: 300px;
}

.forgot-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
    transition: var(--transition);
}

.forgot-step.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

/* Password Reset Success */
.password-reset-success {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.password-reset-success.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   TABLET (min-width: 576px)
   ============================================ */

@media (min-width: 576px) {
    .main-content {
        padding: 2rem 1.5rem;
    }
    
    .auth-container {
        max-width: 420px;
    }
    
    .auth-form {
        padding: 2rem;
        border-radius: var(--radius);
    }
    
    .auth-tabs {
        border-radius: var(--radius) var(--radius) 0 0;
    }
    
    .auth-tab {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .form-header h2 {
        font-size: 1.75rem;
    }
    
    .form-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .otp-input {
        width: 48px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
}

/* ============================================
   TABLET LANDSCAPE (min-width: 768px)
   ============================================ */

@media (min-width: 768px) {
    .main-content {
        padding: 3rem 2rem;
        min-height: calc(100vh - 300px);
    }
    
    .auth-container {
        max-width: 450px;
    }
    
    .auth-form {
        padding: 2.5rem;
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
    
    .form-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .form-group input {
        padding: 0.9rem;
    }
    
    .otp-input {
        width: 50px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .otp-input-container {
        gap: 0.5rem;
    }
}

/* ============================================
   DESKTOP (min-width: 1024px)
   ============================================ */

@media (min-width: 1024px) {
    .auth-form {
        padding: 3rem;
    }
    
    .form-header {
        margin-bottom: 2rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .submit-btn {
        padding: 1rem;
        font-size: 1.1rem;
    }
}
