:root {
  --bg: #f4f4f1;
  --card: #ffffff;
  --text: #1c1c1a;
  --muted: #6b6b66;
  --line: #e2e2dc;
  --accent: #1f5f4a;
  --accent-text: #ffffff;
  --error: #b3261e;
  --success: #1f6f3a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --card: #1f1f1d;
    --text: #ecece7;
    --muted: #a0a09a;
    --line: #34342f;
    --accent: #6fc2a0;
    --accent-text: #0f1f19;
    --error: #ff8a80;
    --success: #8fd6a8;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
.card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
}
.brand { margin: 0 0 16px; font-weight: 600; letter-spacing: .02em; color: var(--accent); }
h1 { font-size: 22px; margin: 0 0 8px; }
h1.consent { font-size: 19px; font-weight: 600; margin-bottom: 20px; }
h2 { font-size: 15px; margin: 24px 0 8px; }
.sub, .small, .links, .scopes { color: var(--muted); }
.small, .scopes { font-size: 13px; }
.links { margin-top: 20px; font-size: 14px; }
a { color: var(--accent); }
form { margin: 0; }
.field { display: block; margin: 14px 0 6px; }
.field span { display: block; font-size: 14px; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
}
button, .button {
  display: inline-block;
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button.secondary, .button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.inline { display: inline; }
.inline button { width: auto; margin: 0 0 0 8px; padding: 4px 10px; font-size: 13px; }
.divider { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.msg { font-size: 14px; margin: 8px 0; }
.msg-error { color: var(--error); }
.msg-success { color: var(--success); }
details { margin-top: 20px; font-size: 13px; color: var(--muted); }
summary { cursor: pointer; }
dl { margin: 12px 0 0; }
dt { font-weight: 600; color: var(--text); margin-top: 8px; }
dd { margin: 2px 0 0; }
dd ul { margin: 0; padding-left: 18px; }
.consents { list-style: none; padding: 0; margin: 0 0 16px; }
.consents li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.consents .scopes { display: block; }
.consents .empty { color: var(--muted); font-size: 14px; }
