/* SiteCrisp sign-in, password and link pages. Calm paper background, one white card, the mark above it. */
:root {
  --ink: #16181d;
  --muted: #6b7079;
  --line: #e6e7ea;
  --field: #c9cbd0;
  --bg: #f7f7f5;
  --citrus: #F6B21B;
  --error: #b42318;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.pub {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 520px at 50% -180px, #fff 0, rgba(255, 255, 255, 0) 70%),
    var(--bg);
  color: var(--ink);
  font: 17px/1.5 var(--body);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(32px, 9vh, 96px) 16px 48px;
}
.pub-top { width: 100%; max-width: 432px; margin-bottom: 22px; }
/* The SiteCrisp wordmark, as on sitecrisp.com: "Site" in ink, "Crisp" in ink on a citrus block. */
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -.04em; font-variation-settings: "wdth" 80; }
.wordmark b { font-weight: 800; color: var(--ink); background: var(--citrus); padding: 0 .12em; margin-left: .04em; }
.pub-mark { margin: 0; font-size: 30px; line-height: 1; color: var(--ink); }
.pub-card {
  width: 100%;
  max-width: 432px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 32px 28px;
  box-shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 12px 32px -18px rgba(22, 24, 29, .18);
}
h1 { margin: 0 0 8px; font: 800 30px/1.12 var(--display); letter-spacing: -0.02em; }
h1 + p, h1 + form { margin-top: 0; }
h1 + form { margin-top: 18px; }
p { margin: 0 0 16px; }
form { display: flex; flex-direction: column; }
label { font-weight: 700; margin: 14px 0 6px; }
form > label:first-of-type { margin-top: 4px; }
.pub-hint { margin: -2px 0 8px; color: var(--muted); font-size: 15px; }
input[type="email"], input[type="password"], input[type="text"] {
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid var(--field);
  border-radius: 10px;
  width: 100%;
}
input:hover { border-color: #a9adb4; }
input[readonly] { background: var(--bg); color: var(--muted); border-color: var(--line); }
input:focus-visible { border-color: var(--ink); }
input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--citrus);
  outline-offset: 2px;
}
input[aria-invalid="true"] { border-color: var(--error); }

/* Show / Hide sits inside the password box (added by public.js). */
.pw { position: relative; display: block; }
.pw input { padding-right: 76px; }
.pw-toggle {
  position: absolute; top: 2px; right: 2px; bottom: 2px;
  min-width: 64px; min-height: 44px; margin: 0; padding: 0 12px;
  background: none; border: 0; border-radius: 8px;
  color: var(--muted); font: 700 15px/1 var(--body); cursor: pointer;
}
.pw-toggle:hover { color: var(--ink); background: var(--bg); }

button[type="submit"] {
  margin-top: 24px;
  min-height: 48px;
  padding: 12px 18px;
  font: 700 17px/1 var(--body);
  color: var(--ink);
  background: var(--citrus);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
button[type="submit"]:hover { background: #eaa50f; }
.pub-error {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 14px 0 4px; padding: 12px 14px;
  background: #fdf0ef; border: 1px solid #f3c7c2; border-radius: 10px;
  color: #8a1c12; font-weight: 700; font-size: 16px;
}
.pub-error-i {
  flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%; background: var(--error); color: #fff; font: 800 14px/1 var(--display);
}
.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.pub-alt { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.pub-alt a { color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.pub-qr { display: block; width: 220px; height: 220px; max-width: 100%; margin: 0 auto 16px; background: #fff; }
.pub-secret code, .pub-codes code {
  font: 700 16px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}
.pub-codes { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pub-codes li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
form.pub-alt { display: block; }
button.pub-link {
  margin: 0; padding: 10px 0; min-height: 44px; background: none; border: 0; color: var(--ink);
  font: 700 17px/1.5 var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
button.pub-link:hover { background: none; }
@media (max-width: 480px) {
  body.pub { padding-top: 28px; }
  .pub-card { padding: 24px 20px 20px; border-radius: 14px; }
  h1 { font-size: 27px; }
}
.pub-two { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; }
h1 + .pub-hint { font-size: 16px; margin: 0 0 18px; }
.pub-error + form { margin-top: 14px; }
.pub-foot { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.pub-addr { font-size: 14px; overflow-wrap: anywhere; }
.pub-addr span { color: var(--ink); }
.pub-opt { color: var(--muted); font-weight: 400; }
