/**
 * 极简登录 / 找回密码 / 注册 — 随系统深浅色（仅 body.bare-auth 页面生效）
 */
@media (prefers-color-scheme: dark) {
  html:has(body.bare-auth) {
    background: #141417 !important;
  }
  body.bare-auth {
    background: #141417 !important;
    color: #e8e8ec;
    min-height: 100vh;
  }

  /* ---------- 移动端 style.css：.login ---------- */
  body.bare-auth .login {
    background: #1c1c20 !important;
  }
  body.bare-auth .login h3 {
    color: #e8e8ec;
  }
  body.bare-auth .login input[type="text"],
  body.bare-auth .login input[type="password"] {
    background: #2a2a30 !important;
    border-color: #5a5a62 !important;
    color: #e8e8ec;
  }
  body.bare-auth .login input::placeholder {
    color: #8e8e96;
  }
  body.bare-auth .login .wj_password,
  body.bare-auth .login .free {
    color: #8ab4ff !important;
  }
  body.bare-auth .login .login_btn {
    background: #e07820 !important;
    color: #fff !important;
  }

  /* ---------- 移动端：.password / .reg ---------- */
  body.bare-auth .password,
  body.bare-auth .reg {
    background: #141417 !important;
  }
  body.bare-auth .password .con,
  body.bare-auth .reg .con {
    background: transparent;
  }
  body.bare-auth .password .con h3,
  body.bare-auth .reg .con h3 {
    color: #e8e8ec;
  }
  body.bare-auth .password .con p,
  body.bare-auth .reg .con p {
    background: #2a2a30 !important;
    border-color: #5a5a62 !important;
  }
  body.bare-auth .password .con p span,
  body.bare-auth .reg .con p span {
    color: #c8c8d0;
  }
  body.bare-auth .password .con input,
  body.bare-auth .reg .con input {
    color: #e8e8ec;
  }
  body.bare-auth .password .con input::placeholder,
  body.bare-auth .reg .con input::placeholder {
    color: #8e8e96;
  }
  body.bare-auth .password .con i {
    color: #a8a8b0;
  }
  body.bare-auth .reg .free {
    color: #8ab4ff !important;
  }
  body.bare-auth .password .con .send,
  body.bare-auth .reg .con .send {
    background: #e07820 !important;
    color: #fff !important;
  }
  body.bare-auth .reg .con .register-app-cta {
    background: #252530 !important;
    border-color: #3d3d48 !important;
  }
  body.bare-auth .reg .con .register-app-cta-text {
    color: #c8c8d0 !important;
  }
  body.bare-auth .reg .con .register-form-intro {
    color: #c8c8d0 !important;
  }
  body.bare-auth .mobile-invite-intro {
    color: #c8c8d0 !important;
  }
  body.bare-auth .mobile-invite-intro h4 {
    color: #e8e8ec;
  }
  body.bare-auth .mobile-invite-intro ul,
  body.bare-auth .mobile-invite-intro li,
  body.bare-auth .mobile-invite-intro p {
    color: #c8c8d0;
  }
  body.bare-auth .mobile-invite-intro strong {
    color: #ececf0;
  }

  /* ---------- 桌面端 login.css：#gnLoginBox ---------- */
  body.bare-auth #gnLoginPage #gnLoginBox {
    background: #1e2430 !important;
    border-color: #3d4a5c !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45) !important;
  }
  body.bare-auth #gnLoginPage #gnLoginBox #loginColumn {
    border-right-color: #3d4a5c !important;
  }
  body.bare-auth #gnLoginPage #gnLoginBox h1 {
    color: #e8e8ec !important;
    text-shadow: none !important;
  }
  body.bare-auth #gnLoginPage #gnLoginBox #loginColumn form #cp-auth > div > label,
  body.bare-auth #gnLoginPage #gnLoginBox #loginColumn form #cp-auth > div.cp-auth-row--lostpwd-type > span.lostpwd-type-heading {
    color: #b8b8c4 !important;
    text-shadow: none !important;
  }
  body.bare-auth #gnLoginPage #gnLoginBox #loginColumn form #cp-auth > div > input[type="text"],
  body.bare-auth #gnLoginPage #gnLoginBox #loginColumn form #cp-auth > div > input[type="password"] {
    background: #2a2a32 !important;
    border-color: #5a6570 !important;
    color: #e8e8ec !important;
  }
  body.bare-auth #gnLoginPage #gnLoginBox #loginColumn form #cp-auth > div.cp-auth-row--lostpwd-type .lostpwd-opt {
    color: #c8c8d0 !important;
  }
  body.bare-auth #gnLoginPage #gnLoginBox #loginColumn form #submit input {
    background: #e07820 !important;
    border-color: #c46818 !important;
    color: #fff !important;
    text-shadow: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
  }
  body.bare-auth #gnLoginPage #gnLoginBox #loginColumn form #submit input:hover {
    background: #d06a18 !important;
  }
  body.bare-auth #gnLoginPage #gnLoginBox #loginColumn a,
  body.bare-auth #gnLoginPage #gnLoginBox #loginColumn a:visited {
    color: #8ab4ff !important;
  }
  body.bare-auth #gnLoginPage #gnLoginBox #loginColumn .register-app-cta {
    background: #252530 !important;
    border-color: #3d4a5c !important;
    color: #c8c8d0 !important;
  }
  body.bare-auth #gnLoginPage #gnLoginBox #loginColumn .register-app-cta p {
    color: inherit;
  }
  body.bare-auth #gnLoginPage #gnLoginBox #loginColumn .register-form-intro {
    color: #c8c8d0 !important;
  }
  body.bare-auth #gnLoginPage #gnLoginBox #loginColumn form #cp-auth span {
    color: #c0c0c8 !important;
  }
  body.bare-auth .register-invite-intro,
  body.bare-auth .register-invite-intro p,
  body.bare-auth .register-invite-intro li {
    color: #c8c8d0 !important;
  }
  body.bare-auth .register-invite-intro h2 {
    color: #e8e8ec !important;
  }
  body.bare-auth .register-invite-intro strong {
    color: #ececf0;
  }
}
