* { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; background: #f3ede1; color: #1a1410;
    font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

  :root {
    --paper: #f3ede1;
    --paper-light: #f8f2e6;
    --paper-warm: #ede5d3;
    --paper-card: #fffaf0;
    --ink: #1a1410;
    --ink-soft: #3d342a;
    --ink-mute: #5a4f42;
    --ink-faint: #7a6a58;
    --line: rgba(26,20,16,.18);
    --line-soft: rgba(26,20,16,.1);
    --plum: #1E2A8C;
    --rust: #c0392b;
    --ochre: #d97706;
  }

  body { overflow-x: hidden; min-height: 100vh; }
  .page { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
  .page::before {
    content: ""; position: fixed; inset: 0;
    background:
      radial-gradient(ellipse at 30% 20%, var(--paper-light), transparent 60%),
      radial-gradient(ellipse at 80% 80%, var(--paper-warm), transparent 60%);
    pointer-events: none; z-index: 0;
  }

  /* topbar — same as landing/onboarding */
  .topbar {
    position: relative; z-index: 5;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 40px;
    border-bottom: 1px solid rgba(26,20,16,.12);
  }
  .brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: inherit; }
  .brand-mark { display: inline-flex; align-self: center; }
  .brand-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
  .brand-sub { font-family: 'Fraunces', serif; font-style: italic; font-size: 11px; color: var(--ink-faint); }
  .topbar-right { font-size: 13px; color: var(--ink-soft); }
  .topbar-right a { color: var(--ink); font-weight: 600; text-decoration: underline;
    text-decoration-color: var(--rust); text-underline-offset: 4px; }

  /* main — single centered column */
  .main {
    flex: 1; position: relative; z-index: 1;
    display: grid; place-items: center;
    padding: 40px 24px 56px;
  }
  .stack {
    width: 100%; max-width: 460px;
    display: flex; flex-direction: column; gap: 22px;
  }

  .lockup { text-align: center; }
  .kicker {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; letter-spacing: .18em; color: var(--ink-faint);
    margin-bottom: 18px;
  }
  .kicker-line { width: 24px; height: 1px; background: var(--ink); }

  .h1 {
    font-size: 44px; line-height: 1; margin: 0;
    font-family: 'Fraunces', serif; font-weight: 600;
    letter-spacing: -.03em; color: var(--ink);
  }
  .h1 em { font-style: italic; font-weight: 500; color: var(--plum); }
  .lede {
    font-size: 14.5px; line-height: 1.5; color: var(--ink-soft);
    margin: 12px auto 0; max-width: 360px;
    font-style: italic; font-family: 'Fraunces', serif;
  }

  /* envelope card — same vocabulary as signup */
  .envelope {
    position: relative;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 32px 32px 26px;
    box-shadow: 0 24px 48px -16px rgba(26,20,16,.18), 0 1px 0 rgba(26,20,16,.06);
  }
  .envelope::before {
    content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 18px; background: var(--paper-card);
    border-radius: 0 0 60px 60px;
    border: 1px solid var(--line); border-top: none;
  }
  .tape {
    position: absolute; top: -6px; left: 30%;
    width: 80px; height: 22px; transform: rotate(-4deg);
    background: rgba(217,119,6,.25);
    border-left: 1px dashed rgba(217,119,6,.4);
    border-right: 1px dashed rgba(217,119,6,.4);
    z-index: 2;
  }

  .form-stack { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
  .field-label {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11px; font-weight: 600;
    font-family: 'JetBrains Mono', monospace; letter-spacing: .06em;
    color: var(--ink-soft); margin-bottom: 5px; text-transform: uppercase;
  }
  .field-label sup { color: var(--rust); font-size: 9px; margin-left: 2px; }
  .field-label .forgot {
    text-transform: none; letter-spacing: 0;
    font-family: 'Fraunces', serif; font-style: italic; font-weight: 500;
    color: var(--plum); text-decoration: none; font-size: 12px;
  }
  .field-label .forgot:hover { text-decoration: underline; }

  .input-wrap { position: relative; }
  .input {
    width: 100%; padding: 10px 12px;
    background: transparent;
    border: none; border-bottom: 1px solid rgba(26,20,16,.3);
    color: var(--ink); font-size: 15px; outline: none;
    font-family: 'Fraunces', serif;
    transition: border-color .15s;
    border-radius: 0;
  }
  .input:focus { border-bottom-color: var(--plum); border-bottom-width: 1.5px; }
  .input.has-icon { padding-right: 40px; }
  .reveal {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--ink-faint); padding: 6px; display: grid; place-items: center;
  }
  .reveal:hover { color: var(--ink); }

  .remember-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--ink-soft);
    cursor: pointer; user-select: none;
  }
  .checkbox { width: 16px; height: 16px; accent-color: var(--plum); flex-shrink: 0; }

  .cta {
    width: 100%; margin-top: 6px; padding: 16px 18px;
    border: none; border-radius: 6px;
    background: var(--ink); color: var(--paper);
    font-weight: 600; font-size: 15px;
    font-family: 'Fraunces', serif; letter-spacing: -.01em;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform .15s, box-shadow .15s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 4px 0 var(--plum);
  }
  .cta:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 5px 0 var(--plum); }
  .cta:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 2px 0 var(--plum); }
  .cta-arrow { font-size: 18px; transition: transform .2s; }
  .cta:hover .cta-arrow { transform: translateX(3px); }

  /* divider with "or" */
  .divider {
    display: flex; align-items: center; gap: 12px;
    margin-top: 18px;
    font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
    letter-spacing: .12em; color: var(--ink-faint);
  }
  .divider::before, .divider::after {
    content: ""; flex: 1; height: 1px; background: var(--line);
  }

  .sso-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .sso {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 12px;
    background: var(--paper-card);
    border: 1px solid var(--line); border-radius: 6px;
    font-family: 'Fraunces', serif; font-weight: 500; font-size: 13.5px;
    color: var(--ink); cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s;
  }
  .sso:hover { background: var(--paper-warm); border-color: rgba(26,20,16,.3); }
  .sso svg { flex-shrink: 0; }

  /* below the card */
  .signup-prompt {
    text-align: center; margin: 0;
    font-size: 14px; color: var(--ink-soft);
  }
  .signup-prompt a {
    color: var(--ink); font-weight: 600;
    text-decoration: underline; text-decoration-color: var(--rust);
    text-underline-offset: 4px;
  }

  .footnote {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: var(--ink-faint);
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  }

  /* tiny "vol" trust ribbon */
  .ribbon {
    display: flex; align-items: center; gap: 10px;
    background: rgba(26,20,16,.04);
    border: 1px dashed rgba(26,20,16,.18);
    padding: 10px 14px; border-radius: 6px;
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    color: var(--ink-soft); justify-content: center;
  }
  .ribbon-dot { width: 6px; height: 6px; border-radius: 50%; background: #6b8e3b; box-shadow: 0 0 6px #6b8e3b; }

  /* responsive */
  @media (max-width: 600px) {
    .topbar { padding: 14px 18px; }
    .brand-sub { display: none; }
    .brand-name { font-size: 16px; }
    .main { padding: 28px 18px 36px; }
    .stack { gap: 18px; }
    .h1 { font-size: 36px; }
    .envelope { padding: 26px 22px 22px; border-radius: 6px; }
    .envelope::before { width: 100px; height: 14px; }
    .tape { display: none; }
    .sso-row { grid-template-columns: 1fr; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }