/* Auth pages specific styles */
:root {
    --wf-hero-bg: linear-gradient(135deg, #7c3aed 0%, #3b82f6 50%, #06b6d4 100%);
}

body.auth-page {
    background: var(--wf-hero-bg);
    background-size: 200% 200%;
    animation: gradientMove 10s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

/* Dark mode support */
[data-bs-theme="dark"] .auth-card {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

[data-bs-theme="dark"] .form-control {
    background-color: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}
[data-bs-theme="dark"] .form-control:focus {
    background-color: #0f172a;
    border-color: #3b82f6;
    color: #f8fafc;
}

.auth-brand {
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -1px;
    color: #0f172a;
    text-align: center;
    margin-bottom: 2rem;
}

[data-bs-theme="dark"] .auth-brand {
    color: #f8fafc;
}

.auth-brand span {
    color: #0284c7;
}

.password-strength-bar {
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

[data-bs-theme="dark"] .password-strength-bar {
    background-color: #334155;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak { width: 33%; background-color: #ef4444; }
.strength-medium { width: 66%; background-color: #f59e0b; }
.strength-strong { width: 100%; background-color: #22c55e; }

.mfa-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mfa-digit {
    width: 3rem;
    height: 3.5rem;
    font-size: 1.5rem;
    text-align: center;
    font-family: monospace;
    font-weight: 700;
    border-radius: 8px;
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.spinner-border {
    display: none;
}
.loading .spinner-border {
    display: inline-block;
}
.loading .btn-text {
    display: none;
}

/* Logo Visibility Switching Rules */
.marks-brand-logo-light {
    display: inline-block !important;
}
.marks-brand-logo-dark {
    display: none !important;
}

[data-bs-theme="dark"] .marks-brand-logo-light {
    display: none !important;
}
[data-bs-theme="dark"] .marks-brand-logo-dark {
    display: inline-block !important;
}
