:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #171717;
  --muted: #6b6252;
  --paper: #fffdfa;
  --honey: #ffbf2f;
  --honey-soft: #fff0b8;
  --line: #ead9a1;
  --danger: #9d2331;
}

* { box-sizing: border-box; }
html { min-width: 0; overflow-x: hidden; }
body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, #fff4c7 0, transparent 32rem),
    linear-gradient(145deg, #fffaf0, #fffdfa 55%, #fff6d5);
}

/* URLs, email addresses and opaque IDs must never force the page wider. */
a, code, pre, samp, kbd, .address {
  overflow-wrap: anywhere;
  word-break: break-word;
}
a { color: inherit; }
img, svg, video, canvas { max-width: 100%; }
input, textarea, select, button { min-width: 0; max-width: 100%; }

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.card {
  width: min(460px, 100%);
  min-width: 0;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 70px rgb(86 58 0 / 10%);
  overflow-wrap: anywhere;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.brand > * { min-width: 0; }
.brand img { width: 44px; height: 44px; flex: 0 0 auto; }
.brand strong { font-size: 1.2rem; letter-spacing: -.02em; overflow-wrap: anywhere; }

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 8vw, 2.35rem);
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
h2, h3, p, li, dd, dt { overflow-wrap: anywhere; }
p { line-height: 1.55; }
.muted { color: var(--muted); }

form { margin-top: 22px; min-width: 0; }
label {
  display: block;
  min-width: 0;
  margin: 15px 0 6px;
  font-weight: 650;
  font-size: .94rem;
}

input {
  width: 100%;
  border: 1px solid #cfc4a6;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  outline: none;
}

input:focus {
  border-color: #9b7200;
  box-shadow: 0 0 0 3px rgb(255 191 47 / 22%);
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--ink);
  color: white;
  font: inherit;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  margin-top: 18px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.button.secondary {
  background: var(--honey-soft);
  color: var(--ink);
}

.notice {
  border: 1px solid var(--line);
  background: #fff8dd;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .92rem;
  overflow-wrap: anywhere;
}

.error { color: var(--danger); overflow-wrap: anywhere; }
.code-input {
  text-align: center;
  letter-spacing: .3em;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.footer {
  margin-top: 24px;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 560px) {
  .shell {
    place-items: start center;
    padding: max(16px, env(safe-area-inset-top)) 12px max(20px, env(safe-area-inset-bottom));
  }
  .card {
    border-radius: 18px;
    padding: 20px 16px;
  }
  .brand { gap: 10px; margin-bottom: 18px; }
  .brand img { width: 38px; height: 38px; }
  h1 { font-size: clamp(1.65rem, 9vw, 2rem); }
  button, .button { min-height: 44px; }
}

@media (max-width: 360px) {
  .shell { padding-left: 8px; padding-right: 8px; }
  .card { padding: 18px 13px; }
}
