/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a7a 50%, #1a365d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    width: 100%;
    padding: 20px;
}

.auth-container {
    max-width: 420px;
    margin: 0 auto;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #fff;
}

.auth-header h3 {
    color: #1a365d;
    margin-bottom: 4px;
}

.auth-body .form-label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.875rem;
}

.auth-body .input-group-text {
    background: #f7f8fc;
    border-right: none;
    color: #a0aec0;
}

.auth-body .form-control {
    border-left: none;
    padding: 10px 16px;
}

.auth-body .form-control:focus {
    box-shadow: none;
    border-color: #667eea;
}

.auth-body .input-group:focus-within .input-group-text {
    border-color: #667eea;
}

.auth-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

/* Dark mode */
[data-bs-theme="dark"] .auth-card {
    background: #1a1a2e;
}

[data-bs-theme="dark"] .auth-header h3 {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .auth-body .form-label {
    color: #a0aec0;
}

[data-bs-theme="dark"] .auth-body .input-group-text {
    background: rgba(255,255,255,0.06);
    border-right: none;
    color: #718096;
    border-color: #2d3748;
}

[data-bs-theme="dark"] .auth-body .form-control {
    border-color: #2d3748;
    color: #e2e8f0;
    background: transparent;
}

[data-bs-theme="dark"] .auth-body .form-control:focus {
    border-color: #667eea;
}

[data-bs-theme="dark"] .auth-body .input-group:focus-within .input-group-text {
    border-color: #667eea;
}

[data-bs-theme="dark"] .auth-footer {
    border-top-color: #2d3748;
}

[data-bs-theme="dark"] .auth-body .form-control::placeholder {
    color: #4a5568;
}

/* ============================================================
   AUTH — Mobile Responsive
   ============================================================ */
@media (max-width: 575.98px) {
    .auth-page {
        padding: 0;
        min-height: 100dvh;
        display: flex;
        align-items: center;
    }
    
    .auth-wrapper {
        padding: 16px;
    }
    
    .auth-container {
        max-width: 100%;
    }
    
    .auth-card {
        padding: 24px 20px !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    }
    
    .auth-logo {
        width: 64px;
        height: 64px;
    }
    
    .auth-logo i {
        font-size: 1.8rem !important;
    }
    
    .auth-header h3 {
        font-size: 1.3rem;
    }
    
    .auth-body .form-label {
        font-size: 0.82rem;
    }
    
    .auth-body .form-control {
        font-size: 16px !important; /* Prevent iOS zoom */
        padding: 12px 16px;
    }
    
    .auth-body .btn {
        min-height: 48px;
        font-size: 0.95rem;
    }
    
    .auth-footer .row.g-2 {
        margin: 0 -4px;
    }
    
    .auth-footer .col-4 {
        padding: 0 4px;
    }
}

@media (max-width: 380px) {
    .auth-card {
        padding: 20px 16px !important;
    }
    
    .auth-logo {
        width: 56px;
        height: 56px;
    }
    
    .auth-header h3 {
        font-size: 1.15rem;
    }
    
    .auth-footer .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 6px;
        text-align: center !important;
    }
}
