:root {
  color-scheme: dark;
  --accent: #1d4ed8;
  --card: rgba(10, 16, 32, 0.72);
  --text: #e5eefc;
  --muted: #97a6c3;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.10), transparent 35%),
    linear-gradient(135deg, color-mix(in oklab, var(--accent) 70%, #000) 0%, #050816 100%);
  transition: background 220ms ease;
}
.shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.card {
  width: min(720px, 100%);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
h1 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 0.98; letter-spacing: -0.05em; }
.eyebrow { margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-size: 0.78rem; }
.lead { margin: 18px 0 0; font-size: 1.05rem; color: #d3def4; max-width: 56ch; }
.swatch-row, .preview { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.swatch, .preview-swatch { width: 72px; height: 72px; border-radius: 20px; background: var(--accent); border: 1px solid rgba(255,255,255,0.2); }
.label { font-size: 0.85rem; color: var(--muted); }
.value { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.03em; }
.hint, .status { color: var(--muted); margin-top: 18px; }
.form { display: grid; gap: 18px; margin-top: 24px; }
.field { display: grid; gap: 10px; }
.field span { color: var(--muted); font-size: 0.9rem; }
.field input[type="password"], .field input[type="text"] {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}
.color-line { display: flex; gap: 12px; align-items: center; }
.color-line input[type="color"] { width: 72px; height: 52px; border: 0; padding: 0; background: transparent; }
.button {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  background: white;
  color: #08101f;
  cursor: pointer;
}
code { padding: 0.15rem 0.4rem; border-radius: 8px; background: rgba(255,255,255,0.08); }
@media (max-width: 640px) {
  .swatch-row, .preview, .color-line { flex-direction: column; align-items: stretch; }
  .swatch, .preview-swatch { width: 100%; height: 60px; }
}
