:root {
  --ground: #e6e8eb;
  --panel: #ffffff;
  --ink: #181b1f;
  --muted: #5a626c;
  --line: #c9ced4;
  --tape: #f2c200;
  --error-bg: #fbeceb;
  --error-ink: #8f1d17;
  --ok-bg: #e5f3ea;
  --ok-ink: #1b5e37;
  --radius: 4px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--ink);
}
.brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  vertical-align: -3px;
  background: var(--tape);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--ink), 0 0 0 2px var(--tape);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 64px;
}

/* the one memorable detail: a strip of tape across the top of each card */
.card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 10px, var(--tape) 10px 20px);
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-wide { max-width: 640px; }

h1 {
  margin: 0 0 20px;
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

label {
  display: block;
  margin: 16px 0 6px;
  font-weight: 600;
}
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #8d949c;
  border-radius: var(--radius);
}
input:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--tape);
  outline-offset: 2px;
}
input:focus-visible { border-color: var(--ink); }

.btn {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--tape);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}
.btn:hover { background: #ffd21f; }
.btn-quiet {
  width: auto;
  margin: 0;
  padding: 6px 12px;
  color: #fff;
  background: transparent;
  border-color: #6b727b;
}
.btn-quiet:hover { background: #2a2e34; }

.hint { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; }
.alt  { margin: 22px 0 0; color: var(--muted); }
a { color: var(--ink); text-underline-offset: 3px; }

.notice {
  width: 100%;
  max-width: 420px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.notice p { margin: 0 0 4px; }
.notice p:last-child { margin: 0; }
.notice-error { background: var(--error-bg); color: var(--error-ink); border: 1px solid #e3b4b1; }
.notice-ok    { background: var(--ok-bg);    color: var(--ok-ink);    border: 1px solid #a9d3b9; }
.notice-info  { background: #eef1f4; border: 1px solid var(--line); }
.card .notice { max-width: none; }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 20px 0;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; word-break: break-word; }

@media (max-width: 480px) {
  .card { padding: 28px 18px 22px; }
  .topbar { padding: 12px 16px; }
}
