/* ═══════════════════════════════════════════════════════════
   Limooi · 登录 / 注册页 深色主题
   登录页由 .kh-new-login 这层 fixed 覆盖层渲染，
   它的颜色全部来自 CSS 变量（--bg/--panel/--fg/--line/--muted），
   所以这里直接把这层作用域内的变量改成深色，其余页面不受影响。
   ═══════════════════════════════════════════════════════════ */

.kh-new-login {
  /* 作用域内重定义主题变量 */
  --bg: #0c0a09;
  --panel: #151312;
  --panel-soft: #1c1917;
  --fg: #fafaf9;
  --muted: #a8a29e;
  --line: rgba(255, 255, 255, .1);
  --accent: #c9ff5d;
  --accent-text: #0c0a09;
  --accent-soft: rgba(201, 255, 93, .14);
  --shadow: 0 24px 60px -18px rgba(0, 0, 0, .75);

  background:
    radial-gradient(900px 480px at 50% 0%, rgba(201, 255, 93, .08) 0%, transparent 62%),
    #0c0a09 !important;
  color: #fafaf9 !important;
}

/* 卡片 */
.kh-new-login .login-panel {
  background: #151312 !important;
  border: 1px solid rgba(255, 255, 255, .09) !important;
  border-radius: 22px !important;
  box-shadow: 0 28px 70px -22px rgba(0, 0, 0, .85) !important;
  color: #fafaf9 !important;
}

/* 返回链接 */
.kh-new-login .back-link { color: #8a837d !important; }
.kh-new-login .back-link:hover { color: #c9ff5d !important; }

/* 品牌行 */
.login-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 22px;
}
.login-brand img {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: block;
  flex: none;
}
.login-brand span {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fafaf9;
}

/* 标题 */
.kh-new-login h1 {
  color: #fafaf9 !important;
  font-weight: 750 !important;
  letter-spacing: -.02em !important;
}
.kh-new-login .form-eyebrow {
  color: #8fd63a !important;
  letter-spacing: 2.6px !important;
}
.kh-new-login .form-muted { color: #8a837d !important; }

/* 登录 / 注册 切换 */
.kh-new-login .auth-switch {
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 12px !important;
}
.kh-new-login .auth-switch button {
  color: #a8a29e !important;
  border-radius: 9px !important;
  font-weight: 700 !important;
  background: transparent !important;
}
.kh-new-login .auth-switch button.active {
  background: #c9ff5d !important;
  color: #0c0a09 !important;
}

/* 输入框 */
.kh-new-login label { color: #a8a29e !important; }
.kh-new-login input {
  background: rgba(255, 255, 255, .04) !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  color: #fafaf9 !important;
  border-radius: 10px !important;
}
.kh-new-login input::placeholder { color: #6b6560 !important; }
.kh-new-login input:focus {
  border-color: rgba(201, 255, 93, .55) !important;
  box-shadow: 0 0 0 3px rgba(201, 255, 93, .1) !important;
  background: rgba(255, 255, 255, .06) !important;
  outline: none !important;
}

/* 主按钮 */
.kh-new-login .login-submit,
.kh-new-login .primary-btn {
  background: #c9ff5d !important;
  border-color: #c9ff5d !important;
  color: #0c0a09 !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 28px -12px rgba(201, 255, 93, .65) !important;
}
.kh-new-login .login-submit:hover,
.kh-new-login .primary-btn:hover {
  background: #d6ff7a !important;
  border-color: #d6ff7a !important;
}

/* 次要按钮 */
.kh-new-login .secondary-btn,
.kh-new-login .guest-login {
  background: rgba(255, 255, 255, .04) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  color: #d6d3d1 !important;
  border-radius: 10px !important;
}
.kh-new-login .guest-login:hover {
  border-color: rgba(201, 255, 93, .45) !important;
  color: #c9ff5d !important;
}

/* 文字 */
.kh-new-login .login-note { color: #6b6560 !important; }
.kh-new-login .login-note a { color: #8fd63a !important; }
.kh-new-login .forgot-password-link { color: #8a837d !important; }
.kh-new-login .forgot-password-link:hover { color: #c9ff5d !important; }
.kh-new-login .login-divider { color: #6b6560 !important; }
.kh-new-login .login-divider:before,
.kh-new-login .login-divider:after { background: rgba(255, 255, 255, .08) !important; }

/* 注册：人机验证 */
.kh-new-login .register-captcha-question { color: #d6d3d1 !important; }
.kh-new-login #registerCaptchaRefresh {
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  color: #d6d3d1 !important;
  border-radius: 8px !important;
}
.kh-new-login #registerCaptchaRefresh:hover {
  border-color: rgba(201, 255, 93, .5) !important;
  color: #c9ff5d !important;
}

/* 协议勾选区 */
.kh-new-login .auth-consent {
  background: rgba(255, 255, 255, .03) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 12px !important;
  color: #a8a29e !important;
}
.kh-new-login .auth-consent * { color: #a8a29e !important; }
.kh-new-login .auth-consent a { color: #8fd63a !important; }
.kh-new-login .auth-consent strong,
.kh-new-login .auth-consent b { color: #d6d3d1 !important; }
.kh-new-login .auth-consent input[type="checkbox"] { accent-color: #c9ff5d !important; }
.kh-new-login .auth-consent .auth-consent-count,
.kh-new-login .auth-consent-all { color: #c9ff5d !important; }

/* 找回密码弹窗 */
#passwordResetDialog {
  background: #151312 !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  color: #fafaf9 !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .8) !important;
}
#passwordResetDialog h3 { color: #fafaf9 !important; }
#passwordResetDialog p { color: #8a837d !important; }
#passwordResetDialog label { color: #a8a29e !important; }
#passwordResetDialog input {
  background: rgba(255, 255, 255, .04) !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  color: #fafaf9 !important;
  border-radius: 10px !important;
}
#passwordResetDialog .primary-btn {
  background: #c9ff5d !important;
  border-color: #c9ff5d !important;
  color: #0c0a09 !important;
}

@media (max-width: 820px) {
  .kh-new-login { padding: 16px 10px !important; }
  .login-brand { margin: 12px 0 18px; }
}

/* ── 协议勾选区细化（覆盖 auth-consent 默认浅色）── */
.kh-new-login .auth-consent {
  background: rgba(255, 255, 255, .035) !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 14px !important;
  color: #a8a29e !important;
}
.kh-new-login .auth-consent legend {
  color: #c9ff5d !important;
  font-weight: 800 !important;
  font-size: 12.5px !important;
}
.kh-new-login .auth-consent legend span,
.kh-new-login .auth-consent legend b { color: #c9ff5d !important; }
.kh-new-login .auth-consent label {
  color: #a8a29e !important;
  font-size: 12px !important;
}
.kh-new-login .auth-consent label span,
.kh-new-login .auth-consent span { color: #a8a29e !important; }
.kh-new-login .auth-consent a { color: #8fd63a !important; text-decoration: underline; }
.kh-new-login .auth-consent input[type="checkbox"] {
  accent-color: #c9ff5d !important;
  filter: none !important;
}
.kh-new-login .auth-consent-hint {
  color: #6b6560 !important;
  background: transparent !important;
}
/* ── 「全选」行（koko-consent-all，由注入脚本生成）── */
.kh-new-login .auth-consent .koko-consent-all {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(255, 255, 255, .055) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  margin: -4px 0 12px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
}
.kh-new-login .auth-consent .koko-consent-all input[type="checkbox"] {
  accent-color: #c9ff5d !important;
  width: 16px !important; height: 16px !important;
}
.kh-new-login .auth-consent .koko-all-title {
  color: #fafaf9 !important;
  font-weight: 800 !important;
  font-size: 12.5px !important;
}
.kh-new-login .auth-consent .koko-all-count {
  margin-left: auto !important;
  background: rgba(201, 255, 93, .16) !important;
  color: #c9ff5d !important;
  border-radius: 99px !important;
  padding: 2px 10px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}
.kh-new-login .auth-consent legend {
  color: #8a837d !important;
  font-weight: 600 !important;
  font-size: 11.5px !important;
  padding: 0 4px !important;
}