:root {
  color-scheme: light dark;
  --bg: #f4f5f4;
  --card: #ffffff;
  --text: #17201b;
  --muted: #5d6862;
  --border: #d9dedb;
  --accent: #059669;
  --accent-text: #ffffff;
  --danger: #b42318;
  --error-bg: #fdecea;
  --success-bg: #e6f6ef;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1412;
    --card: #171e1b;
    --text: #e6ece9;
    --muted: #9aa6a0;
    --border: #2b3531;
    --accent: #10b981;
    --accent-text: #04140d;
    --danger: #f97066;
    --error-bg: #3a1714;
    --success-bg: #0f2e22;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 20px; }
.brand img { border-radius: 7px; }
h1 { font-size: 22px; margin: 0 0 8px; }
h2 { font-size: 16px; margin: 0 0 8px; }
section { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
p { margin: 0 0 14px; }
.muted, .hint { color: var(--muted); font-size: 13px; }
.hint { margin-top: 16px; }
a { color: var(--accent); }
code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
label { display: block; font-weight: 500; margin-bottom: 12px; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
input[type="password"], input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
}
.row input[type="text"] { margin-top: 0; flex: 1; }
button, .button {
  display: inline-block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button.danger { color: var(--danger); }
button.small { width: auto; padding: 5px 10px; font-size: 13px; }
button:disabled { opacity: .55; cursor: not-allowed; }
.row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.row > form { flex: 1; }
.row button { width: auto; flex: 1; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.error { background: var(--error-bg); color: var(--danger); padding: 10px 12px; border-radius: 8px; }
.success { background: var(--success-bg); padding: 10px 12px; border-radius: 8px; }
ul.perm { padding-left: 20px; margin: 0 0 14px; }
ul.list { list-style: none; padding: 0; margin: 0 0 14px; }
ul.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
ul.list li:last-child { border-bottom: 0; }
ul.list li div { display: flex; flex-direction: column; }
.copy { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; }
.copy code { flex: 1; }
