:root {
  color-scheme: light;
  --auth-paper: #f5f5f5;
  --auth-surface: #fff;
  --auth-ink: #191919;
  --auth-muted: #606060;
  --auth-rule: #d2d2d2;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body.auth-page { margin: 0; background: var(--auth-paper); color: var(--auth-ink); line-height: 1.55; }
button, input { font: inherit; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.auth-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.auth-story { grid-column: 1; grid-row: 1; background: #151515; color: #f5f5f5; padding: clamp(1.5rem, 4vw, 4rem); position: relative; display: flex; flex-direction: column; overflow: hidden; }
.auth-brand { display: flex; align-items: center; gap: .6rem; font-size: 1.7rem; font-weight: 650; letter-spacing: -.07em; }
.auth-brand-logo { display: block; width: 184px; max-width: 100%; height: auto; border-radius: 12px; background: #fff; padding: 8px; }
.auth-mobile-brand .auth-brand-logo, .auth-single .auth-brand-logo { width: 144px; }
#register-form .auth-access-note, #auth-form .auth-access-note { margin: .1rem 0 .8rem; }
#register-form .auth-primary { width: 100%; }
.auth-access-note a { color: var(--auth-ink); text-underline-offset: .2em; }
.auth-brand-symbol { width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid currentColor; border-radius: .55rem; font-size: 1.2rem; letter-spacing: 0; }
.auth-story-content { margin-top: clamp(3rem, 7vh, 6rem); position: relative; z-index: 1; }
.auth-eyebrow { margin: 0 0 1rem; font-size: .72rem; font-weight: 650; letter-spacing: .13em; color: var(--auth-muted); }
.auth-story .auth-eyebrow { color: #adadad; }
.auth-story h2 { font-size: clamp(2.75rem, 5.3vw, 5.4rem); font-weight: 600; line-height: 1.03; letter-spacing: -.065em; margin: 0; overflow-wrap: anywhere; }
.auth-story-note { margin: 1.5rem 0 0; font-size: 1rem; color: #bcbcbc; }
.auth-journey { display: block; width: calc(100% + 8rem); height: clamp(6rem, 16vh, 12rem); margin: 1.5rem -4rem; flex-shrink: 0; animation: journey-entrance 1.8s ease-out both; }
.auth-lane { stroke: #444; stroke-width: 1; }
.auth-trace { stroke: #dedede; stroke-width: 1.7; stroke-dasharray: 1; animation: trace-forward 2.6s cubic-bezier(.2,.65,.2,1) both; }
.auth-quote { margin: auto 0 0; position: relative; }
.auth-quote blockquote { margin: 0 0 1.1rem; max-width: 26rem; font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.3; }
.auth-quote cite { display: block; font-style: normal; font-size: .85rem; color: #e0e0e0; }
.auth-quote figcaption span { font-size: .75rem; color: #adadad; }
.auth-quote-source { font-size: .75rem; color: #bcbcbc; max-width: 29rem; margin-top: .6rem; }
.auth-quote-source summary { cursor: pointer; padding-block: .7rem; min-height: 44px; }
.auth-quote-source p { margin: .4rem 0; }
.auth-motion-toggle { background: none; border: 0; border-top: 1px solid #414141; border-radius: 0; color: #bcbcbc; padding: .8rem 0; text-align: left; font-size: .75rem; min-height: 44px; margin-top: 1rem; align-self: flex-start; }
.auth-motion-toggle:hover { color: #fff; }
.auth-mobile-brand { display: none; }
.auth-entry { grid-column: 2; grid-row: 1; padding: 2.5rem clamp(1.5rem, 6vw, 6rem); display: flex; flex-direction: column; justify-content: center; }
.auth-card { width: 100%; max-width: 25rem; margin: auto; min-width: 0; }
.auth-card h1 { font-weight: 600; font-size: clamp(2rem, 3.2vw, 2.7rem); line-height: 1.12; letter-spacing: -.05em; margin: 0 0 .75rem; overflow-wrap: anywhere; }
.auth-description { color: var(--auth-muted); margin: 0 0 2rem; }
:is(#auth-form, #register-form) { display: grid; gap: .65rem; }
:is(#auth-form, #register-form) label { font-size: .88rem; font-weight: 550; margin-top: .6rem; }
:is(#auth-form, #register-form) input { min-width: 0; width: 100%; min-height: 52px; padding: .85rem 1rem; border: 1px solid var(--auth-rule); border-radius: .7rem; color: var(--auth-ink); background: var(--auth-surface); font-size: 1rem; transition: border-color .18s ease, box-shadow .18s ease; }
:is(#auth-form, #register-form) input:hover { border-color: #858585; }
:is(#auth-form, #register-form) input:focus { border-color: #191919; box-shadow: 0 0 0 1px #191919; }
.auth-primary { min-height: 52px; margin-top: 1.1rem; padding: .85rem 1rem; border: 1px solid #191919; border-radius: .7rem; background: #191919; color: #fff; font-weight: 600; transition: background .15s ease; }
.auth-primary:hover { background: #383838; }
.auth-primary:active { background: #050505; }
.auth-primary:disabled { cursor: wait; background: #606060; border-color: #606060; }
.auth-feedback { font-size: .88rem; background: #ececec; color: #202020; padding: .9rem 1rem; border-radius: .65rem; overflow-wrap: anywhere; margin: 1rem 0; }
.auth-error { border-inline-start: 3px solid #191919; }
.auth-access-note { font-size: .82rem; color: var(--auth-muted); margin: 1.5rem 0 2rem; }
.auth-privacy { display: flex; align-items: flex-start; gap: .6rem; border-top: 1px solid var(--auth-rule); padding-top: 1.2rem; color: var(--auth-muted); font-size: .78rem; }
.auth-privacy p { margin: 0; }
.auth-footer { color: var(--auth-muted); font-size: .72rem; margin: 3rem auto 0; text-align: center; }
.auth-hint { color: var(--auth-muted); font-size: .8rem; margin: 0 0 .4rem; }
.auth-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--auth-ink); font-size: .85rem; margin-top: 1.3rem; text-underline-offset: .2em; }
.auth-single { max-width: 35rem; margin: auto; padding: clamp(1.5rem, 5vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; }
.auth-single .auth-brand { width: 100%; max-width: 25rem; margin: 0 auto; }
.auth-single .auth-card { margin: 0 auto; }
.auth-checking { display: flex; gap: .35rem; margin-bottom: 2rem; }
.auth-checking span { width: 1.8rem; height: .2rem; background: #999; border-radius: 1rem; animation: checking-entry 1.3s ease both; }
.auth-checking span:nth-child(2) { animation-delay: .15s; }
.auth-checking span:nth-child(3) { animation-delay: .3s; }
body[data-motion=off] .auth-journey, body[data-motion=off] .auth-trace { animation: none; }
@keyframes journey-entrance { from { opacity: 0; } to { opacity: 1; } }
@keyframes trace-forward { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes checking-entry { from { opacity: .25; transform: scaleX(.2); } to { opacity: 1; transform: scaleX(1); } }
@media (max-width: 900px) {
  .auth-shell:not(.auth-single) { grid-template-columns: 1fr; }
  .auth-story { padding: 1.8rem; }
  .auth-story-content { margin-top: 2rem; }
  .auth-story h2 { font-size: clamp(2.4rem, 8vw, 4rem); }
  .auth-story-note { margin-top: 1rem; }
  .auth-journey { height: 5rem; margin-block: 1rem; }
  .auth-entry { grid-column: 1; grid-row: 1; min-height: 100svh; padding: 2rem 1.5rem; }
  .auth-story { grid-column: 1; grid-row: 2; }
  .auth-mobile-brand { display: flex; margin-bottom: 2rem; }
  .auth-story-brand { display: none; }
  .auth-story-content { margin-top: .5rem; }
  .auth-quote blockquote { font-size: 1.3rem; }
  .auth-motion-toggle { margin-top: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .auth-motion-toggle { display: none; }
}
@media (prefers-contrast: more) { :root { --auth-muted: #383838; --auth-rule: #777; } .auth-story-note, .auth-quote figcaption span, .auth-quote-source { color: #ededed; } }
@media (forced-colors: active) { .auth-story { background: Canvas; color: CanvasText; } .auth-primary { border: 1px solid ButtonText; } .auth-lane, .auth-trace { stroke: CanvasText; } }
