:root {
  --ink: #17211e;
  --ink-soft: #24312c;
  --paper: #f4f7f4;
  --surface: #ffffff;
  --mint: #70d6b0;
  --mint-deep: #168867;
  --muted: #68736e;
  --line: #dce5df;
  --danger: #b94b55;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100vh; background: var(--paper); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(22,136,103,.28); outline-offset: 3px; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.auth-story, .auth-form-side { min-width: 0; }
.auth-story { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(30px, 5vw, 72px); color: #edf7f1; background: var(--ink); }
.auth-story::before { content: ""; position: absolute; right: -34%; top: 18%; width: 82%; aspect-ratio: 1; border: 1px solid rgba(112,214,176,.25); border-radius: 48% 52% 60% 40%; transform: rotate(22deg); }
.auth-story::after { content: ""; position: absolute; right: -24%; top: 23%; width: 65%; aspect-ratio: 1; border: 1px solid rgba(112,214,176,.11); border-radius: 55% 45% 42% 58%; transform: rotate(-12deg); }
.auth-brand { position: relative; z-index: 1; display: grid; grid-template-columns: 44px auto; grid-template-rows: auto auto; column-gap: 12px; width: max-content; }
.auth-brand > span { grid-row: 1 / 3; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(112,214,176,.55); border-radius: 14px 14px 4px 14px; color: var(--mint); font: 650 23px/1 "Bahnschrift", "Arial Narrow", sans-serif; }
.auth-brand strong { align-self: end; font: 650 21px/1 "Bahnschrift", "Arial Narrow", sans-serif; }
.auth-brand small { margin-top: 5px; color: #9eb1a8; font-size: 11px; }
.story-copy { position: relative; z-index: 1; margin: auto 0; max-width: 620px; }
.eyebrow { margin: 0 0 24px; color: var(--mint); font: 650 10px/1.2 "Cascadia Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.story-copy h1 { margin: 0; font: 570 clamp(42px, 5vw, 78px)/.98 "Bahnschrift", "Arial Narrow", sans-serif; letter-spacing: -.045em; }
.story-copy h1 em { color: var(--mint); font-style: normal; }
.story-copy > p:last-child { max-width: 470px; margin: 28px 0 0; color: #aebdb6; font-size: 15px; line-height: 1.65; }
.signal-line { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: #9eb1a8; font: 11px/1 "Cascadia Mono", monospace; text-transform: uppercase; letter-spacing: .09em; }
.signal-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 6px rgba(112,214,176,.12); }

.auth-form-side { display: grid; place-items: center; padding: clamp(24px, 6vw, 88px); }
.auth-card { width: min(460px, 100%); }
.step-label { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; color: var(--muted); font: 650 10px/1 "Cascadia Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.step-label span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--mint-deep); }
.auth-card h2 { margin: 0; font: 570 clamp(31px, 4vw, 46px)/1.05 "Bahnschrift", "Arial Narrow", sans-serif; letter-spacing: -.035em; }
.auth-card > p { margin: 14px 0 32px; color: var(--muted); line-height: 1.6; }
.auth-card label { display: block; margin-bottom: 9px; color: var(--ink-soft); font-size: 13px; font-weight: 650; }
.auth-card input { width: 100%; height: 58px; padding: 0 17px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); font-size: 17px; transition: border-color .18s, box-shadow .18s; }
.auth-card input:focus { border-color: var(--mint-deep); box-shadow: 0 0 0 4px rgba(112,214,176,.14); outline: 0; }
.auth-card input.code-input { height: 72px; letter-spacing: .22em; font: 650 31px/1 "Cascadia Mono", monospace; text-align: center; }
.auth-card > button[type="submit"] { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 16px 18px; border: 0; border-radius: 11px; color: #072f24; background: var(--mint); cursor: pointer; font-weight: 700; transition: transform .16s, box-shadow .16s; }
.auth-card > button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(22,136,103,.16); }
.auth-card > button[type="submit"]:disabled { transform: none; box-shadow: none; cursor: wait; opacity: .65; }
.auth-card .privacy-note { margin: 18px 0 0; font-size: 12px; line-height: 1.55; }
.auth-card .form-error { margin: 10px 0 0; color: var(--danger); font-size: 13px; }
.form-links { display: flex; justify-content: space-between; gap: 18px; margin-top: 22px; }
.form-links a, .link-button { padding: 0; border: 0; color: var(--mint-deep); background: transparent; cursor: pointer; font-size: 13px; text-decoration: none; }
.form-links a:hover, .link-button:hover { text-decoration: underline; }

@media (max-width: 840px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 310px; padding: 28px; }
  .story-copy { margin: 48px 0 36px; }
  .story-copy h1 { font-size: clamp(38px, 11vw, 58px); }
  .story-copy > p:last-child { display: none; }
  .auth-form-side { place-items: start center; padding: 42px 24px 60px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
