/* 火星极客 · 认证页样式（SaaS 风格，深色太空主题） */
:root {
  --bg: #0a0e1a;
  --bg2: #0d1424;
  --card: rgba(17, 24, 43, 0.82);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef1f8;
  --muted: #8b94ad;
  --accent: #ff5a3c;
  --accent2: #ff9a3c;
  --ok: #34d399;
  --err: #f87171;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: radial-gradient(1200px 800px at 70% -10%, #1b2340 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow-x: hidden;
}
#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .7; }
.mars-glow {
  position: fixed; z-index: 0; pointer-events: none;
  width: 560px; height: 560px; border-radius: 50%;
  right: -160px; top: -160px;
  background: radial-gradient(circle, rgba(255,90,60,.16) 0%, rgba(255,90,60,0) 65%);
}
.wrap { position: relative; z-index: 1; width: 100%; max-width: 420px; }
.brand { text-align: center; margin-bottom: 26px; }
.brand a { text-decoration: none; color: inherit; }
.brand .logo {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 12px;
  background: radial-gradient(circle at 35% 30%, #ff8a5c, #e04a2a 55%, #8f2413);
  box-shadow: 0 0 34px rgba(255, 90, 60, .45);
  position: relative;
}
.brand .logo::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 2px solid rgba(255,154,60,.35); border-top-color: transparent;
  transform: rotate(20deg);
}
.brand h1 { font-size: 22px; letter-spacing: 2px; }
.brand h1 .en { display: block; font-size: 11px; letter-spacing: 4px; color: var(--muted); margin-top: 6px; font-weight: 400; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.card h2 { font-size: 20px; margin-bottom: 6px; }
.card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; line-height: 1.7; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 12px 14px; font-size: 15px; color: var(--text);
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: 10px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,60,.18); }
.field input::placeholder { color: #5b6478; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.field .ferr { font-size: 12.5px; color: var(--err); margin-top: 6px; display: none; }
.field.invalid input { border-color: var(--err); }
.field.invalid .ferr { display: block; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 13px; padding: 6px;
}
.pw-toggle:hover { color: var(--text); }
/* 密码强度条 */
.strength { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.strength .bar { height: 5px; flex: 1; border-radius: 3px; background: rgba(255,255,255,.1); transition: background .2s; }
.strength .lbl { font-size: 12px; color: var(--muted); min-width: 52px; text-align: right; }
.btn {
  width: 100%; padding: 13px; margin-top: 8px; font-size: 15.5px; font-weight: 600;
  color: #fff; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #e04a2a);
  box-shadow: 0 8px 24px rgba(255, 90, 60, .3);
  transition: transform .12s, box-shadow .12s, opacity .12s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(255,90,60,.4); }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.spinner {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite; display: none;
}
.btn.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert {
  border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.65;
  margin-bottom: 16px; display: none;
}
.alert.show { display: block; }
.alert.error { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.35); color: #fca5a5; }
.alert.success { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.35); color: #6ee7b7; }
.links { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--muted); line-height: 2; }
.links a { color: var(--accent2); text-decoration: none; }
.links a:hover { text-decoration: underline; }
.back-home { text-align: center; margin-top: 18px; font-size: 13px; }
.back-home a { color: var(--muted); text-decoration: none; }
.back-home a:hover { color: var(--text); }
.steps { display: flex; gap: 8px; margin-bottom: 20px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); }
.steps span.done { background: var(--accent); }
@media (max-width: 480px) {
  .card { padding: 26px 20px; }
  body { padding: 16px 12px; }
}
