/* ============================================================
   auth-v2.css — 登录 / 注册页改版（2026-09）
   仅作用于 body.av-page（登录：视频背景+玻璃卡）
   与 body.ar-page（注册：首页同款绿色渐变+白卡）
   不影响引用 style.css 的其他页面
   ============================================================ */

/* ---------- 公共动效 ---------- */
@keyframes av-rise {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes av-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ============ 登录页：视频背景 + 悬浮玻璃卡 ============ */

body.av-page {
  margin: 0;
  min-height: 100vh;
  /* 视频加载前/失败时的静态兜底：同色系深绿渐变 */
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(87, 185, 141, 0.35), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(46, 143, 104, 0.4), transparent 55%),
    linear-gradient(160deg, #0b1f19 0%, #123528 55%, #1f6f5c 130%);
  overflow-x: hidden;
}

.av-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 24, 18, 0.14) 0%, rgba(6, 24, 18, 0.08) 45%, rgba(6, 24, 18, 0.24) 100%);
}

/* 顶部品牌条 */
.av-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  box-sizing: border-box;
}
.av-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.av-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: av-float 5s ease-in-out infinite;
}
.av-home-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 7px 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.18s ease;
  white-space: nowrap;
}
.av-home-link:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* 舞台：居中悬浮 */
.av-stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 20px 48px;
}

/* 玻璃拟态登录卡（半透明：视频可透出） */
.av-card {
  position: relative;
  width: min(420px, 100%);
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 34px 30px 26px;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  animation: av-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  overflow: hidden;
}
/* 卡片右上角一抹品牌绿光晕 */
.av-card-glow {
  position: absolute;
  top: -56px;
  right: -56px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 185, 141, 0.5), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.av-card .auth-head,
.ar-card .auth-head {
  text-align: center;
  margin: 0 0 20px;
}
.av-card .auth-head h1,
.ar-card .auth-head h1 {
  margin: 0 0 6px;
  font-size: 25px;
  color: #14251f;
  letter-spacing: 1px;
}
.av-card .auth-head p,
.ar-card .auth-head p {
  margin: 0;
  font-size: 13.5px;
  color: #6b7c73;
}

/* 主按钮：品牌绿渐变 + 光影 */
.av-page .btn-primary,
.ar-page .btn-primary {
  background: linear-gradient(135deg, #1f6f5c 0%, #2e8f68 60%, #3aa57a 100%);
  border: none;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(31, 111, 92, 0.4);
  letter-spacing: 4px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.av-page .btn-primary:hover:not(:disabled),
.ar-page .btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(31, 111, 92, 0.5);
  transform: translateY(-1px);
}
.av-page .btn-primary:disabled,
.ar-page .btn-primary:disabled { filter: grayscale(0.3) brightness(0.96); }

.av-card .auth-foot,
.ar-card .auth-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 13.5px;
  color: #6b7c73;
}
.av-card .auth-foot a,
.ar-card .auth-foot a {
  color: #1f6f5c;
  font-weight: 700;
  text-decoration: none;
}
.av-card .auth-foot a:hover,
.ar-card .auth-foot a:hover { text-decoration: underline; }

/* ============ 注册页：首页同款绿色渐变 + 白卡 ============ */

body.ar-page {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(158deg, #0f3d30 0%, #1f6f5c 40%, #2e8f68 70%, #4aa87e 100%);
}
/* 装饰圆：与首页 banner 一致 */
body.ar-page::before,
body.ar-page::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
body.ar-page::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
}
body.ar-page::after {
  width: 520px;
  height: 520px;
  bottom: -220px;
  left: -160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 65%);
}

.ar-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  box-sizing: border-box;
}
.ar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.ar-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ar-home-link {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 7px 16px;
  transition: background 0.18s ease;
  white-space: nowrap;
}
.ar-home-link:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }

.ar-stage {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 20px 20px 56px;
}

.ar-card {
  width: min(560px, 100%);
  box-sizing: border-box;
  background: #fff;
  border-radius: 24px;
  padding: 34px 32px 28px;
  box-shadow: 0 30px 90px rgba(4, 32, 24, 0.42);
  animation: av-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* 手机号/昵称两列（桌面），窄屏单列 */
.ar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

/* 验证码一行布局 */
.ar-captcha {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.ar-captcha .input-wrap {
  flex: 1;
  min-width: 0;
}

/* ============ 品牌色覆盖：蓝紫 → 首页绿（仅这两页） ============ */

.av-page a,
.ar-page a { color: #1f6f5c; }

.av-page .input-wrap:focus-within,
.ar-page .input-wrap:focus-within {
  border-color: #2e8f68;
  box-shadow: 0 0 0 3px rgba(46, 143, 104, 0.16);
}
.av-page .input-wrap.is-error,
.ar-page .input-wrap.is-error {
  border-color: var(--danger, #e5484d);
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.12);
}
.av-page .input-wrap.is-ok,
.ar-page .input-wrap.is-ok {
  border-color: #2e8f68;
}
.av-page .icon-btn:hover,
.ar-page .icon-btn:hover { color: #1f6f5c; }
.av-page .captcha-box:hover,
.ar-page .captcha-box:hover {
  border-color: #2e8f68;
}
.av-page .form-label,
.ar-page .form-label { color: #3d4a44; }
.av-page .form-label .optional,
.ar-page .form-label .optional { color: #93a29a; }

/* ============ 响应式 ============ */

@media (max-width: 560px) {
  .av-top,
  .ar-top { padding: 14px 16px; }
  .av-brand,
  .ar-brand { font-size: 14.5px; }
  .av-stage { padding: 84px 14px 36px; align-items: flex-start; }
  .av-card { padding: 26px 20px 22px; border-radius: 20px; }
  .ar-stage { padding: 14px 14px 40px; }
  .ar-card { padding: 26px 20px 22px; border-radius: 20px; }
  .ar-grid { grid-template-columns: 1fr; gap: 0; }
  .av-card .auth-head h1,
  .ar-card .auth-head h1 { font-size: 22px; }
}

/* 减少动效偏好：仅保留入场动画关闭 */
@media (prefers-reduced-motion: reduce) {
  .av-card,
  .ar-card { animation: none; }
  .av-brand-logo { animation: none; }
}
