/* ─── 共享表单样式（沿用官网 design tokens） ─── */
:root {
  --bg: #F6F6F1;
  --surface: #FFFFFF;
  --ink: #111827;
  --ink-soft: #4B5563;
  --muted: #9CA3AF;
  --border: #E5E7EB;
  --accent: #FF5701;
  --accent-soft: rgba(255, 87, 1, 0.06);
  --accent-strong: #E04D00;
  --success: #16A34A;
  --danger: #DC2626;
  --display: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  --body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* header */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; font-weight: 700; text-decoration: none; color: var(--ink); }
.logo .mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; cursor: pointer;
  padding: 13px 24px; border-radius: 8px;
  font-weight: 500; font-size: 14px; text-decoration: none;
  border: 1px solid transparent;
  transition: opacity 120ms ease, background 120ms ease, transform 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #FFF; }
.btn-primary:hover { opacity: 0.88; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface); }
.btn-accent { background: var(--accent); color: #FFF; }
.btn-accent:hover { opacity: 0.92; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* auth card */
.auth-wrap { min-height: calc(100vh - 90px); display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 40px; }
.auth-card h1 { font-family: var(--display); font-size: 30px; font-weight: 700; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 28px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* form */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-bottom: 8px; }
.field input {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg);
  color: var(--ink); transition: border 120ms ease, box-shadow 120ms ease;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.form-foot { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 22px; }
.form-foot a { color: var(--accent); text-decoration: none; font-weight: 500; }
.form-foot a:hover { text-decoration: underline; }

/* alert */
.alert { padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; display: none; }
.alert.show { display: block; }
.alert-error { background: rgba(220,38,38,0.08); color: var(--danger); border: 1px solid rgba(220,38,38,0.2); }
.alert-success { background: rgba(22,163,74,0.08); color: var(--success); border: 1px solid rgba(22,163,74,0.2); }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; }
.site-footer .mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.site-footer .links a { color: var(--ink-soft); text-decoration: none; font-size: 13px; margin-left: 18px; }

@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .auth-card { padding: 28px; }
}
