/* Sign-in and account pages: sand paper, one cobalt, Hanken Grotesk. */
:root {
  --bg: #e6dbc7; --surface: #ddd0b9; --ink: #062b8a; --muted: #3a5aa8; --deep: #03184f; --on-deep: #e6dbc7;
  --font: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --code: ui-monospace, Menlo, Consolas, monospace; /* taste-skill-ignore: literal code only */
  --m: clamp(16px, 2vw, 28px);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, p, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; min-height: 100%; padding: var(--m); }
.auth__side { background: var(--ink); color: var(--on-deep); padding: 28px clamp(24px, 4vw, 48px) 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; text-decoration: none; }
.mark { width: 26px; height: 26px; background: var(--bg); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 38% 18%, 38% 82%, 62% 82%, 62% 18%, 38% 18%); }
.big { font-weight: 500; font-size: clamp(44px, 6.4vw, 104px); line-height: 0.98; letter-spacing: -0.045em; max-width: 13ch; }
.auth__pic { width: 100%; flex: 1; min-height: 0; height: 30vh; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.fine { font-size: 20px; line-height: 1.3; max-width: 30ch; margin-top: 20px; }
.steps { padding-left: 1.2em; max-width: 420px; display: grid; gap: 8px; font-size: 17px; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: 48px clamp(24px, 4vw, 56px); background: var(--surface); }
.form, .done { width: min(440px, 100%); }
.form h2, .done h2 { font-weight: 500; font-size: 40px; letter-spacing: -0.04em; line-height: 1.02; }
.sub { margin: 12px 0 28px; font-size: 16px; }
.sub a { text-underline-offset: 3px; }
.form label { display: block; font-size: 15px; font-weight: 500; margin: 20px 0 8px; }
.form input { width: 100%; height: 52px; padding: 0 14px; background: var(--bg); border: 0; border-radius: 0; font: inherit; color: var(--ink); transition: background-color 150ms ease; }
.form input:focus { outline: 3px solid var(--ink); outline-offset: 0; background: #ece3d2; }
.hint { font-size: 14px; margin-top: 8px; }
.submit { margin-top: 28px; width: 100%; height: 56px; display: flex; align-items: center; justify-content: center; padding: 0 18px; background: var(--ink); color: var(--bg); border: 0; border-radius: 0; font: 500 17px/1 var(--font); cursor: pointer; text-decoration: none; transition: background-color 150ms ease, transform 120ms ease; }
.submit:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .submit:hover { background: var(--deep); } }
.submit:disabled { opacity: 0.6; cursor: default; }
.msg { margin-top: 14px; min-height: 22px; font-size: 15px; color: #8a1c0b; }
.key { display: flex; align-items: center; background: var(--bg); }
.key code { flex: 1; min-width: 0; padding: 14px; font: 400 14px/1.4 var(--code); overflow-wrap: anywhere; }
.key button { align-self: stretch; padding: 0 18px; background: var(--ink); color: var(--bg); border: 0; font: 500 15px var(--font); cursor: pointer; }
.snippet { margin: 16px 0 0; background: var(--deep); color: var(--on-deep); padding: 16px; font: 400 13px/1.7 var(--code); overflow-x: auto; }
@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .auth__side { gap: 24px; padding-bottom: 28px; }
  .big { font-size: 38px; }
  .auth__pic, .steps, .fine { display: none; }
  .auth__main { align-items: flex-start; padding-top: 36px; }
}
