:root{color-scheme:dark}
*{box-sizing:border-box}
html,body{min-width:320px;min-height:100%;margin:0}
body{background:var(--ds-bg,#111);color:var(--ds-text,#f5f5f5);font:15px/1.5 Onest,system-ui,sans-serif}
button,input{font:inherit}button{cursor:pointer}a{color:inherit}
.welcome-shell{min-height:100svh;display:grid;grid-template-columns:minmax(0,1fr) minmax(400px,1fr)}
.welcome-art{position:relative;display:flex;align-items:flex-end;min-width:0;overflow:hidden;padding:60px;background:#181818 url("assets/welcome-nebula-poster.jpg") center/cover no-repeat}
.welcome-art::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.34);pointer-events:none}
.welcome-art-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(.18) contrast(1.04) brightness(.82)}
.welcome-art-copy{position:relative;z-index:1;max-width:620px;text-shadow:0 2px 28px rgba(0,0,0,.68)}
.welcome-kicker{font-size:14px;color:#d2d2d2}
.welcome-art h1{margin:20px 0 24px;min-height:3em;font:600 clamp(48px,5.6vw,80px)/1 Cormorant Garamond,Georgia,serif;letter-spacing:-.02em}
.welcome-art h1>span:first-child{white-space:pre-line}
.welcome-art p{max-width:430px;color:#e0e0e0;font-size:15px;line-height:1.65}
.typing-caret{display:inline-block;width:2px;height:.82em;margin-left:6px;vertical-align:-.04em;background:currentColor;animation:typingCaret 760ms steps(1,end) infinite}
@keyframes typingCaret{50%{opacity:0}}
.welcome-panel{width:100%;max-width:560px;margin:auto auto 0;min-width:0;min-height:0;padding:56px 52px 36px}
.welcome-panel .welcome-brand{display:flex;align-items:center;gap:14px;padding:0;transform:none}
.welcome-brand .brand-wordmark{font-size:36px;line-height:1.2}
.welcome-intro{margin-top:26px}
.welcome-intro h2{margin:0 0 10px;font-size:30px;line-height:1.15}
.welcome-intro p{margin:0;color:var(--ds-secondary,#bbb);font-size:14px;line-height:1.5}
.auth-switch{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:22px;padding:4px;border:1px solid #ffffff12;border-radius:999px;background:var(--ds-surface,#181818)}
.auth-switch-indicator{position:absolute;z-index:0;top:4px;bottom:4px;left:4px;width:calc((100% - 12px)/2);border-radius:999px;background:var(--ds-raised,#292929);transition:transform 220ms cubic-bezier(.2,.8,.2,1)}
.auth-switch.is-login .auth-switch-indicator{transform:translateX(calc(100% + 4px))}
.auth-switch button{position:relative;z-index:1;min-width:0;min-height:44px;padding:8px 10px;border:0;border-radius:999px;background:transparent;color:var(--ds-secondary,#bbb);transition:color 160ms ease}
.auth-switch button.active{color:var(--ds-text,#f5f5f5)}
#welcomeForm{display:grid;gap:14px;margin-top:18px;min-height:0}
.welcome-form-shell{min-height:0;display:flex;flex-direction:column;justify-content:flex-start}
#welcomeForm[hidden],#legalConsentForm[hidden],[hidden]{display:none!important}
.welcome-panel label>span{display:block;margin-bottom:7px;font-size:13px;color:var(--ds-secondary,#bbb)}
.welcome-panel input:not([type=checkbox]){width:100%;height:48px;padding:10px 14px;border:0;border-radius:14px;background:var(--ds-raised,#292929);color:var(--ds-text,#f5f5f5);font-size:16px;outline-offset:3px}
.welcome-panel input:focus-visible{outline:2px solid var(--ds-text,#f5f5f5)}
.password-field{display:block;position:relative}
.password-field input{padding-right:56px!important}
.password-field button{position:absolute;right:2px;top:2px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:var(--ds-secondary,#bbb)}
.password-field svg{width:19px;height:19px}
.terms-consent{display:grid;grid-template-columns:20px 1fr;gap:10px;align-items:start;min-height:44px;cursor:pointer;color:var(--ds-secondary,#bbb)}
.terms-consent input{appearance:none;width:19px;height:19px;margin:2px 0 0;border:1px solid #77717d;border-radius:6px;background:#1c191f;display:grid;place-content:center;cursor:pointer}
.terms-consent input::before{content:"";width:9px;height:5px;border:solid #17151a;border-width:0 0 2px 2px;transform:rotate(-45deg) scale(0);transition:transform 120ms ease}
.terms-consent input:checked{border-color:#e6e0e9;background:#e6e0e9}
.terms-consent input:checked::before{transform:rotate(-45deg) scale(1)}
.terms-consent input:focus-visible{outline:2px solid #f3d8e2;outline-offset:3px}
.terms-consent input:disabled{opacity:.45;cursor:not-allowed}
.welcome-panel .terms-consent>span{margin:0;font-size:12px;line-height:1.5}
.terms-consent a,.welcome-note a{color:inherit;text-underline-offset:3px}
.welcome-submit{width:100%;min-height:48px;padding:10px 18px;border:0;border-radius:999px;background:var(--ds-text,#f5f5f5);color:var(--ds-bg,#111);font-weight:600}
.welcome-submit:disabled{opacity:.55;cursor:wait}
.welcome-submit span{margin-left:8px}
.welcome-error,.welcome-status{margin:0;padding:12px 14px;border-radius:12px;background:var(--ds-raised,#292929);color:var(--ds-text,#f5f5f5);font-size:13px}
.welcome-recovery{margin:8px 0 0;font-size:13px}
.welcome-recovery a,.guest-link{min-height:44px;display:inline-flex;align-items:center;color:var(--ds-secondary,#bbb);text-underline-offset:3px}
.guest-link{margin-top:8px;font-size:14px}
.welcome-note{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 0;font-size:12px;color:var(--ds-muted,#999)}
.welcome-note a{min-height:32px;display:inline-flex;align-items:center}
#legalConsentForm{margin-top:24px}
#legalConsentForm h2{margin:0 0 12px;font-size:26px}
#legalConsentForm p{color:var(--ds-secondary,#bbb)}
#legalConsentForm .terms-consent{margin:16px 0}
.legal-exit{width:100%;min-height:44px;margin-top:12px;padding:10px 16px;border:0;border-radius:999px;background:var(--ds-raised,#292929);color:var(--ds-text,#f5f5f5)}
.legal-account-link{min-height:44px;display:flex;align-items:center;justify-content:center;margin-top:12px;font-size:13px}
.legal-consent-active :is(.guest-link,.welcome-recovery){display:none}
@media(max-width:820px){
  .welcome-shell{display:block;min-height:100svh}
  .welcome-art{display:none}
  .welcome-panel{padding:40px 20px 28px;max-width:460px;min-height:720px;transform:none}
  .welcome-brand .brand-wordmark{font-size:32px}
  .welcome-intro{margin-top:24px}
  .welcome-intro h2{font-size:28px}
  .auth-switch{margin-top:18px}
  #welcomeForm{gap:12px;margin-top:16px}
  .welcome-form-shell{min-height:500px}
  .welcome-note{margin-top:8px}
}
@media(prefers-reduced-motion:reduce){.typing-caret,.welcome-art-video{display:none}.auth-switch-indicator{transition:none}}
