/* The site's own tokens, copied rather than imported: the gate root is the ONLY directory a locked
   visitor can see, so it cannot reach the app's stylesheet. */
:root {
  --paper: #f4f2ec; --paper-2: #eeece5; --panel: #ffffff;
  --edge: #e4e1d8; --edge-lit: #d6d2c6;
  --accent: #cfe9b0; --accent-deep: #a9d183;
  --ink: #14170f; --text: #14170f; --text-dim: #57604f; --text-faint: #626a5b;
  --on-ink: #f4f2ec; --on-accent: #14170f;
  --danger: #a03c22;
  --font-display: "Archivo", "Inter Tight", system-ui, sans-serif;
  --font-ui: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pill: 999px; --r: 14px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font-ui); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: grid; place-items: center; padding: 28px;
}
.card { width: 100%; max-width: 430px; text-align: center; }
.mark {
  width: 84px; height: 84px; margin: 0 auto 26px; display: block;
  border-radius: 20px; background: var(--panel); border: 1px solid var(--edge);
  padding: 12px; object-fit: contain;
}
h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 7vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.02;
  /* ⚠ Carries the gap to the form itself, since the subtitle that used to sit between them is gone
     and `.sub` only renders on the wrong-passphrase page now. */
  margin: 0 0 24px;
}
.sub { color: var(--text-dim); margin: 0 0 26px; font-size: 0.98rem; }
/* ⚠ Stacked, not side by side. The button sits under the field so both run the full width of the
   card, which also keeps the tap target full width on a phone. */
form { display: flex; flex-direction: column; gap: 10px; }
input {
  width: 100%;
  padding: 13px 16px; border-radius: var(--pill);
  border: 1px solid var(--edge); background: var(--panel); color: var(--text);
  font: inherit; font-size: 0.95rem; outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
input::placeholder { color: var(--text-faint); }
input:focus { border-color: var(--edge-lit); box-shadow: 0 0 0 3px rgba(207, 233, 176, 0.5); }
button {
  width: 100%; padding: 13px 24px; border-radius: var(--pill);
  border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink);
  font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
button:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent-deep); }
.note { margin-top: 22px; font-size: 0.8rem; color: var(--text-faint); }
.wrong {
  margin: 0 0 18px; padding: 11px 16px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--edge);
  color: var(--danger); font-size: 0.86rem; font-weight: 600;
}
