: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; }

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

a { color: inherit; }

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

.card {
  width: min(460px, 100%);
  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%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.brand img { width: 44px; height: 44px; }
.brand strong { font-size: 1.2rem; letter-spacing: -.02em; }

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 8vw, 2.35rem);
  letter-spacing: -.045em;
}

p { line-height: 1.55; }
.muted { color: var(--muted); }

form { margin-top: 22px; }
label {
  display: block;
  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-decoration: none;
  cursor: pointer;
  margin-top: 18px;
}

.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;
}

.error { color: var(--danger); }
.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;
}
