/**
 * Shared two-panel / full-screen shell for the 4 auth pages
 * (login, register, forgot-password, reset-password).
 *
 * Layout only — each page keeps its own inline <style> block for the card's
 * internal presentation (.auth-card-luxury, .form-group, .btn-auth, etc.)
 * and every existing id/name/class the pages' JS depends on is untouched.
 *
 * Desktop: two-panel split (visual/brand panel + form panel).
 * Mobile (<900px): visual panel hidden, form panel fills the screen edge to
 * edge — the card becomes the screen, no floating chrome.
 */

.auth-shell {
    /* Overrides the sitewide bare `section { padding: var(--spacing-2xl) 0; }`
       rule (theme.css), which would otherwise add a 30px band of the shell's
       own #0a0a0a background above and below the panels. */
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

/* ---------- Visual / brand panel (desktop only) ---------- */
.auth-visual-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3.5rem;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-visual-panel .auth-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.92) 100%);
    z-index: 1;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.28;
    pointer-events: none;
    background: #D4AF37;
    z-index: 1;
    animation: authOrbFloat 12s ease-in-out infinite;
}
.auth-orb-1 { width: 300px; height: 300px; top: -100px; right: -80px; }
.auth-orb-2 { width: 220px; height: 220px; bottom: -70px; left: -60px; animation-delay: -6s; }
.auth-orb-3 { width: 160px; height: 160px; top: 40%; left: 8%; opacity: 0.16; animation-delay: -3s; animation-duration: 16s; }

/* Fine dot-grid texture, very low opacity — pure ambience, no brand mark */
.auth-visual-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(212,175,55,0.35) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
    mask-image: linear-gradient(180deg, black, transparent 70%);
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    height: 100%;
    color: #fff;
}

/* Decorative rotating emblem ring — replaces the (now-redundant, the navbar
   already shows it) logo mark with pure ambient decoration. */
.auth-emblem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    animation: authFadeIn 700ms ease-out both;
}
.auth-emblem-ring {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px dashed rgba(212,175,55,0.45);
    animation: authSpin 22s linear infinite;
}
.auth-emblem-ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,0.2);
}
.auth-emblem-ring i,
.auth-emblem-ring svg {
    color: #D4AF37;
    font-size: 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
    animation: authSpin 22s linear infinite reverse;
}

.auth-visual-quote {
    max-width: 440px;
}
.auth-visual-quote .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #D4AF37;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    animation: authSlideUp 800ms cubic-bezier(.16,1,.3,1) 120ms both;
}
.auth-visual-quote h2 {
    /* Explicit color needed: the sitewide `h1,h2,...,h6 { color: var(--color-text-primary) }'
       rule (theme.css) has higher priority than inheriting #fff from
       .auth-visual-content, and would otherwise render this dark in light
       theme — invisible against the still-dark video panel behind it. */
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.9rem;
    animation: authSlideUp 800ms cubic-bezier(.16,1,.3,1) 220ms both;
}
.auth-visual-quote p {
    color: rgba(255,255,255,0.78);
    font-size: 1.02rem;
    line-height: 1.6;
    animation: authSlideUp 800ms cubic-bezier(.16,1,.3,1) 320ms both;
}

/* Thin animated gradient divider, sweeps in under the quote */
.auth-quote-divider {
    width: 64px;
    height: 2px;
    margin-top: 1.4rem;
    background: linear-gradient(90deg, #D4AF37, transparent);
    transform-origin: left;
    animation: authGrowLine 900ms cubic-bezier(.16,1,.3,1) 420ms both;
}

.auth-visual-badges {
    display: flex;
    gap: 2.25rem;
    flex-wrap: wrap;
    animation: authSlideUp 800ms cubic-bezier(.16,1,.3,1) 520ms both;
}
.auth-visual-badge { display: flex; align-items: center; gap: 0.6rem; transition: transform 260ms ease; }
.auth-visual-badge:hover { transform: translateY(-3px); }
.auth-visual-badge i,
.auth-visual-badge svg {
    color: #D4AF37;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    padding: 8px;
    border-radius: 50%;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.25);
}
.auth-visual-badge i { font-size: 1.05rem; }
.auth-visual-badge span { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

@keyframes authFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes authSlideUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes authOrbFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-22px) scale(1.05); } }
@keyframes authSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes authGrowLine { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }

/* ---------- Form panel ---------- */
.auth-form-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: var(--color-black);
    overflow-y: auto;
}

.auth-form-panel-inner {
    width: 100%;
    max-width: 440px;
    animation: authSlideUp 700ms cubic-bezier(.16,1,.3,1) 100ms both;
}

.auth-mobile-accent {
    display: none;
}

/* ---------- Responsive: full-screen single column on mobile ---------- */
@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .auth-visual-panel {
        display: none;
    }

    .auth-form-panel {
        padding: 0;
        min-height: 100vh;
        min-height: 100dvh;
        display: block;
        overflow-y: visible;
    }

    .auth-form-panel-inner {
        max-width: 100%;
        display: block;
        padding: 0;
        animation: authSlideUp 600ms cubic-bezier(.16,1,.3,1) 80ms both;
    }

    /* Thin shimmering accent bar marks the top of the screen where the
       visual panel would be — purely decorative, no brand mark (the navbar
       above already carries the logo). */
    .auth-mobile-accent {
        display: block;
        height: 3px;
        background: linear-gradient(90deg, transparent, #D4AF37, transparent);
        background-size: 200% 100%;
        animation: authShimmer 3.2s ease-in-out infinite;
    }
}

@keyframes authShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
