/* The account site: one quiet card, the website's colours
   (website/DESIGN.md), the system's own font, light and dark. */

:root {
  --ink: #17171c;
  --ink-soft: #55555d;
  --paper: #ffffff;
  --stone: #f0eee9;
  --hairline: rgb(23 23 28 / 0.16);
  --ocean: #173f4d;
  --button: #17171c;
  --on-button: #ffffff;
  --problem: #b42318;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f1ee;
    --ink-soft: #a6a6ae;
    --paper: #1c1c21;
    --stone: #111114;
    --hairline: rgb(242 241 238 / 0.18);
    --ocean: #8fc3c6;
    --button: #f2f1ee;
    --on-button: #111114;
    --problem: #ff8a7a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--stone);
  color: var(--ink);
  font:
    17px/1.45 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 400px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 32px 28px 28px;
}

.logo {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 13px;
  margin-bottom: 20px;
}

h1 {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
}

.lead {
  color: var(--ink-soft);
}

.lead strong {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 4px 0 6px;
}

input {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

input:focus {
  outline: 3px solid color-mix(in srgb, var(--ocean) 35%, transparent);
  outline-offset: 1px;
  border-color: var(--ocean);
}

.digits {
  font-size: 1.6rem;
  letter-spacing: 0.35em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

button {
  font: inherit;
  cursor: pointer;
}

.primary {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--button);
  color: var(--on-button);
  font-weight: 600;
}

.primary:disabled {
  opacity: 0.55;
  cursor: progress;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.quiet {
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--ocean);
  font-size: 0.92rem;
}

.quiet:disabled {
  color: var(--ink-soft);
  cursor: default;
}

.fine {
  margin: 18px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.problem {
  margin: 16px 0 0;
  color: var(--problem);
  font-size: 0.95rem;
}

[hidden] {
  display: none !important;
}
