/* dazi-auth.css — 登录/注册页 深空霓虹主题 (user/login.html / user/register.html) */
/* 与首页 index8 主题同源: 深空渐变 × 星空 × 靛蓝-青-品红霓虹 × 玻璃拟态 */
/* 布局: 左侧品牌介绍面板(深空) + 右侧白色表单卡片, 样式收敛在 .dazi-auth 下 */

/* ==================== 主题 Token (同首页 :root) ==================== */
.dazi-auth {
  --indigo: #6366f1; --indigo-deep: #4f46e5;
  --teal: #14b8a6;   --teal-deep: #0f9d8f;
  --cyan: #22d3ee;   --magenta: #e879f9;
  --ink: #1e2233; --muted: #5b6478;
  --ring: #e9ecf3; --soft: #f7f8fc;
  --neon-grad: linear-gradient(115deg, #818cf8, #22d3ee 45%, #e879f9 80%);
}

/* ==================== 页面底色(仅登录/注册两页加载本样式) ==================== */
body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(99, 102, 241, .10), transparent 60%),
    radial-gradient(900px 460px at -8% 112%, rgba(20, 184, 166, .09), transparent 55%),
    #f7f8fc;
}

.dazi-auth-container.container { max-width: 1000px; }
.dazi-auth {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin: 40px auto 56px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

/* ==================== 左侧介绍面板(深空星空) ==================== */
.dazi-auth-intro {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  /* 底部150px为吉祥物(mascot)绝对定位区, 防止统计卡内容被气泡遮挡 */
  padding: 42px 34px 150px;
  color: #fff;
  background:
    radial-gradient(900px 480px at 85% -10%, #2b2f6e 0%, transparent 60%),
    radial-gradient(700px 420px at 0% 112%, #0f2f5e 0%, transparent 55%),
    linear-gradient(180deg, #0b0d1e, #131638 60%, #0d1a35);
  box-shadow: 0 24px 56px -18px rgba(11, 13, 30, .55);
}

/* 星空底纹(与首页 hero 同款星点, 缓慢闪烁) */
.dazi-auth-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 12% 22%, rgba(255, 255, 255, .9), transparent 60%),
    radial-gradient(2px 2px at 78% 15%, rgba(255, 255, 255, .85), transparent 60%),
    radial-gradient(1.5px 1.5px at 30% 70%, rgba(165, 243, 252, .9), transparent 60%),
    radial-gradient(2px 2px at 62% 80%, rgba(255, 255, 255, .8), transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 55%, rgba(232, 121, 249, .85), transparent 60%),
    radial-gradient(1.5px 1.5px at 18% 85%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(2px 2px at 45% 35%, rgba(255, 255, 255, .6), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 45%, rgba(165, 243, 252, .75), transparent 60%);
  pointer-events: none;
  animation: dh-twinkle 4s ease-in-out infinite;
}
@keyframes dh-twinkle { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* 漂移光晕(青色 glow, 呼应首页 hero.glow) */
.dazi-auth-intro::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #22d3ee;
  filter: blur(70px);
  opacity: .22;
  pointer-events: none;
  animation: dh-drift 10s ease-in-out infinite;
}
@keyframes dh-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-22px, -16px); }
}

/* 漂浮键帽(玻璃质感按键) */
.dazi-auth-intro .keycap {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font: 700 16px Consolas, Monaco, monospace;
  color: #a5f3fc;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(165, 243, 252, .35);
  box-shadow: 0 6px 0 rgba(5, 8, 24, .55), 0 12px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .22);
  animation: dh-float 5.2s ease-in-out infinite;
  user-select: none;
}
@keyframes dh-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

.dazi-auth-intro .intro-body { position: relative; z-index: 2; max-width: 92%; }
.dazi-auth-intro .intro-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, .12);
  border: 1px solid rgba(34, 211, 238, .35);
  border-radius: 999px;
  padding: 7px 16px;
}
.dazi-auth-intro .intro-title {
  margin: 20px 0 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
}
.dazi-auth-intro .intro-title .grad {
  background: var(--neon-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(129, 140, 248, .45));
}
.dazi-auth-intro .intro-sub {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(184, 192, 220, .88);
}

.dazi-auth-intro .intro-features {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.dazi-auth-intro .intro-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #e7ecff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  padding: 9px 13px;
  transition: background .2s, border-color .2s;
}
.dazi-auth-intro .intro-features li:hover {
  background: rgba(34, 211, 238, .10);
  border-color: rgba(34, 211, 238, .35);
}
.dazi-auth-intro .intro-features .fi {
  flex: 0 0 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: rgba(255, 255, 255, .10);
  border-radius: 9px;
}

.dazi-auth-intro .intro-stats {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.dazi-auth-intro .intro-stats .stat {
  flex: 1;
  text-align: center;
  background: rgba(10, 13, 32, .50);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 12px 6px 10px;
}
.dazi-auth-intro .intro-stats b {
  display: block;
  font: 800 22px/1.2 "Baloo 2", "Noto Sans SC", sans-serif;
  letter-spacing: -.5px;
  background: linear-gradient(135deg, #a5f3fc, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dazi-auth-intro .intro-stats span { font-size: 11.5px; color: rgba(199, 205, 224, .72); }

/* 卡通键盘吉祥物 */
.dazi-auth-intro .mascot { position: absolute; right: 28px; bottom: 22px; z-index: 2; text-align: center; }
.dazi-auth-intro .mascot-kb {
  position: relative;
  width: 118px;
  height: 74px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2a2f52, #171b36);
  border: 1.5px solid rgba(165, 243, 252, .35);
  box-shadow: 0 8px 0 rgba(5, 8, 24, .55), 0 14px 24px rgba(0, 0, 0, .40), inset 0 1px 0 rgba(255, 255, 255, .15);
  animation: dh-bob 4s ease-in-out infinite;
}
/* 键帽颗粒 */
.dazi-auth-intro .mascot-kb::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 42px;
  bottom: 9px;
  border-radius: 6px;
  background-image: radial-gradient(circle, rgba(165, 243, 252, .38) 2.2px, transparent 2.8px);
  background-size: 13px 11px;
}
.dazi-auth-intro .mascot-kb .eye {
  position: absolute;
  top: 12px;
  width: 18px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  animation: dh-blink 4.6s infinite;
}
.dazi-auth-intro .mascot-kb .eye.l { left: 26px; }
.dazi-auth-intro .mascot-kb .eye.r { right: 26px; }
.dazi-auth-intro .mascot-kb .eye::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1f3d;
  animation: dh-look 3.6s ease-in-out infinite alternate;
}
@keyframes dh-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
@keyframes dh-blink {
  0%, 91%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(.08); }
}
@keyframes dh-look { to { transform: translateX(4px); } }

.dazi-auth-intro .mascot-bubble {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f3e52;
  background: linear-gradient(180deg, #f0fdff, #d6f5fd);
  border: 1px solid rgba(34, 211, 238, .55);
  border-radius: 12px;
  padding: 7px 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
  animation: dh-bob 4s ease-in-out infinite;
}
.dazi-auth-intro .mascot-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: #d6f5fd;
  border-right: 1px solid rgba(34, 211, 238, .55);
  border-bottom: 1px solid rgba(34, 211, 238, .55);
  transform: rotate(45deg);
}

/* ==================== 右侧表单卡片 ==================== */
/* 覆盖 frontend.css 的 .login-section 定宽居中, 由外层网格控制 */
.dazi-auth .login-section {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 24px;
  border: 1px solid var(--ring);
  box-shadow: 0 20px 50px -14px rgba(70, 80, 140, .22);
  overflow: hidden;
  align-self: center;
  background: #fff;
}
.dazi-auth .logon-tab {
  margin: 0;
  display: flex;
}
.dazi-auth .logon-tab > a {
  position: relative;
  float: none;
  width: 50%;
  padding: 17px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
  background: var(--soft);
  border-bottom: 1px solid var(--ring);
  transition: color .2s, background .2s;
}
.dazi-auth .logon-tab > a:hover { color: var(--indigo-deep); }
.dazi-auth .logon-tab > a.active {
  color: var(--indigo-deep);
  background: #fff;
  border-bottom: none;
}
/* 激活Tab底部霓虹渐变条 */
.dazi-auth .logon-tab > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
}
.dazi-auth .login-main { padding: 32px 34px 28px; }

.dazi-auth .control-label { font-weight: 600; color: var(--ink); }
.dazi-auth .form-control {
  height: 48px;
  border-radius: 14px;
  border: 1.5px solid var(--ring);
  box-shadow: none;
  padding: 10px 15px;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.dazi-auth .form-control::placeholder { color: #9aa3bd; }
.dazi-auth .form-control:hover { border-color: #d5daea; }
.dazi-auth .form-control:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .15);
}
.dazi-auth .forgot-tip { color: var(--indigo-deep); font-weight: 600; font-size: 13px; }
.dazi-auth input[type="checkbox"] { accent-color: var(--indigo); }

.dazi-auth .btn.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--teal));
  border: none;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 6px;
  text-indent: 6px;
  padding: 13px;
  box-shadow: 0 12px 26px -10px rgba(99, 102, 241, .55);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.dazi-auth .btn.btn-primary:hover,
.dazi-auth .btn.btn-primary:focus {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(99, 102, 241, .60);
}
.dazi-auth .btn.btn-primary:active { transform: translateY(0); }
.dazi-auth .btn.btn-default.no-border {
  background: rgba(99, 102, 241, .08);
  color: var(--indigo-deep);
  border: 1.5px dashed rgba(99, 102, 241, .35);
  border-radius: 14px;
  font-weight: 600;
}
.dazi-auth .btn.btn-default.no-border:hover { background: rgba(99, 102, 241, .14); }

/* ==================== 登录/注册合并: 验证码登录组件 ==================== */
/* 双Tab叠放: 两个面板置于同一grid单元格, 容器高度恒为最大值, 切换无跳动 */
.dazi-auth .tab-panes {
  display: grid;
}
.dazi-auth .tab-pane {
  grid-area: 1 / 1;
  min-width: 0;
}
.dazi-auth .tab-pane.pane-off {
  visibility: hidden;
  pointer-events: none;
}
/* 密码面板较短: 顶部对齐, 与验证码面板各项间距一致(等高容器剩余空白留在面板底部) */
.dazi-auth #pane-pwd {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* 手机号+验证码并排行 */
.dazi-auth .captcha-row {
  display: flex;
  gap: 10px;
}
.dazi-auth .captcha-row .form-control { flex: 1; min-width: 0; }
/* 图片验证码: 与表单控件同高, 点击刷新 */
.dazi-auth .captcha-img {
  flex: 0 0 auto;
  height: 48px;
  border-radius: 14px;
  border: 1.5px solid var(--ring);
  cursor: pointer;
  display: block;
}
.dazi-auth .captcha-img:hover { border-color: var(--indigo); }
.dazi-auth .btn-send-sms {
  flex: 0 0 auto;
  min-width: 118px;
  border-radius: 14px;
  border: 1.5px solid rgba(34, 211, 238, .45);
  background: rgba(34, 211, 238, .10);
  color: #0e7490;
  font-size: 13.5px;
  font-weight: 700;
  transition: all .18s;
}
.dazi-auth .btn-send-sms:hover:not(:disabled) { background: rgba(34, 211, 238, .18); border-color: rgba(34, 211, 238, .70); }
.dazi-auth .btn-send-sms:disabled { color: #9aa6ba; cursor: not-allowed; border-color: var(--ring); background: var(--soft); }

/* 自动注册提示 */
.dazi-auth .sms-tip {
  margin: 2px 0 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.dazi-auth .help-block { font-size: 12.5px; min-height: 4px; }

/* 协议勾选行 */
.dazi-auth .agree-label {
  font-weight: normal;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.dazi-auth .agree-label a { color: var(--indigo-deep); font-weight: 600; }
.dazi-auth .agree-label a:hover { color: var(--indigo); }

/* ==================== 修改密码页(嵌入个人中心面板): 单卡片无左侧介绍 ==================== */
.dazi-auth.dazi-auth-embed { display: block; margin: 0; }
.dazi-auth .form-control[readonly] { background: var(--soft); color: var(--muted); cursor: default; }

/* ==================== 响应式 ==================== */
@media (max-width: 860px) {
  .dazi-auth { grid-template-columns: 1fr; gap: 16px; margin: 20px auto 32px; }
  /* H5: 隐藏左侧品牌介绍面板, 进页即见登录/注册表单, 无需下拉 */
  .dazi-auth-intro { display: none; }
}
@media (max-width: 520px) {
  .dazi-auth .login-main { padding: 24px 20px 20px; }
  .dazi-auth .form-group { margin-bottom: 14px; }
}

/* ===== PC 扫码登录面板(debug=1 灰度, 方案 doc/PC扫码登录方案-20261022.md) ===== */
/* 三Tab等分: 兼容原有双Tab(无扫码Tab时仍各占50%) */
.dazi-auth .logon-tab > a { width: auto; flex: 1 1 0; }
.dazi-auth .qr-login-box { display: flex; flex-direction: column; align-items: center; padding: 22px 0 8px; }
.dazi-auth .qr-img-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  border: 1px solid var(--ring, #e8ecf3);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dazi-auth .qr-img-wrap img { width: 188px; height: 188px; object-fit: contain; display: block; }
.dazi-auth .qr-loading {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted, #919191); font-size: 13px;
}
.dazi-auth .qr-mask {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, .95);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
}
.dazi-auth .qr-mask-text { color: #666; font-size: 14px; }
.dazi-auth .qr-mask .btn { min-width: 96px; }
.dazi-auth .qr-tip { margin: 14px 0 0; font-size: 15px; color: var(--ink, #1e2233); text-align: center; }
.dazi-auth .qr-sub { margin: 4px 0 0; font-size: 12px; color: var(--muted, #919191); text-align: center; }

/* 试用会员权益横幅(2026-10-27): 全Tab可见, 金色浅底呼应站内会员色; 纯静态零JS */
.dazi-auth .login-vip-trial {
  margin: 14px 0 0; padding: 10px 12px; border-radius: 10px;
  background: rgba(240, 173, 78, .12);
  border: 1px dashed rgba(240, 173, 78, .45);
  color: #b07d2b; font-size: 13px; line-height: 1.6; text-align: center;
}
