:root {
  --ink: #0d1240;
  --navy: #141a5c;
  --navy-2: #1b1f6e;
  --royal: #2a3bd6;
  --royal-soft: #e9ebfb;
  --text: #1c2045;
  --mute: #6b6f86;
  --faint: #a3a6b8;
  --hair: #dcdee6;
  --paper: #ffffff;
  --cool: #f4f5f8;
  --ok: #1f7a4d;
  --error: #c43d3d;
  --sf-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --sf-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --wrap: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100svh; font-family: var(--sf-text); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--cool); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid var(--royal); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Top bar */
.bar { background: var(--ink); color: #fff; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { font-family: var(--sf-display); font-weight: 500; font-size: 24px; letter-spacing: -0.045em; line-height: 1; }
.brand .rule { width: 1px; height: 22px; background: currentColor; opacity: .45; }
.brand .name { font-size: 15px; font-weight: 400; letter-spacing: -0.01em; opacity: .9; }
.bar-links { display: flex; gap: 20px; font-size: 14px; }
.bar-links a, .bar-links button { background: none; border: 0; cursor: pointer; text-decoration: none; opacity: .78; transition: opacity .2s; }
.bar-links a:hover, .bar-links button:hover { opacity: 1; }

/* Buttons and fields, matching the main site's contact form */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; letter-spacing: -0.005em; cursor: pointer; text-decoration: none; transition: background .25s, border-color .25s, opacity .25s; }
.btn:hover { background: var(--royal); border-color: var(--royal); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.textlink { background: none; border: 0; padding: 0; font-size: 14px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.textlink:hover { color: var(--ink); }
.field { display: block; padding-top: 22px; }
.field > span { display: block; font-size: 13px; color: var(--mute); }
.field input { width: 100%; margin-top: 6px; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; background: transparent; font: 300 22px/1.3 var(--sf-display); letter-spacing: -0.02em; color: var(--ink); -webkit-appearance: none; appearance: none; transition: border-color .25s; }
.field input::placeholder { color: #b4b7c6; opacity: 1; }
.field input:focus { outline: none; border-bottom-color: var(--royal); }
.field input.code { font-size: 34px; letter-spacing: .32em; font-variant-numeric: tabular-nums; }
.form-row { display: grid; gap: 0 24px; }
.status { min-height: 22px; margin-top: 12px; font-size: 14px; color: var(--mute); }
.status.error { color: var(--error); }
.status.ok { color: var(--ok); }

/* Sign-in */
.auth { min-height: calc(100svh - 64px); display: grid; grid-template-rows: auto 1fr; }
.auth-head { background: var(--ink); color: #fff; padding: 40px 0 72px; position: relative; overflow: hidden; }
.auth-head h1 { font-family: var(--sf-display); font-weight: 300; font-size: clamp(44px, 12vw, 72px); letter-spacing: -0.035em; line-height: 1; }
.auth-head p { margin-top: 16px; max-width: 520px; font-size: 16.5px; color: rgba(255,255,255,.74); }
.auth-head .watermark { position: absolute; right: -0.06em; bottom: -0.26em; font-family: var(--sf-display); font-weight: 700; font-size: 220px; letter-spacing: -0.06em; line-height: 1; color: rgba(171,177,226,.08); pointer-events: none; }
.auth-body .wrap { position: relative; }
.card { position: relative; margin-top: -40px; padding: 28px 22px 26px; background: var(--paper); border: 1px solid var(--hair); border-radius: 4px; box-shadow: 0 24px 48px -28px rgba(13,18,64,.28); max-width: 520px; }
.card h2 { font-family: var(--sf-display); font-weight: 400; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.card .lead { margin-top: 6px; font-size: 14.5px; color: var(--mute); }
.card .btn { margin-top: 28px; }
.card .links { margin-top: 18px; display: flex; gap: 20px; flex-wrap: wrap; }
.notice { margin-bottom: 18px; padding: 12px 14px; border-left: 2px solid var(--royal); background: var(--royal-soft); font-size: 14px; color: var(--ink); }
.fineprint { max-width: 520px; margin: 22px 0 40px; font-size: 13px; color: var(--mute); }

@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .auth-head { padding: 72px 0 104px; }
  .card { padding: 36px 36px 32px; }
  .form-row.two { grid-template-columns: 1fr 1fr; }
}
