/* ============================================================
   Authentication Pages Stylesheet
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 
                 'Microsoft YaHei', sans-serif;
}

.auth-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.auth-logo.2fa-logo {
    background: linear-gradient(135deg, #f6c23e, #e74a3b);
    box-shadow: 0 8px 24px rgba(246, 194, 62, 0.4);
}

.auth-header h2 {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.auth-form .form-label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
}

.auth-form .form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 0.7rem 0.9rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.auth-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
}

.auth-form .input-group-text {
    border-radius: 10px 0 0 10px;
    border: 2px solid #e2e8f0;
    border-right: none;
    background: #f7fafc;
    color: #a0aec0;
}

.auth-form .input-group .form-control {
    border-radius: 0 10px 10px 0;
}

.auth-form .input-group .btn-outline-secondary {
    border: 2px solid #e2e8f0;
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.auth-form .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.auth-form .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.auth-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #edf2f7;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.security-notice {
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: #f0fff4;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #38a169;
}

.security-notice i {
    margin-right: 4px;
}

/* Password Strength */
.password-strength {
    margin-top: 4px;
}

.strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    width: 0%;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.75rem;
}

/* OTP Input */
.otp-input {
    font-size: 1.8rem !important;
    letter-spacing: 0.6em !important;
    text-align: center !important;
    font-weight: 700 !important;
}

/* 2FA Icon */
.2fa-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6c23e, #e74a3b);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(246, 194, 62, 0.3);
}

/* Alert */
.alert {
    border-radius: 10px;
    border: none;
    font-size: 0.9rem;
}

/* Form Check */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }
    .auth-logo {
        width: 56px;
        height: 56px;
        font-size: 2rem;
    }
}
