/* ============================================================
   登录 / 注册页（login.html / register.html）
   ============================================================ */

.auth-body { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-canvas { position: fixed; inset: 0; width: 100%; height: 100%; }
.auth-body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 58% 46% at 50% 40%, rgba(79, 124, 255, 0.16), transparent 70%);
}

.auth-wrap {
  position: relative; z-index: 2;
  width: min(920px, 100%);
  display: grid; grid-template-columns: 1.1fr 1fr;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--bg-glass); border: 1px solid var(--line-1);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-2);
  animation: scaleIn 0.55s var(--ease) both;
}

/* 品牌区 */
.auth-brand {
  position: relative; padding: 52px 44px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.09), rgba(139, 92, 246, 0.12));
  border-right: 1px solid var(--line-1);
  overflow: hidden;
}
.auth-brand::before {
  content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.22), transparent 68%);
  top: -90px; right: -90px; animation: auroraDrift 12s ease-in-out infinite;
}
.auth-logo { display: flex; align-items: center; gap: 12px; font-size: var(--fs-2xl); font-weight: 800; letter-spacing: 1px; }
.auth-logo .logo-orb {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: var(--tx-on-neon);
  box-shadow: var(--glow-brand);
}
.auth-slogan { font-size: var(--fs-xl); font-weight: 700; line-height: 1.5; margin-top: 10px; }
.auth-desc { color: var(--tx-2); line-height: 1.9; font-size: var(--fs-sm); }
.auth-points { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.auth-points li { display: flex; align-items: center; gap: 10px; color: var(--tx-2); font-size: var(--fs-sm); }
.auth-points .i { color: var(--neon-green); width: 16px; height: 16px; }
.auth-ver { margin-top: auto; color: var(--tx-3); font-size: var(--fs-xs); letter-spacing: 1px; }

/* 表单区 */
.auth-panel { padding: 52px 44px; display: flex; flex-direction: column; justify-content: center; }
.auth-panel h1 { font-size: var(--fs-2xl); margin-bottom: 8px; }
.auth-panel .auth-tip { color: var(--tx-3); font-size: var(--fs-sm); margin-bottom: 30px; }
.auth-form { display: flex; flex-direction: column; }
.auth-submit { margin-top: 6px; padding: 12px; font-size: var(--fs-lg); border-radius: var(--r-md); width: 100%; }
.auth-alt { margin-top: 22px; text-align: center; color: var(--tx-3); font-size: var(--fs-sm); }
.auth-back { position: absolute; top: 20px; left: 20px; z-index: 3; }

.btn-loading { pointer-events: none; opacity: 0.85; }
.btn-loading::before {  content: ''; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(4, 18, 26, 0.35); border-top-color: var(--tx-on-neon);
  animation: spin 0.8s linear infinite;
}

@media (max-width: 760px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { padding: 42px 28px; }
}

/* ---- 图形验证码 ---- */
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row .input-group { flex: 1; min-width: 0; }
.captcha-img {
  flex: 0 0 auto; width: 126px; height: 42px; border-radius: var(--r-md);
  border: 1px solid var(--line-1); overflow: hidden; cursor: pointer;
  background: #f4f7fb; display: flex; align-items: center; justify-content: center;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.captcha-img:hover { border-color: var(--line-glow); transform: translateY(-1px); }
.captcha-img svg { width: 100%; height: 100%; display: block; }
.captcha-img .captcha-fail {
  color: #8a5a5a; font-size: 11px; text-align: center; line-height: 1.4; padding: 2px;
}
.captcha-tip { color: var(--tx-3); font-size: var(--fs-xs); margin-top: 6px; }
