/* ==========================================================================
   LifeWheel — Authentication pages (login / register)
   Split-screen: brand story panel + form. RTL, responsive, accessible.
   ========================================================================== */

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

/* ---- Brand / story panel ---- */
.auth-brand {
    position: relative;
    overflow: hidden;
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #eef2ff;
    background:
        radial-gradient(700px 400px at 80% -10%, rgba(139, 92, 246, 0.45), transparent 60%),
        radial-gradient(600px 500px at 0% 110%, rgba(96, 165, 250, 0.35), transparent 55%),
        linear-gradient(160deg, #1e1b4b, #0b1220 70%);
}
.auth-brand::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.5;
    pointer-events: none;
}
.auth-brand > * { position: relative; z-index: 1; }

.auth-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.3px; }
.auth-logo i { color: #a5b4fc; }

.auth-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.25; margin: 0 0 14px; }
.auth-hero p { color: #c7d2fe; font-size: 1.02rem; max-width: 460px; margin: 0; line-height: 1.7; }

.auth-features { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.auth-features li { display: flex; align-items: center; gap: 12px; color: #dbe2ff; font-weight: 600; }
.auth-features i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #c7d2fe; background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.16); }

.auth-wheel { align-self: center; width: min(320px, 60%); margin: 8px 0; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)); }
.auth-wheel .spoke { transform-origin: 160px 160px; animation: wheel-in 0.8s var(--ease-spring, ease) both; }
@keyframes wheel-in { from { opacity: 0; transform: scale(0.6) rotate(-30deg); } to { opacity: 1; transform: none; } }

.auth-quote { color: #a9b4d6; font-size: 0.86rem; }

/* ---- Form panel ---- */
.auth-main {
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
    background: var(--bg-color);
    background-image: var(--bg-gradient);
}
.auth-card { width: 100%; max-width: 430px; }
.auth-card h2 { font-size: 1.7rem; margin: 0 0 6px; }
.auth-card .auth-sub { color: var(--text-muted); margin: 0 0 26px; }

.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text-muted); }
.input-wrap { position: relative; }
.input-wrap > i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.input-wrap .form-control { padding-inline-start: 42px; }
.pw-toggle { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-faint); cursor: pointer; width: 34px; height: 34px; border-radius: 8px; }
.pw-toggle:hover { color: var(--text-main); background: var(--surface-2); }

.auth-submit { width: 100%; margin-top: 8px; }
.auth-alt { text-align: center; margin-top: 22px; color: var(--text-muted); font-size: 0.92rem; }
.auth-alt a { color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

.pw-meter { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.pw-meter > span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 0.3s ease, background 0.3s ease; }

@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-main { min-height: 100vh; }
}
