/* 登录 / 注册 / 邀请码 —— 共用样式（复刻版软卡片 + 石灰绿） */
:root {
  --ink: #171a14;
  --muted: #6f7467;
  --line: #e4e6db;
  --lime: #e6f56a;
  --lime-deep: #d9ec4d;
  --bg: #f0f1ea;
  --dark: #161812;
  --font: "Inter", "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr); min-height: 100vh; }

/* ---------- 品牌区 ---------- */
.story {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 46px 52px; color: #f3f6ea;
  background:
    radial-gradient(900px 520px at 8% 0%, rgba(230, 245, 106, 0.14), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(230, 245, 106, 0.09), transparent 62%),
    linear-gradient(155deg, #23261e 0%, #161812 62%, #101109 100%);
}
.story::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(760px 620px at 30% 22%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(760px 620px at 30% 22%, #000 30%, transparent 78%);
}
.brand { position: relative; display: flex; align-items: center; gap: 13px; }
.mark {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--lime); color: var(--ink); font-size: 21px; font-weight: 700;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.3; }
.brand-copy strong { font-size: 18px; font-weight: 650; }
.brand-copy small { font-size: 12px; color: #a9b09a; }
.story-main { position: relative; max-width: 520px; padding: 40px 0 28px; }
.story-main h1 { margin: 0 0 16px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.3; letter-spacing: -0.03em; font-weight: 650; }
.story-main h1 em { font-style: normal; color: var(--lime); }
.story-main p { max-width: 430px; font-size: 15px; line-height: 1.9; color: #b9c0a8; }
.story-list { position: relative; display: flex; flex-direction: column; gap: 15px; max-width: 460px; }
.story-item { display: flex; align-items: flex-start; gap: 12px; }
.story-item .ico { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.09); color: var(--lime); }
.story-item strong { display: block; font-size: 14px; font-weight: 600; color: #eef2e1; }
.story-item span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.65; color: #9fa795; }
.story-foot { position: relative; font-size: 12px; color: #868d7a; }

/* ---------- 表单区 ---------- */
.panel { display: grid; place-items: center; padding: 40px 28px; }
.form-wrap { width: min(380px, 100%); }
.form-head { margin-bottom: 24px; }
.form-head h2 { margin: 0 0 8px; font-size: 28px; font-weight: 650; letter-spacing: -0.02em; }
.form-head p { font-size: 14px; color: var(--muted); }
.error { display: flex; align-items: center; gap: 8px; padding: 11px 13px; margin-bottom: 14px; border-radius: 12px; background: #f8e9e4; color: #a8402f; font-size: 13.5px; line-height: 1.55; }
.note-box { margin-bottom: 16px; padding: 11px 13px; border-radius: 12px; background: #f1f8c8; color: #4a4f38; font-size: 12.5px; line-height: 1.65; }
.note-box strong { font-weight: 650; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: #4a4f43; }
.field input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid transparent; border-radius: 14px;
  background: #f6f7f0; font: inherit; font-size: 15px; color: var(--ink);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}
.field input::placeholder { color: #a4a99a; font-size: 13.5px; }
.field input:focus { outline: none; background: #fff; box-shadow: 0 0 0 2px var(--lime-deep); }
.submit {
  width: 100%; height: 48px; margin-top: 6px; border: 0; border-radius: 999px;
  background: var(--lime); color: var(--ink); font: inherit; font-size: 15px; font-weight: 650;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  transition: background 0.16s ease, transform 0.1s ease;
}
.submit:hover { background: var(--lime-deep); }
.submit:active { transform: translateY(1px); }
.switcher { margin-top: 18px; font-size: 13px; color: var(--muted); }
.switcher a, .switcher button { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font-size: inherit; }
.note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.7; color: #8a8f82; }
.panel-foot { margin-top: 30px; font-size: 12px; color: #8a8f82; text-align: center; }
.code-input input { letter-spacing: 0.14em; font-size: 18px; font-weight: 600; text-align: center; text-transform: uppercase; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .story { padding: 26px 22px 22px; justify-content: flex-start; }
  .story-main { padding: 22px 0 0; }
  .story-main h1 { font-size: 28px; margin-bottom: 10px; }
  .story-main p { font-size: 13.5px; }
  .story-list, .story-foot { display: none; }
  .panel { padding: 28px 20px 42px; align-items: start; }
  .form-wrap { margin: 0 auto; }
}

/* ---------- 页脚友情链接 ---------- */
.site-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 2px 14px; padding: 14px 24px calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 11.5px; line-height: 1.9; color: #8a8f82;
}
.site-links .sl-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #a4a99a; }
.site-links a { color: #6f7467; text-decoration: none; border-bottom: 1px solid transparent; transition: color .16s ease, border-color .16s ease; }
.site-links a:hover { color: var(--ink); border-color: rgba(23, 26, 20, .28); }
@media (max-width: 980px) {
  .site-links { padding: 12px 18px calc(22px + env(safe-area-inset-bottom)); gap: 2px 12px; }
}
