/* ============================================================
   AICall Admin — 登录页视觉 v3（精密运营控制台）
   变更：去透视网格/能量光晕/扫描线/HUD 霓虹；单一信号蓝主色；
        Inter + 克制留白；保留声波 Logo 但去发光。class 名与 v2 一致。
   ============================================================ */

:root {
  --bg-void: #0B0E14;
  --bg-base: #0B0E14;
  --bg-elev: #12161F;
  --bg-elev-2: #1A1F2B;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-line: rgba(255, 255, 255, 0.08);
  --border-line-strong: rgba(76, 141, 255, 0.35);

  --text-primary: #E6E9EF;
  --text-secondary: #9BA3B4;
  --text-muted: #5C6474;

  --accent-cyan: #4C8DFF;
  --accent-cyan-soft: rgba(76, 141, 255, 0.55);
  --accent-violet: #4C8DFF;
  --accent-danger: #F87171;
  --accent-success: #34D399;

  --signal: #4C8DFF;
  --signal-soft: rgba(76, 141, 255, 0.12);
  --signal-bd: rgba(76, 141, 255, 0.35);

  --font-body: "Inter", -apple-system, "PingFang SC", "Microsoft YaHei",
    "HarmonyOS Sans SC", Segoe UI, Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  min-height: 100vh;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ── 全屏背景：极简，仅一层非常克制的径向微光（不喧宾夺主）── */
.tech-bg {
  position: fixed; inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(76, 141, 255, 0.05), transparent 60%),
    var(--bg-void);
}
/* 透视网格 → 停用（保留 class 以兼容模板，但不可见） */
.grid-plane { display: none; }
#particles { display: none; }

/* 装饰扫描光带 → 停用 */
.scanline { display: none; }

/* ── 登录容器 ───────────────────────────────── */
.login-page {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

/* 卡片外光晕 → 停用 */
.login-halo { display: none; }

/* 卡片本体 */
.login-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 40px 36px 32px;
  background: var(--bg-elev);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* 卡片顶部发光斜线 → 停用 */
.login-card::before { display: none; }

/* 卡片四角装饰角标 → 停用（克制） */
.corner { display: none; }

/* ── 品牌区 ───────────────────────────────── */
.brand {
  text-align: center;
  margin-bottom: 30px;
}

/* Logo：声波竖线（无发光） */
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52px; height: 52px;
  margin-bottom: 16px;
  background: var(--signal);
  border-radius: 12px;
  position: relative;
}
.brand-logo::before { display: none; }
.wave {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #0B0E14;
}
.wave.w1 { height: 14px; }
.wave.w2 { height: 22px; }
.wave.w3 { height: 16px; }
.wave.w4 { height: 24px; }
.wave.w5 { height: 12px; }

.brand-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.brand-sub {
  margin: 8px 0 0 0;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0;
  font-weight: 400;
}
.brand-sub::before, .brand-sub::after { content: none; }

/* ── 表单 ───────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.form-group label .label-mono {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* 输入框容器：左边图标 + 常规边框（去发光底线） */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: border-color 0.13s, box-shadow 0.13s;
}
.input-wrap .input-icon {
  position: static;
  transform: none;
  width: 16px; height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.13s;
}
.input-wrap:focus-within {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}
.input-wrap:focus-within .input-icon {
  color: var(--signal);
}
.input-wrap::after { content: none; }
.input-wrap input {
  width: 100%;
  padding: 11px 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  letter-spacing: 0;
}
.input-wrap input::placeholder {
  color: var(--text-muted);
}
.input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px var(--bg-elev-2) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ── 登录按钮（去扫光/去发光） ─────────────────── */
.btn-login {
  position: relative;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: var(--signal);
  border: none;
  border-radius: 9px;
  color: #0B0E14;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter 0.13s, transform 0.1s;
}
.btn-login::after { content: none; }
.btn-login:hover {
  filter: brightness(1.08);
}
.btn-login:active {
  transform: scale(0.99);
}
.btn-login:disabled {
  cursor: wait;
}
.btn-login.loading {
  filter: grayscale(0.3);
  opacity: 0.8;
}

/* ── 错误消息 ───────────────────────────── */
.error-msg {
  margin-top: 16px;
  padding: 11px 14px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 8px;
  color: var(--accent-danger);
  font-size: 13px;
  letter-spacing: 0;
  text-align: center;
  display: none;
  position: relative;
}
.error-msg::before {
  content: "! ";
  font-weight: 700;
  margin-right: 4px;
}
.error-msg.show {
  display: block;
}

/* ── HUD → 全部停用（克制，登录页不堆装饰） ─────── */
.hud { display: none; }
.status-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-success);
  margin-right: 6px;
  vertical-align: middle;
}

/* ── 响应式 ───────────────────────────── */
@media (max-width: 520px) {
  html, body { overflow: auto; }
  .login-card { padding: 32px 22px 26px; max-width: 92%; }
  .brand-title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
