.auth-bg {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--bg); position: relative; padding: 20px;
}
.auth-bg::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.08) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 0.8; } }

.auth-card {
    background: var(--card-bg); backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 420px;
    box-shadow: var(--shadow-lg); position: relative; z-index: 1;
}
.auth-logo {
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 28px; color: #fff;
    box-shadow: 0 0 30px rgba(99,102,241,0.4);
}
.auth-title { text-align: center; font-size: 24px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--text-dim); }
.auth-footer a { color: var(--primary-light); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.auth-steps { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 28px; }
.auth-step { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.auth-step .step-num {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
    background: var(--border-light); color: var(--text-muted);
    transition: all 0.3s;
}
.auth-step.done { color: var(--success); }
.auth-step.done .step-num { background: var(--success); color: #fff; }
.auth-step.active { color: var(--text); }
.auth-step.active .step-num {
    background: linear-gradient(135deg, var(--primary), #8b5cf6); color: #fff;
    box-shadow: 0 0 12px rgba(99,102,241,0.4);
}
.auth-step-line { width: 18px; height: 2px; background: var(--border-light); border-radius: 2px; }
.auth-step-line.done { background: var(--success); }

.btn-modern.loading { opacity: 0.75; cursor: wait; pointer-events: none; }

/* ═══ AUTH MAGIC ═══ */

/* Auth card entrance */
.auth-card { animation: popIn 0.5s cubic-bezier(0.16,1,0.3,1); }
.auth-logo { transition: box-shadow 0.3s ease, transform 0.3s ease; animation: logoGlow 3s ease-in-out infinite; }
@keyframes logoGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(99,102,241,0.4); }
    50% { box-shadow: 0 0 46px rgba(139,92,246,0.6); }
}

/* Auth inputs: focus glow ring */
.auth-card .form-input:focus { box-shadow: 0 0 0 3px rgba(99,102,241,0.18), 0 0 24px rgba(99,102,241,0.12); }

/* Auth step transitions */
.auth-step .step-num { transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; }
.auth-step.active .step-num, .auth-step.done .step-num { transform: scale(1.08); }

/* Aurora background for auth pages */
.auth-bg { overflow: hidden; }
.auth-bg::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 600px at 12% 18%, rgba(99,102,241,0.18), transparent 60%),
        radial-gradient(500px 500px at 88% 82%, rgba(139,92,246,0.15), transparent 60%),
        radial-gradient(420px 420px at 80% 20%, rgba(34,211,238,0.10), transparent 60%);
    animation: authAurora 16s ease-in-out infinite alternate;
}
@keyframes authAurora {
    0% { transform: translate(0, 0); opacity: 0.7; }
    50% { transform: translate(-2%, 2%); opacity: 1; }
    100% { transform: translate(2%, -2%); opacity: 0.8; }
}
.auth-card, .auth-footer { position: relative; z-index: 1; }
