:root {
  --bg: #05060a;
  --panel: #0d1017;
  --line: #1c2130;
  --fg: #eef2f8;
  --dim: #b9c2cf;
  --accent: #5b8cff;
  --accent2: #22d3a6;
  --danger: #ff6b6b;
}
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
}

/* 背景：三团品牌色光晕，只负责氛围，不参与布局 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(760px 520px at 20% 8%, rgba(91, 140, 255, 0.26), transparent 62%),
    radial-gradient(680px 480px at 84% 86%, rgba(34, 211, 166, 0.18), transparent 60%),
    radial-gradient(560px 400px at 62% 46%, rgba(124, 88, 255, 0.13), transparent 66%);
}

/* 细网格，压住光晕边缘，免得糊成一团 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 28%, #000 22%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 28%, #000 22%, transparent 80%);
}

.wrap {
  flex: 1;
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
  padding: 52px 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand { text-align: center; margin-bottom: 26px; }
.brand .dot {
  display: block; width: 44px; height: 44px; margin: 0 auto 14px;
  filter: drop-shadow(0 8px 24px rgba(34, 211, 166, 0.32));
}
.brand h1 { font-size: 21px; margin: 0 0 6px; letter-spacing: 0.4px; font-weight: 700; }
.brand p { margin: 0; color: var(--dim); font-size: 13px; }

/* 四扇门小字，和官网呼应 */
.brand .doors {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: #aab3c0;
}

.card {
  position: relative;
  background: rgba(14, 18, 27, 0.76);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow:
    0 30px 70px -30px rgba(0, 0, 0, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* 卡片顶部一道极淡高光，撑出厚度 */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%);
  -webkit-mask-image: linear-gradient(#000, transparent 40%);
  mask-image: linear-gradient(#000, transparent 40%);
}

label { display: block; font-size: 13px; color: var(--dim); margin: 0 0 7px; letter-spacing: 0.02em; }
.field { margin-bottom: 16px; }

input[type=text], input[type=password], input[type=email] {
  width: 100%;
  padding: 12px 13px;
  background: rgba(6, 8, 13, 0.76);
  border: 1px solid #38445c;
  border-radius: 10px;
  color: var(--fg);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
input::placeholder { color: #666f7d; }
input:hover { border-color: #2a3346; }
input:focus {
  border-color: var(--accent);
  background: rgba(6, 8, 13, 0.92);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.16), 0 0 22px -6px rgba(91, 140, 255, 0.5);
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #5b8cff 0%, #7d9dff 55%, #6f8bff 100%);
  color: #080b12;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 12px 30px -12px rgba(91, 140, 255, 0.9);
  transition: transform 0.1s, filter 0.16s, box-shadow 0.16s;
}
button:hover { filter: brightness(1.08); box-shadow: 0 16px 36px -12px rgba(91, 140, 255, 1); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.55; cursor: default; box-shadow: none; }

.hint { font-size: 12.5px; color: var(--dim); margin-top: 12px; line-height: 1.7; text-align: center; }
.hint a { color: #8fb0ff; text-decoration: none; }
.hint a:hover { text-decoration: underline; }

.msg {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13px;
  display: none;
  line-height: 1.5;
}
.msg.err { display: block; background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.35); color: #ffb3b3; }
.msg.ok { display: block; background: rgba(34,211,166,.1); border: 1px solid rgba(34,211,166,.35); color: #8ef0d2; }

.foot { text-align: center; font-size: 13px; color: #b6bec9; padding: 14px 12px 22px; }
.foot a { color: #b6bec9; text-decoration: none; }
.foot a:hover { color: var(--dim); }
.foot .sep { margin: 0 8px; opacity: .5; }

/* 用户中心 */
.row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row:last-of-type { border-bottom: 0; }
.row .k { color: var(--dim); }
.row .v { color: var(--fg); text-align: right; word-break: break-all; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--dim);
  margin-top: 18px;
  box-shadow: none;
  font-weight: 500;
  font-size: 13.5px;
}
.btn-ghost:hover { border-color: var(--danger); color: var(--danger); filter: none; box-shadow: none; }

@media (max-width: 420px) {
  .wrap { padding: 32px 16px 20px; }
  .card { padding: 22px 18px; }
}

/* 登录/注册：宽屏两栏——左边说清这是哪儿，右边干活 */
body.auth-split .wrap {
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 64px;
  align-items: center;
  padding: 24px 20px;
}
body.auth-split .brand { text-align: left; margin-bottom: 0; }
body.auth-split .brand .dot { margin: 0 0 16px; width: 52px; height: 52px; }
body.auth-split .brand h1 { font-size: 30px; margin: 0 0 8px; }
body.auth-split .brand p { font-size: 14px; }
body.auth-split .brand .doors { text-align: left; margin-top: 12px; }

.doors-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
.doors-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 13.5px;
  color: #cbd3de;
  line-height: 1.5;
}
.doors-list b {
  color: #eef2f8;
  font-weight: 600;
  min-width: 44px;
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  body.auth-split .wrap {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 410px;
    padding: 40px 20px 24px;
  }
  body.auth-split .brand { text-align: center; margin-bottom: 26px; }
  body.auth-split .brand .dot { margin: 0 auto 14px; width: 44px; height: 44px; }
  body.auth-split .brand h1 { font-size: 21px; }
  body.auth-split .brand .doors { text-align: center; }
  .doors-list { display: none; }
}

/* 宽屏有 doors-list 就不重复那行小字；手机上靠它带一句 */
body.auth-split .brand .doors { display: none; }
@media (max-width: 900px) {
  body.auth-split .brand .doors { display: block; }
}

/* 会话活跃状态点：绿=5 分钟内有活动，灰=仅会话未过期 */
.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:7px;vertical-align:middle}
.dot.on{background:#3ecf8e;box-shadow:0 0 0 3px rgba(62,207,142,.18)}
.dot.off{background:#4a5262}
