/* 登录 / 注册 / 找回密码 共用样式（大气版：左品牌 + 右表单） */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* 与站内同一套字体：阿里普惠体 GB2312 子集 0.92MB */
@font-face {
  font-family: "QjUI";
  src: url("/fonts/qj-ui.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --qj-bg: #070b16;
  --qj-ink: #e8edf7;
  --qj-sub: #8e9bb3;
  --qj-line: rgba(255, 255, 255, 0.09);
  --qj-blue: #3b82f6;
  --qj-blue-2: #6366f1;
  --qj-field: rgba(255, 255, 255, 0.04);
  --qj-font: "QjUI", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html, body { height: 100%; }

body {
  font-family: var(--qj-font);
  color: var(--qj-ink);
  background: var(--qj-bg);
  -webkit-font-smoothing: antialiased;
}

/* ── 背景：深色底 + 两团光晕 + 细网格 ─────────────────── */
.qj-auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 12% 8%, rgba(59, 130, 246, 0.22), transparent 62%),
    radial-gradient(760px 620px at 88% 88%, rgba(99, 102, 241, 0.18), transparent 60%),
    linear-gradient(160deg, #070b16 0%, #0b1224 48%, #070b16 100%);
}
.qj-auth-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 72%);
}
.qj-auth-bg::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -160px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 68%);
  filter: blur(6px);
  animation: qjFloat 16s ease-in-out infinite alternate;
}
@keyframes qjFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 46px, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .qj-auth-bg::after { animation: none; }
}

/* ── 两栏布局 ───────────────────────────────────────── */
.qj-auth {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

/* 左：品牌区 */
.qj-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(32px, 6vw, 96px);
  gap: 34px;
}
.qj-brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.qj-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6 55%, #6366f1);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.qj-brand-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.qj-brand-name small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--qj-sub);
  letter-spacing: 0.08em;
  margin-top: 3px;
}
.qj-brand-title {
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.32;
  text-wrap: balance;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 0%, #cfe0ff 55%, #93b8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.qj-brand-desc {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--qj-sub);
  max-width: 460px;
}
.qj-brand-points {
  display: grid;
  gap: 14px;
  max-width: 460px;
}
.qj-brand-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #c2cddf;
}
.qj-brand-point i {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 7px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  color: #9dc0ff;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.28);
}
.qj-brand-foot {
  display: flex;
  gap: 26px;
  color: var(--qj-sub);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.qj-brand-foot b {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #dbe6fa;
  letter-spacing: 0;
  margin-bottom: 2px;
}

/* 右：表单区 */
.qj-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(20px, 4vw, 64px);
  border-left: 1px solid var(--qj-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(14px);
}
.qj-form {
  width: 100%;
  max-width: 384px;
}
.qj-form-head { margin-bottom: 26px; }
.qj-form-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.qj-form-sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--qj-sub);
}

.qj-field { margin-bottom: 16px; }
.qj-field > label {
  display: block;
  font-size: 12.5px;
  color: var(--qj-sub);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.qj-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid var(--qj-line);
  background: var(--qj-field);
  color: var(--qj-ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.qj-input::placeholder { color: #65718a; }
.qj-input:hover { border-color: rgba(255, 255, 255, 0.16); }
.qj-input:focus {
  border-color: rgba(96, 165, 250, 0.75);
  background: rgba(59, 130, 246, 0.06);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

/* 验证码行：整块默认隐藏，需要时给 #capRow 加 is-on */
.qj-captcha-field { display: none; }
.qj-captcha-field.is-on { display: block; }
.qj-captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.qj-captcha-row .qj-input { flex: 1; }
.qj-captcha-img {
  flex: 0 0 132px;
  width: 132px;
  height: 46px;
  border-radius: 11px;
  background: #f3f6fb;
  border: 1px solid var(--qj-line);
  cursor: pointer;
  user-select: none;
}

/* 提交按钮 */
.qj-submit {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 11px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(100deg, #2563eb, #3b82f6 48%, #6366f1);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.36);
  transition: transform 0.12s, box-shadow 0.16s, filter 0.16s;
}
.qj-submit:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 16px 34px rgba(37, 99, 235, 0.42); }
.qj-submit:active { transform: translateY(0); }
.qj-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.qj-msg {
  min-height: 18px;
  margin-top: 12px;
  font-size: 13px;
  color: #fca5a5;
  line-height: 1.6;
}
.qj-msg.is-ok { color: #6ee7b7; }

.qj-links {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--qj-sub);
}
.qj-links a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.15s;
}
.qj-links a:hover { color: #c7ddff; }

.qj-copy {
  margin-top: 30px;
  font-size: 12px;
  color: #5b6884;
  letter-spacing: 0.03em;
}

/* ── 响应式：窄屏收成单栏，品牌块紧凑 ─────────────────── */
@media (max-width: 900px) {
  .qj-auth {
    grid-template-columns: 1fr;
    align-content: start;
  }
  .qj-brand {
    justify-content: flex-start;
    padding: 30px 22px 8px;
    gap: 16px;
  }
  .qj-brand-title { font-size: 24px; }
  .qj-brand-desc { display: none; }
  .qj-brand-points { display: none; }
  .qj-brand-foot { display: none; }
  .qj-brand-mark { width: 42px; height: 42px; border-radius: 13px; font-size: 21px; }
  .qj-panel {
    align-items: flex-start;
    border-left: 0;
    border-top: 1px solid var(--qj-line);
    padding: 26px 22px 42px;
    backdrop-filter: none;
    background: none;
  }
  .qj-form { max-width: 100%; }
  .qj-form-title { font-size: 22px; }
}

/* 登录方式切换 + 短信验证码 */
.qj-tabs { display: flex; gap: 8px; margin: 4px 0 14px; }
.qj-tab {
  flex: 1; padding: 9px 0; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(120,130,150,.35); background: transparent;
  color: #8a94a6; font-size: 14px; font-family: inherit; transition: all .15s;
}
.qj-tab.active { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }
.qj-sms-btn {
  flex: none; min-width: 112px; height: 46px; border-radius: 12px; cursor: pointer;
  border: 1px solid #2563eb; background: transparent; color: #2563eb;
  font-size: 13px; font-family: inherit;
}
.qj-sms-btn:disabled { opacity: .5; cursor: default; }
body[data-theme="dark"] .qj-tab { color: #9aa4b2; }
body[data-theme="dark"] .qj-sms-btn { color: #60a5fa; border-color: #60a5fa; }
