

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/dm-serif-display-latin-400-normal.woff2') format('woff2'); }


:root {
  --stage:        #F5F1EB;           
  --surface:      #FFFFFF;
  --surface-soft: rgba(255,255,255,.62);
  --ink:          #111111;
  --muted:        #5F6672;           
  --line:         #E5E7EB;
  --line-warm:    #DCD5CB;           
  --accent:       #FF6B35;           
  --accent-text:  #9A3412;           
  --accent-btn:   #C2410C;
  --btn-bg:       #111111;
  --btn-fg:       #FFFFFF;
  --btn-hover:    #333333;
  --btn-off-bg:   #DAD4CB;           
  --btn-off-fg:   #6E6A64;
  --ring:         rgba(255,107,53,.28);
  --glow-a:       rgba(255,107,53,.10);
  --glow-b:       rgba(0,78,137,.06);
  --doek:         #0A0A0A;
  --serif:        'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease:         cubic-bezier(.4,0,.2,1);
  --ease-out:     cubic-bezier(0,0,.2,1);
  --t:            200ms;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --stage: #0F0F0F; --surface: #181818; --surface-soft: rgba(24,24,24,.6);
    --ink: #F5F5F5; --muted: #A3A3A3; --line: #2F2F2F; --line-warm: #2F2F2F;
    --accent-text: #FF6B35; --accent-btn: #FF6B35;
    --btn-bg: #FF6B35; --btn-fg: #111111; --btn-hover: #FF8555;
    --btn-off-bg: #262626; --btn-off-fg: #8A8A8A;
    --ring: rgba(255,107,53,.35); --glow-a: rgba(255,107,53,.10); --glow-b: rgba(0,78,137,.14);
    --doek: #050505;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --stage: #0F0F0F; --surface: #181818; --surface-soft: rgba(24,24,24,.6);
  --ink: #F5F5F5; --muted: #A3A3A3; --line: #2F2F2F; --line-warm: #2F2F2F;
  --accent-text: #FF6B35; --accent-btn: #FF6B35;
  --btn-bg: #FF6B35; --btn-fg: #111111; --btn-hover: #FF8555;
  --btn-off-bg: #262626; --btn-off-fg: #8A8A8A;
  --ring: rgba(255,107,53,.35); --glow-a: rgba(255,107,53,.10); --glow-b: rgba(0,78,137,.14);
  --doek: #050505;
  color-scheme: dark;
}


*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--stage);
  min-height: 100vh; min-height: 100dvh;
}
a { color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.nowrap { white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--stage); padding: 10px 16px; border-radius: 999px; font-size: 14px; text-decoration: none; transition: top var(--t) var(--ease); }
.skip-link:focus { top: 12px; }


.wordmark {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wordmark-dot { color: #FF6B35; }


.auth-shell { min-height: 100vh; min-height: 100dvh; display: flex; }
.auth-stage {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1 1 auto; min-width: 0;
  display: grid; grid-template-rows: auto 1fr auto;
  min-height: 100vh; min-height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.auth-stage::before, .auth-stage::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
}
.auth-stage::before {
  width: 720px; height: 720px; top: -260px; right: -220px;
  background: radial-gradient(circle, var(--glow-a) 0%, transparent 68%);
}
.auth-stage::after {
  width: 520px; height: 520px; bottom: -180px; left: -200px;
  background: radial-gradient(circle, var(--glow-b) 0%, transparent 70%);
}

.auth-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 40px;
}
.auth-wordmark { font-size: 28px; display: inline-flex; align-items: center; min-height: 44px; }
.pill-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: .01em;
  color: var(--ink); text-decoration: none; background: rgba(17,17,17,.05);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.pill-link:hover { background: rgba(17,17,17,.09); }
:root[data-theme="dark"] .pill-link { background: rgba(255,255,255,.07); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill-link { background: rgba(255,255,255,.07); } }

.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: 24px 24px 56px;
}
.auth-main:focus { outline: none; }
.auth-panel { width: 100%; max-width: 400px; }

.auth-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding: 20px 40px 28px; font-size: 13px; color: var(--muted);
}
.auth-foot nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.auth-foot a { color: var(--muted); text-decoration: none; padding: 10px 0; transition: color var(--t) var(--ease); }
.auth-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }


.auth-view { text-align: center; }
.auth-view.is-entering { animation: viewIn 420ms var(--ease-out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 14px;
}
.auth-view h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 6.6vw, 3.25rem); line-height: 1.05; letter-spacing: -.02em;
  color: var(--ink); margin: 0 auto 16px; max-width: 16ch; text-wrap: balance;
}
.auth-view h1:focus { outline: none; }
.dot { color: var(--accent); }
.lead {
  font-size: 16px; line-height: 1.65; color: var(--muted);
  max-width: 340px; margin: 0 auto 36px; text-wrap: pretty;
}
.lead strong { color: var(--ink); font-weight: 600; }
.small-print { font-size: 14px; color: var(--muted); max-width: 320px; margin: -16px auto 32px; line-height: 1.6; }

.notice {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 28px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-warm);
  font-size: 14px; font-weight: 500; color: var(--ink);
  animation: viewIn 420ms var(--ease-out) both;
}
.notice::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }


.auth-form { text-align: left; }
.field { margin-bottom: 6px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.field-row label {
  font-size: 14px; font-weight: 500; color: var(--ink);
  transition: color var(--t) var(--ease);
}
.field-link {
  font-size: 13.5px; font-weight: 500; color: var(--muted); text-decoration: none;
  padding: 10px 0; margin: -10px 0; 
  transition: color var(--t) var(--ease);
}
.field-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.field-control { position: relative; }
.field-control input {
  width: 100%; height: 54px; padding: 0 18px;
  font: 400 16px/1.2 var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-warm); border-radius: 14px;
  appearance: none; -webkit-appearance: none;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.field--password .field-control input { padding-right: 56px; }
.field-control input::placeholder { color: #9AA0A8; opacity: 1; }
.field-control input:hover { border-color: #C9C1B6; }
.field-control input:focus,
.field-control input:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}

.auth-form:focus-within .field:not(:focus-within) .field-control input:not(:hover) { background: var(--surface-soft); }
.auth-form:focus-within .field:not(:focus-within) .field-row label { color: var(--muted); }
.field.is-invalid .field-control input { border-color: var(--accent-btn); }
.field.is-invalid .field-control input:focus { box-shadow: 0 0 0 4px var(--ring); }
.field.is-valid .field-control input { border-color: var(--line-warm); }


.field-control input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--surface) inset;
  caret-color: var(--ink);
}
.field-control input:-webkit-autofill:focus { box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 4px var(--ring); }


.reveal {
  position: absolute; top: 5px; right: 5px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent;
  color: var(--muted); cursor: pointer; transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.reveal:hover { color: var(--ink); background: rgba(17,17,17,.05); }
.reveal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reveal .i-eye-off { display: none; }
.reveal[aria-pressed="true"] .i-eye { display: none; }
.reveal[aria-pressed="true"] .i-eye-off { display: block; }


.field-hint {
  min-height: 22px; padding: 6px 2px 0; font-size: 13px; line-height: 1.35; color: var(--muted);
  display: flex; align-items: flex-start; gap: 7px;
}
.field-hint:empty::before { content: '\00a0'; }
.field.is-invalid .field-hint { color: var(--accent-text); }
.field.is-invalid .field-hint::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  flex-shrink: 0; margin-top: 6px;
}
.field-hint.is-caps { color: var(--ink); }
.field-hint .ok { color: var(--ink); }
.field--captcha label { font-weight: 500; }
.field--captcha #regMathQuestion { font-weight: 600; font-variant-numeric: tabular-nums; }
.field--captcha .field-control input { max-width: 140px; text-align: center; font-variant-numeric: tabular-nums; }


.strength { display: flex; align-items: center; gap: 12px; padding: 10px 2px 0; }
.strength-bar { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength-bar i { height: 3px; border-radius: 3px; background: var(--line-warm); transition: background 260ms var(--ease); }
.strength[data-level="1"] .strength-bar i:nth-child(-n+1),
.strength[data-level="2"] .strength-bar i:nth-child(-n+2),
.strength[data-level="3"] .strength-bar i:nth-child(-n+3),
.strength[data-level="4"] .strength-bar i:nth-child(-n+4) { background: var(--ink); }
.strength[data-level="4"] .strength-bar i { background: var(--accent); }
.strength-text { min-width: 64px; text-align: right; font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.strength[data-level="3"] .strength-text, .strength[data-level="4"] .strength-text { color: var(--ink); }


.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15.5px/1 var(--sans); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease),
              transform 120ms var(--ease), opacity var(--t) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); }
.btn:active { transform: scale(.985); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-arrow { font-size: 1.1em; transition: transform var(--t) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-warm); }
.btn-ghost:hover { border-color: var(--muted); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; background: var(--btn-off-bg); color: var(--btn-off-fg); }
.btn[disabled]:hover { background: var(--btn-off-bg); }
.btn[disabled]:hover .btn-arrow { transform: none; }
.btn[disabled]:active { transform: none; }
.btn-spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; opacity: .8;
  animation: spin 700ms linear infinite;
}
.btn.is-loading { opacity: 1; cursor: progress; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-form .btn { margin-top: 14px; }
.auth-actions { display: grid; gap: 12px; margin-top: 8px; }


.form-alert {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  margin-top: 16px; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-warm);
  font-size: 14.5px; line-height: 1.5; color: var(--ink);
  animation: alertIn 260ms var(--ease-out) both;
}
.form-alert-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 7px; }
.form-alert-text a { color: var(--accent-text); font-weight: 600; }
.form-alert-text .countdown { font-variant-numeric: tabular-nums; font-weight: 600; }
@keyframes alertIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.fineprint { margin-top: 16px; font-size: 13px; line-height: 1.55; color: var(--muted); text-align: center; }
.fineprint a { color: var(--muted); text-underline-offset: 2px; }
.fineprint a:hover { color: var(--ink); }

.auth-alt { margin-top: 32px; font-size: 15px; color: var(--muted); }
.auth-alt a {
  color: var(--ink); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px;
  background-position: 0 calc(50% + .75em); background-repeat: no-repeat;
  transition: color var(--t) var(--ease);
}
.auth-alt a:hover { color: var(--accent-text); }
.auth-alt .back-link { background-image: none; font-weight: 500; color: var(--muted); }
.auth-alt .back-link:hover { color: var(--ink); }


.mark { width: 72px; height: 72px; margin: 0 auto 26px; }
.mark svg { width: 100%; height: 100%; overflow: visible; }
.mark-ring { fill: var(--surface); stroke: var(--line-warm); stroke-width: 1.2; }
.mark-draw, .mark-draw--late {
  fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 120; stroke-dashoffset: 120;
  animation: draw 700ms var(--ease-out) 180ms forwards;
}
.mark-draw--late { animation-delay: 520ms; }
.mark-dot { fill: var(--accent); transform-origin: 51px 51px; transform: scale(0); animation: pop 360ms cubic-bezier(.34,1.56,.64,1) 820ms forwards; }
.mark--check .mark-draw { stroke-width: 2.8; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }

.progress { height: 2px; max-width: 220px; margin: -12px auto 32px; background: var(--line-warm); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.progress.is-running span { animation: fill 3200ms linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }


.auth-aside { display: none; }
@media (min-width: 1100px) {
  .has-aside .auth-aside {
    display: flex; flex: 0 0 min(46vw, 640px); padding: 16px 16px 16px 0;
  }
  .aside-inner {
    position: relative; overflow: hidden; flex: 1;
    display: flex; flex-direction: column; justify-content: center;
    padding: 64px 56px; border-radius: 28px 28px 28px 48px;
    background: var(--doek); color: #fff;
  }
  .aside-inner::before {
    content: ''; position: absolute; width: 560px; height: 560px; right: -240px; top: -240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,53,.16) 0%, transparent 70%); pointer-events: none;
  }
  .eyebrow--dark { color: rgba(255,107,53,.9); }
  .auth-aside h2 {
    font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 3.4vw, 3rem);
    line-height: 1.05; letter-spacing: -.02em; margin-bottom: 14px; color: #fff;
  }
  .aside-text { color: #999; font-size: 16px; line-height: 1.7; max-width: 380px; margin-bottom: 40px; }
  .still-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
  .still { opacity: 0; transform: translateY(8px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
  .still.is-in { opacity: 1; transform: none; }
  .still-img { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #1a1a1a; }
  .still-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .still-title { margin-top: 10px; font-size: 13px; font-weight: 500; line-height: 1.35; color: rgba(255,255,255,.82);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .has-aside .auth-top, .has-aside .auth-foot { padding-left: 48px; padding-right: 40px; }
}


@media (max-width: 640px) {
  .auth-top { padding: 14px 16px 0; }
  .auth-wordmark { font-size: 26px; }
  .pill-link { padding: 0 16px; font-size: 13.5px; }
  .auth-main { align-items: flex-start; padding: 36px 16px 40px; }
  .auth-foot { flex-direction: column; align-items: center; text-align: center; padding: 8px 16px 24px; gap: 0; }
  .auth-foot nav { justify-content: center; gap: 0 22px; }
  .auth-foot p { font-size: 12px; }
  .auth-stage::before { width: 460px; height: 460px; top: -200px; right: -220px; }
  .auth-stage::after { display: none; }
  .lead { margin-bottom: 30px; font-size: 15.5px; }
  .auth-alt { margin-top: 24px; }
}
@media (max-width: 360px) { .field-pair { grid-template-columns: 1fr; gap: 0; } }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .mark-draw, .mark-draw--late { stroke-dashoffset: 0; }
  .mark-dot { transform: none; }
  .still { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .dot, .wordmark-dot { color: LinkText; }
}
