/* 账户各页共用的外框：登录、注册、忘记密码、重置、验证。
   配色跟地球页一致（近黑底、暖纸色、一点金色），所以从 / 跳到 /login
   不会像换了个产品。 */

:root {
  --bg: #070b0f;
  --fg: #f4ead9;
  --muted: #8e969c;
  --gold: #d9b67f;
  --gold-bright: #f0d4a4;
  --line: rgba(231, 194, 139, .22);
  --danger: #ff9e7d;
  --ok: #8fd3a8;
  --warn: #e8c07d;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background:
    radial-gradient(circle at 50% 36%, rgba(57, 76, 74, .28), transparent 38%),
    radial-gradient(circle at 50% 110%, rgba(52, 35, 20, .3), transparent 42%),
    var(--bg);
  color: var(--fg);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: radial-gradient(rgba(255,255,255,.12) .5px, transparent .5px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

.card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 40px 38px 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(19, 25, 31, .94), rgba(7, 11, 15, .9));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

.mark {
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  color: var(--gold);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(26px, 6.4vw, 34px);
  font-weight: 500;
  letter-spacing: .04em;
}

.lead {
  margin: 14px 0 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.field { margin-bottom: 16px; }

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: var(--fg);
  font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 182, 127, .12);
}

input[aria-invalid="true"] { border-color: var(--danger); }

.hint, .help {
  margin: 7px 0 0;
  color: rgba(142, 150, 156, .82);
  font: 11px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
}

button, .link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--gold);
  color: #17120b;
  font: 600 13px/1.2 "Noto Sans SC", "PingFang SC", sans-serif;
  letter-spacing: .08em;
  cursor: pointer;
  text-decoration: none;
  transition: filter .16s ease;
}

button:hover:not(:disabled), .link-button:hover { filter: brightness(1.06); }
button:disabled { opacity: .55; cursor: wait; }

.secondary {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--line);
}

.ghost {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--gold-bright);
  font: inherit;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.remember {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.remember input { width: 15px; height: 15px; accent-color: var(--gold); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  cursor: pointer;
}
.consent input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--gold); flex: none; }
.consent a { color: var(--gold-bright); }

.note {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  word-break: break-word;
}
.note a { color: var(--gold-bright); }
.note.error, .note.is-error { color: var(--danger); }
.note.ok, .note.is-ok { color: var(--ok); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  font-size: 12px;
}
.actions a { color: var(--muted); text-decoration: none; }
.actions a:hover { color: var(--gold-bright); }

.footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: rgba(142, 150, 156, .75);
  font: 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}
.footer a { color: rgba(217, 182, 127, .85); text-decoration: none; }
.footer a:hover { color: var(--gold-bright); }

.hidden { display: none !important; }

@media (max-width: 480px) {
  .card { padding: 32px 24px 26px; border-radius: 18px; }
}
