:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --panel: #14161b;
  --line: #23262e;
  --text: #e7e9ee;
  --muted: #8b91a0;
  --accent: #6ea8fe;
  --danger: #f2777a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(1200px 600px at 50% -10%, #171a21 0%, var(--bg) 60%);
  color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

.card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px 20px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 45%);
}

.card.wide { width: min(680px, 100%); }

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

.brand h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand .muted { margin: 2px 0 0; }
.brand .ghost { margin-left: auto; }

.mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #1b1f27;
  color: var(--accent);
  font-size: 18px;
}

h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f1116;
  color: var(--text);
  font: inherit;
}

input:focus {
  outline: none;
  border-color: #3a4256;
  box-shadow: 0 0 0 3px rgb(110 168 254 / 12%);
}

button {
  width: 100%;
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #08111f;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover { filter: brightness(1.06); }
button:disabled { opacity: 0.55; cursor: default; }

button.ghost {
  width: auto;
  background: transparent;
  border-color: var(--line);
  color: var(--text);
  font-weight: 500;
}

button.small { padding: 6px 12px; font-size: 13px; margin-top: 0; }

.block { margin-top: 22px; }

.row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.row input { flex: 1; }
.row button { width: auto; margin-top: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.grid dt { font-size: 12px; color: var(--muted); }
.grid dd { margin: 4px 0 0; font-variant-numeric: tabular-nums; }

.list { list-style: none; margin: 0; padding: 0; }

.list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.list li:last-child { border-bottom: 0; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.lead { margin: 0 0 8px; }

.message { min-height: 18px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.message.error { color: var(--danger); }

footer { margin-top: 18px; }
