/* Shared by /login and /register. Scoped to avoid changing other forms. */
.auth-shell {
    --auth-bg: #f7f9f8;
    --auth-panel-bg: #fff;
    --auth-text: #182621;
    --auth-muted: #63706a;
    --auth-border: #dfe6e2;
    --auth-field: #f8faf9;
    --auth-accent: #147c56;
    --auth-brand-bg: #f8fafc;
    --auth-brand-border: #e2e8f0;
    --auth-brand-text: #0f172a;
    --auth-brand-green: #16a34a;
    display: grid;
    grid-template-columns: minmax(420px, 42%) minmax(0, 1fr);
    min-height: 100svh;
    padding: 16px;
    gap: 16px;
    background: var(--auth-bg);
    color: var(--auth-text);
}
[data-theme=dark] .auth-shell {
    --auth-bg: #0b100e;
    --auth-panel-bg: #141b18;
    --auth-text: #f5f8f6;
    --auth-muted: #a5b2ab;
    --auth-border: #2d3932;
    --auth-field: #19221d;
    --auth-accent: #56d5a3;
    --auth-brand-bg: #0e0e0e;
    --auth-brand-border: #1e1e1e;
    --auth-brand-text: #f0f0f0;
    --auth-brand-green: #22c55e;
}
.auth-shell *, .auth-shell *::before, .auth-shell *::after { box-sizing: border-box; }
.auth-form-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 30px clamp(28px, 4vw, 72px) 24px;
    background: var(--auth-panel-bg);
    border: 1px solid var(--auth-border);
    border-radius: 24px;
}
.auth-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 10px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--auth-brand-border); border-radius: 999px; background: var(--auth-brand-bg); color: var(--auth-brand-text); font-size: 18px; line-height: 28px; font-weight: 700; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.auth-brand-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--auth-brand-green); box-shadow: 0 0 8px rgba(34,197,94,.8); }
.auth-brand-period { color: var(--auth-brand-green); }
.auth-theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--auth-border); border-radius: 50%; color: var(--auth-muted); background: transparent; cursor: pointer; }
.auth-form-content { width: 100%; max-width: 400px; margin: auto; padding: 64px 0; }
.auth-shell .auth-panel { max-width: none; }
.auth-form-heading { margin-bottom: 30px; }
.auth-kicker { color: var(--auth-accent); font-size: 11px; font-weight: 700; letter-spacing: 2px; margin: 0 0 12px; }
.auth-shell .auth-title { color: var(--auth-text); font-size: clamp(30px, 2.7vw, 42px); line-height: 1.18; font-weight: 700; letter-spacing: -1.5px; margin: 0 0 12px; }
.auth-shell .auth-muted { color: var(--auth-muted); font-size: 14px; line-height: 1.7; }
.auth-shell .auth-link { color: var(--auth-accent); text-underline-offset: 4px; }
.auth-shell .auth-google-btn { min-height: 52px; border: 1px solid #dce3df; border-radius: 10px; font-size: 15px; font-weight: 600; }
.auth-shell .auth-google-btn svg { flex-shrink: 0; }
.auth-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.auth-form .form_err { font-size: 14px; }
.auth-form-divider { display: flex; align-items: center; gap: 14px; color: var(--auth-muted); font-size: 12px; margin: 2px 0; }
.auth-form-divider::before, .auth-form-divider::after { content: ''; flex: 1; height: 1px; background: var(--auth-border); }
.auth-field-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.auth-shell .auth-input { min-height: 52px; padding: 13px 15px; color: var(--auth-text); border: 1px solid var(--auth-border); background: var(--auth-field); border-radius: 10px; font-size: 16px; }
.auth-shell .auth-input::placeholder { color: var(--auth-muted); opacity: .8; }
.auth-field-hint { color: var(--auth-muted); font-size: 11px; margin: 7px 0 0; }
.auth-shell .auth-primary-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; background: #22b37e; border: 1px solid transparent; border-radius: 10px; color: #071c13; font-size: 15px; font-weight: 700; cursor: pointer; }
.auth-shell .auth-primary-btn:hover { background: #37c68f; }
.auth-shell .auth-primary-btn:disabled { opacity: .5; cursor: not-allowed; }
.auth-switch { text-align: center; margin-top: 26px; font-size: 13px; color: var(--auth-muted); }
.auth-switch a { margin-left: 4px; font-weight: 600; }
.auth-note { text-align: center; color: var(--auth-muted); font-size: 11px; line-height: 1.6; margin: 14px 0 0; }
.auth-shell .cf-turnstile { min-height: 65px; max-width: 100%; }
.auth-legal { margin-top: auto; color: var(--auth-muted); font-size: 10px; text-align: center; line-height: 1.8; }
.auth-legal > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.auth-legal a:hover { color: var(--auth-text); text-decoration: underline; }
.auth-otp-row { display: flex; justify-content: space-between; gap: 8px; margin: 28px 0; }
.auth-shell .auth-otp-input { min-width: 0; width: 100%; height: 56px; background: var(--auth-field); border-color: var(--auth-border); color: var(--auth-text); }
.auth-shell a:focus-visible, .auth-shell button:focus-visible { outline: 2px solid var(--auth-accent); outline-offset: 4px; }
.auth-showcase { position: relative; min-width: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 24px; padding: 46px 36px 22px; background: radial-gradient(ellipse at 50% 40%, #193b2c 0, #0c1611 65%); color: #f3f8f5; }
.auth-showcase-copy { text-align: center; position: relative; z-index: 1; }
.auth-eyebrow { display: flex; align-items: center; justify-content: center; gap: 8px; color: #b2c8bb; font-size: 10px; font-weight: 600; letter-spacing: 2px; margin: 0 0 16px; }
.auth-eyebrow > span { display: inline-block; width: 6px; height: 6px; background: #54d69c; border-radius: 50%; }
.auth-showcase-copy h2 { font-size: clamp(36px, 3.6vw, 58px); font-weight: 700; line-height: 1.1; letter-spacing: -2px; margin: 0 0 16px; }
.auth-showcase-copy h2 em { color: #65dca9; font-style: normal; }
.auth-showcase-copy > p:last-child { color: #b2c8bb; font-size: 13px; line-height: 1.7; margin: 0; }
.auth-reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 14px; position: relative; height: clamp(420px, 62vh, 720px); margin: 24px auto 0; max-width: 760px; width: 100%; overflow: hidden; mask-image: linear-gradient(transparent, #000 7%, #000 88%, transparent); }
.auth-reel-column { min-width: 0; }
.auth-reel-track { animation: auth-reel-up 48s linear infinite; animation-play-state: paused; }
.auth-reel-column:nth-child(2) .auth-reel-track { animation-name: auth-reel-down; animation-duration: 56s; }
.auth-reel-column:nth-child(3) .auth-reel-track { animation-duration: 62s; animation-delay: -14s; }
.auth-reel-group { display: grid; gap: 14px; padding-bottom: 14px; }
.auth-clip { min-width: 0; position: relative; aspect-ratio: 9 / 16; overflow: hidden; margin: 0; border: 1px solid #ffffff20; border-radius: 15px; background: #23372c; }
.auth-clip img, .auth-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-clip video { opacity: 0; transition: opacity .25s; }
.auth-clip.is-playing video { opacity: 1; }
.auth-clip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 42px 12px 15px; background: linear-gradient(transparent, #06110ee8); font-size: clamp(9px, .85vw, 13px); font-weight: 600; }
.auth-clip figcaption small { display: block; color: #d1ded6; font-size: 10px; font-weight: 400; margin-top: 3px; }
.auth-showcase-bottom { position: relative; display: flex; align-items: center; justify-content: flex-end; margin-top: auto; padding-top: 14px; }
.auth-motion-toggle { min-height: 44px; padding: 0 13px; font: inherit; font-size: 11px; color: #d3e2d9; border: 1px solid #ffffff28; border-radius: 24px; background: #ffffff08; cursor: pointer; }
.auth-showcase[data-moving=true] .auth-reel-track { animation-play-state: running; }
@keyframes auth-reel-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes auth-reel-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes auth-reel-across { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 1600px) { .auth-shell { grid-template-columns: minmax(520px, 40%) minmax(0, 1fr); } .auth-form-content { max-width: 440px; } }
@media (max-width: 1000px) and (min-width: 901px) { .auth-shell { grid-template-columns: 44% minmax(0, 1fr); } .auth-form-side { padding-left: 26px; padding-right: 26px; } .auth-showcase { padding-left: 20px; padding-right: 20px; } .auth-reels { gap: 9px; } .auth-clip figcaption { padding-left: 7px; padding-right: 7px; } .auth-clip figcaption small { display: none; } }
@media (max-width: 900px) {
    .auth-shell { display: flex; flex-direction: column; padding: 0; gap: 0; min-height: 100svh; background: var(--auth-panel-bg); }
    .auth-form-side { padding: 18px 24px 24px; border: 0; border-radius: 0; }
    .auth-brand-row { width: 100%; max-width: 440px; margin: 0 auto; }
    .auth-brand { padding-inline: 10px; font-size: 16px; line-height: 24px; }
    .auth-theme-toggle { width: 40px; height: 40px; }
    .auth-form-content { padding: 36px 0 26px; max-width: 400px; }
    .auth-shell .auth-title { font-size: 32px; letter-spacing: -1px; }
    .auth-form-heading { margin-bottom: 24px; }
    .auth-form { gap: 17px; }
    .auth-switch { margin-top: 22px; }
    .auth-showcase { border-radius: 24px 24px 0 0; padding: 28px 0 14px; }
    .auth-showcase-copy { padding: 0 24px; }
    .auth-eyebrow { margin-bottom: 12px; font-size: 9px; letter-spacing: 1.6px; }
    .auth-showcase-copy h2 { font-size: 29px; letter-spacing: -1px; margin-bottom: 10px; }
    .auth-showcase-copy h2 br { display: none; }
    .auth-showcase-copy h2 em::before { content: ' '; }
    .auth-showcase-copy > p:last-child { font-size: 11px; }
    .auth-reels { display: flex; gap: 12px; height: 232px; max-width: none; margin-top: 22px; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
    .auth-reels > .auth-clip { flex: 0 0 130px; }
    .auth-reels[data-layout=mobile] > .auth-reel-track { display: flex; width: max-content; flex-shrink: 0; animation: auth-reel-across 70s linear infinite; animation-play-state: paused; }
    .auth-reels[data-layout=mobile] .auth-reel-group { display: flex; gap: 12px; padding: 0 12px 0 0; }
    .auth-reels[data-layout=mobile] .auth-clip { flex: 0 0 130px; width: 130px; }
    .auth-showcase[data-moving=true] .auth-reels[data-layout=mobile] > .auth-reel-track { animation-play-state: running; }
    .auth-clip { border-radius: 12px; }
    .auth-clip figcaption { font-size: 10px; padding: 32px 8px 10px; }
    .auth-clip figcaption small { font-size: 8px; }
    .auth-showcase-bottom { padding: 8px 24px 0; font-size: 9px; }
}
/* Turnstile's flexible widget has a 300px minimum, including on small phones. */
@media (max-width: 360px) { .auth-form-side { padding-left: clamp(2px, calc((100% - 300px) / 2), 18px); padding-right: clamp(2px, calc((100% - 300px) / 2), 18px); } .auth-shell .auth-title { font-size: 29px; } .auth-showcase-copy h2 { font-size: 26px; } .auth-showcase-bottom { padding-left: 18px; padding-right: 18px; } .auth-otp-row { gap: 5px; } }
@media (prefers-reduced-motion: reduce) { .auth-reel-track { animation: none !important; } .auth-clip video { transition: none; } }
