/* ==========================================================================
   auth.css —— 登录 / 注册页 v2（融合式横版控制台）
   --------------------------------------------------------------------------
   构图逻辑：
   · 整页深色底（网格 + 扫描光带 + 光标聚光 + 巨型水印）铺满全屏，消灭「两侧空旷」
   · 一张横版大卡片横贯页面：左半是深色视觉区（与页面底色无缝融合），
     右半是浅色表单区，中间仅一条青色细缝——两部分融为一体而非两个盒子
   · 顶部一条渐变强调条横贯整卡，页脚信息条横贯整页，上下呼应
   ========================================================================== */

.auth-page {
  display: block !important;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 !important;
  overflow: hidden;
  background: #0e1a18;
}

/* 去掉原有固定边框装饰 */
.auth-page::before,
.auth-page::after {
  display: none;
}

/* --------------------------------------------------------------------------
   页面舞台：深色底 + 满屏装饰
   -------------------------------------------------------------------------- */

.xp-auth {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(24px, 3.5vw, 44px);
  overflow: hidden;
  color: var(--c-surface);
  isolation: isolate;
}

/* 满屏网格底纹 */
.xp-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(238, 244, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 244, 241, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: xp-grid-drift 30s linear infinite;
}

@keyframes xp-grid-drift {
  to {
    background-position: 56px 56px, 56px 56px;
  }
}

/* 满屏光标聚光 */
.xp-auth::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    560px circle at var(--xp-mx, 26%) var(--xp-my, 34%),
    rgba(var(--c-accent-rgb), 0.3),
    rgba(var(--c-accent-rgb), 0.08) 46%,
    transparent 72%
  );
  opacity: 0;
  transition: opacity 460ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.xp-auth.is-lit::after {
  opacity: 1;
}

/* 满屏扫描光带 */
.xp-auth-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 220px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--c-accent-rgb), 0.14) 42%,
    rgba(190, 240, 228, 0.22) 50%,
    rgba(var(--c-accent-rgb), 0.14) 58%,
    transparent
  );
  transform: translateX(-240px);
  animation: xp-beam 8.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
}

@keyframes xp-beam {
  0% {
    transform: translateX(-240px);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100vw + 240px));
    opacity: 0;
  }
}

/* 巨型水印 logo */
.xp-auth-mark {
  position: absolute;
  right: -70px;
  bottom: -52px;
  z-index: 0;
  width: 400px;
  height: 380px;
  background: center / contain no-repeat;
  filter: invert(1) brightness(1.5);
  opacity: 0.055;
  animation: xp-mark-float 18s ease-in-out infinite;
  pointer-events: none;
}

@keyframes xp-mark-float {
  0%,
  100% {
    transform: rotate(-7deg) translateY(0);
  }
  50% {
    transform: rotate(-3deg) translateY(-16px);
  }
}

/* 页面四角刻度 */
.xp-auth-frame {
  position: absolute;
  inset: clamp(14px, 2vw, 24px);
  z-index: 3;
  pointer-events: none;
}

.xp-auth-frame i {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(238, 244, 241, 0.28);
}

.xp-auth-frame i:nth-child(1) {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}
.xp-auth-frame i:nth-child(2) {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}
.xp-auth-frame i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
}
.xp-auth-frame i:nth-child(4) {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}

/* --------------------------------------------------------------------------
   融合式横版大卡片
   -------------------------------------------------------------------------- */

.xp-auth-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  width: min(1200px, 96vw);
  border: 1px solid rgba(238, 244, 241, 0.16);
  box-shadow: 14px 14px 0 rgba(9, 22, 19, 0.55),
    0 44px 110px rgba(0, 0, 0, 0.42);
  animation: xp-stage-in 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes xp-stage-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 顶部渐变强调条：横贯整卡 */
.xp-auth-stage::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent) 0 46%, var(--c-accent-2) 46% 78%, var(--c-surface) 78% 100%);
}

/* 镜像布局（注册页）：视觉区排到右侧，细缝移到左缘 */
.xp-auth-stage.is-mirrored .xp-auth-visual {
  order: 2;
}

.xp-auth-stage.is-mirrored .xp-auth-visual::after {
  right: auto;
  left: 0;
}

/* 左半：深色视觉区（背景透明，与页面底色无缝融合） */
.xp-auth-visual {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 26px;
  padding: clamp(26px, 3vw, 44px);
  color: var(--c-surface);
}

/* 左区与右区之间：青色细缝 */
.xp-auth-visual::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(79, 209, 184, 0.55),
    rgba(79, 209, 184, 0.1) 30%,
    rgba(79, 209, 184, 0.1) 70%,
    rgba(79, 209, 184, 0.55)
  );
}

/* 右半：浅色表单区 */
.xp-auth-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 3vw, 44px) clamp(28px, 3.4vw, 52px);
  background: var(--c-panel-solid);
  color: var(--ui-ink, var(--c-ink));
}

/* --------------------------------------------------------------------------
   左区内容
   -------------------------------------------------------------------------- */

.xp-auth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(238, 244, 241, 0.14);
  color: rgba(238, 244, 241, 0.62);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.xp-mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

/* 深色区 logo 反白 lockup */
.xp-brandlock {
  display: flex;
  align-items: center;
  gap: 12px;
}

.xp-brandlock-logo {
  display: block;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 7px;
  object-fit: contain;
  border: 1px solid rgba(238, 244, 241, 0.3);
  background:
    linear-gradient(160deg, rgba(79, 209, 184, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.05);
  filter: brightness(0) invert(1);
  box-shadow: inset 0 0 16px rgba(79, 209, 184, 0.14);
  transition: box-shadow 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.xp-brandlock:hover .xp-brandlock-logo {
  border-color: rgba(79, 209, 184, 0.7);
  box-shadow: inset 0 0 16px rgba(79, 209, 184, 0.22),
    0 0 26px rgba(79, 209, 184, 0.4);
}

.xp-brandlock-copy {
  display: grid;
  gap: 3px;
}

.xp-brandlock-copy strong {
  color: var(--c-surface);
  font-family: "Noto Serif SC", serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.xp-brandlock-copy small {
  color: rgba(238, 244, 241, 0.5);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* 主标语：横版比例，适当收敛字号 */
.xp-auth-visual-body {
  align-self: center;
  max-width: 26ch;
}

.xp-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 6px 12px;
  border: 1px solid rgba(var(--c-accent-rgb), 0.55);
  background: rgba(var(--c-accent-rgb), 0.18);
  color: #9fe3d4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.xp-auth-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #4fd1b8;
  box-shadow: 0 0 12px rgba(79, 209, 184, 0.9);
  animation: xp-pulse 1.8s ease-in-out infinite;
}

@keyframes xp-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

.xp-auth-display {
  margin: 0;
  font-family: "Noto Serif SC", "Instrument Serif", serif;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.xp-auth-display span {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: xp-rise 760ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.xp-auth-display span:nth-child(1) {
  animation-delay: 120ms;
}
.xp-auth-display span:nth-child(2) {
  animation-delay: 210ms;
}
.xp-auth-display span:nth-child(3) {
  animation-delay: 300ms;
}

.xp-auth-display .is-accent {
  color: #4fd1b8;
}

@keyframes xp-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.xp-auth-visual-sub {
  margin: 20px 0 0;
  max-width: 30ch;
  color: rgba(238, 244, 241, 0.55);
  font-size: 0.88rem;
  line-height: 1.75;
  opacity: 0;
  animation: xp-rise 760ms cubic-bezier(0.16, 1, 0.3, 1) 400ms forwards;
}

/* 坐标刻度组：横排 */
.xp-auth-ticks {
  display: flex;
  gap: clamp(20px, 2.6vw, 40px);
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(238, 244, 241, 0.14);
  list-style: none;
}

.xp-auth-ticks li {
  display: grid;
  gap: 4px;
  padding-left: 12px;
  border-left: 2px solid rgba(79, 209, 184, 0.5);
}

.xp-auth-ticks b {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.xp-auth-ticks span {
  color: rgba(238, 244, 241, 0.44);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

/* --------------------------------------------------------------------------
   页脚信息条：横贯整页，与大卡片呼应
   -------------------------------------------------------------------------- */

.xp-auth-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1200px, 96vw);
  padding-top: 16px;
  border-top: 1px solid rgba(238, 244, 241, 0.12);
  color: rgba(238, 244, 241, 0.4);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   右区表单（沿用既有元件样式）
   -------------------------------------------------------------------------- */

.xp-auth-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

/* 卡片头 logo：方形铭牌 + 呼吸辉光 */
.xp-auth-logo {
  display: block;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  padding: 10px;
  object-fit: contain;
  border: 1px solid rgba(var(--c-ink-rgb), 0.2);
  background: linear-gradient(150deg, #ffffff 0%, #e9f2ee 100%);
  animation: xp-logo-glow 3.8s ease-in-out infinite;
  transition: transform 420ms cubic-bezier(0.34, 1.5, 0.64, 1),
    border-color 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes xp-logo-glow {
  0%,
  100% {
    box-shadow: 4px 4px 0 rgba(var(--c-accent-rgb), 0.2),
      0 10px 22px rgba(var(--c-ink-rgb), 0.12),
      0 0 0 rgba(79, 209, 184, 0);
  }
  50% {
    box-shadow: 4px 4px 0 rgba(var(--c-accent-rgb), 0.22),
      0 10px 22px rgba(var(--c-ink-rgb), 0.12),
      0 0 24px rgba(79, 209, 184, 0.4);
  }
}

.xp-auth-side:hover .xp-auth-logo {
  border-color: rgba(var(--c-accent-rgb), 0.5);
  transform: translateY(-4px) rotate(-4deg) scale(1.05);
}

.xp-auth-brand {
  display: grid;
  gap: 3px;
}

.xp-auth-brand strong {
  font-family: "Noto Serif SC", serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.xp-auth-brand .xp-mono {
  color: var(--muted, var(--c-muted));
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.xp-auth-index {
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid rgba(var(--c-ink-rgb), 0.18);
  color: var(--c-ink-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.xp-auth-title {
  margin: 0;
  font-family: "Noto Serif SC", "Instrument Serif", serif;
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.xp-auth-sub {
  margin: 10px 0 24px;
  color: var(--c-muted);
  font-size: 0.92rem;
}

/* ---- 表单元件 ---- */

.xp-form {
  display: grid;
  gap: 18px;
}

.xp-field {
  position: relative;
  display: grid;
  gap: 8px;
}

.xp-field > label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.xp-field > label .xp-mono {
  color: var(--c-accent);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.7;
  transition: transform 240ms cubic-bezier(0.34, 1.5, 0.64, 1);
}

.xp-field:focus-within > label {
  color: var(--c-accent);
}

.xp-field:focus-within > label .xp-mono {
  transform: translateX(3px);
}

.xp-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(var(--c-ink-rgb), 0.2);
  border-radius: 0 !important;
  background: #fff;
  color: var(--c-ink);
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 500;
  outline: none;
  transition: border-color 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.xp-field input::placeholder {
  color: rgba(69, 82, 78, 0.42);
  font-weight: 400;
}

.xp-field input:hover {
  border-color: rgba(var(--c-accent-rgb), 0.4);
}

.xp-field input:focus {
  border-color: var(--c-accent);
  box-shadow: 3px 3px 0 rgba(var(--c-accent-rgb), 0.16),
    0 0 0 3px rgba(var(--c-accent-rgb), 0.14);
  transform: translateY(-1px);
}

/* 底部进度条 */
.xp-field-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.xp-field:focus-within .xp-field-bar {
  transform: scaleX(1);
}

/* 验证码 */
.xp-captcha {
  display: grid;
  gap: 8px;
}

.xp-captcha-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.xp-captcha-img {
  position: relative;
  overflow: hidden;
  display: block;
  width: 130px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(var(--c-ink-rgb), 0.2);
  background: #fff;
  cursor: pointer;
  transition: border-color 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.xp-captcha-img:hover {
  border-color: var(--c-accent);
  box-shadow: 3px 3px 0 rgba(var(--c-accent-rgb), 0.16);
  transform: translate(-1px, -2px);
}

.xp-captcha-img:active {
  transform: translate(0, 0) scale(0.98);
}

.xp-captcha-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xp-captcha-img.is-refreshing img {
  animation: xp-captcha-swap 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes xp-captcha-swap {
  0% {
    opacity: 0.15;
    transform: scale(1.06);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.xp-captcha-img::after {
  content: "换一张";
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  place-items: center;
  height: 22px;
  background: rgba(var(--c-ink-rgb), 0.86);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: translateY(100%);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.xp-captcha-img:hover::after {
  transform: translateY(0);
}

.xp-captcha-hint {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.74rem;
}

/* 记住我：方形勾选框 */
.xp-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  color: var(--c-ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.xp-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.xp-check-box {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(var(--c-ink-rgb), 0.28);
  background: #fff;
  transition: border-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 200ms cubic-bezier(0.34, 1.5, 0.64, 1);
}

.xp-check:hover .xp-check-box {
  border-color: var(--c-accent);
  transform: scale(1.06);
}

.xp-check input:checked + .xp-check-box {
  border-color: var(--c-accent);
  background: var(--c-accent);
  box-shadow: 2px 2px 0 rgba(var(--c-accent-rgb), 0.28);
}

.xp-check-box::before,
.xp-check-box::after {
  content: "";
  position: absolute;
  background: #fff;
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(0.34, 1.5, 0.64, 1);
}

.xp-check-box::before {
  left: 3px;
  top: 9px;
  width: 6px;
  height: 2px;
  transform: rotate(45deg) scaleX(0);
}

.xp-check-box::after {
  left: 7px;
  top: 7px;
  width: 9px;
  height: 2px;
  transform: rotate(-45deg) scaleX(0);
}

.xp-check input:checked + .xp-check-box::before {
  transform: rotate(45deg) scaleX(1);
  transition-delay: 40ms;
}

.xp-check input:checked + .xp-check-box::after {
  transform: rotate(-45deg) scaleX(1);
  transition-delay: 140ms;
}

.xp-check input:focus-visible + .xp-check-box {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* 提交按钮 */
.xp-submit {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  margin-top: 4px;
  border: 0;
  background: linear-gradient(180deg, #14352f 0%, var(--c-ink) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 5px 5px 0 rgba(var(--c-accent-rgb), 0.5),
    0 16px 34px rgba(var(--c-ink-rgb), 0.24);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.xp-submit:hover:not(:disabled) {
  background: linear-gradient(180deg, #14897b 0%, #0b6157 60%, #094f47 100%);
  transform: translate(-2px, -3px);
  box-shadow: 8px 9px 0 rgba(11, 96, 87, 0.45),
    0 26px 50px rgba(var(--c-accent-rgb), 0.34);
}

.xp-submit:active:not(:disabled) {
  transform: translate(0, 0) scale(0.99);
  transition-duration: 120ms;
  box-shadow: 2px 2px 0 rgba(11, 96, 87, 0.5),
    0 8px 16px rgba(var(--c-ink-rgb), 0.2);
}

.xp-submit .xp-submit-arrow {
  width: 18px;
  height: 18px;
  transition: transform 240ms cubic-bezier(0.34, 1.5, 0.64, 1);
}

.xp-submit:hover .xp-submit-arrow {
  transform: translateX(6px);
}

.xp-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.xp-submit.is-loading .xp-submit-arrow {
  animation: xp-arrow-run 620ms linear infinite;
}

@keyframes xp-arrow-run {
  0% {
    transform: translateX(-4px);
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(6px);
    opacity: 0.3;
  }
}

/* 底部切换 */
.xp-auth-switch {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(var(--c-ink-rgb), 0.1);
  color: var(--c-muted);
  font-size: 0.9rem;
}

.xp-auth-switch a {
  position: relative;
  color: var(--c-accent);
  font-weight: 800;
  text-decoration: none;
}

.xp-auth-switch a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.xp-auth-switch a:hover::after {
  transform: scaleX(1);
}

.auth-page .toast-stack {
  z-index: 60;
}

/* --------------------------------------------------------------------------
   响应式：窄屏上下堆叠
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .xp-auth {
    gap: 16px;
    justify-content: flex-start;
  }

  .xp-auth-stage {
    grid-template-columns: 1fr;
    width: min(640px, 100%);
  }

  .xp-auth-visual {
    min-height: 0;
    padding: 22px 24px;
    gap: 16px;
    grid-template-rows: auto auto;
  }

  .xp-auth-visual::after {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(79, 209, 184, 0.55),
      rgba(79, 209, 184, 0.1)
    );
  }

  .xp-auth-visual-body {
    align-self: start;
  }

  .xp-auth-display {
    font-size: clamp(1.5rem, 6.4vw, 2rem);
  }

  .xp-auth-visual-sub,
  .xp-auth-ticks {
    display: none;
  }

  .xp-auth-beam,
  .xp-auth-foot,
  .xp-auth-frame {
    display: none;
  }

  .xp-auth-side {
    padding: 26px 24px 34px;
  }
}

@media (max-width: 420px) {
  .xp-captcha-row {
    grid-template-columns: 1fr;
  }

  .xp-captcha-img {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   减少动态效果
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .xp-auth::before,
  .xp-auth-beam,
  .xp-auth-mark,
  .xp-auth-kicker::before,
  .xp-auth-display span,
  .xp-auth-visual-sub,
  .xp-auth-stage,
  .xp-auth-logo {
    animation: none !important;
  }

  .xp-auth-display span,
  .xp-auth-visual-sub {
    opacity: 1;
    transform: none;
  }

  .xp-auth-stage {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   浅色主题覆盖层：整体换为浅色系（方正 · 大气 · 浅底强光影）
   ========================================================================== */

.auth-page,
.xp-auth {
  background: #e8ece7;
  color: var(--c-ink);
}

/* 满屏装饰改浅色 */
.xp-auth::before {
  background-image:
    linear-gradient(rgba(23, 33, 30, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 30, 0.065) 1px, transparent 1px);
}

.xp-auth::after {
  background: radial-gradient(
    560px circle at var(--xp-mx, 26%) var(--xp-my, 34%),
    rgba(var(--c-accent-rgb), 0.16),
    rgba(var(--c-accent-rgb), 0.05) 46%,
    transparent 72%
  );
}

.xp-auth-beam {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--c-accent-rgb), 0.07) 42%,
    rgba(var(--c-accent-rgb), 0.15) 50%,
    rgba(var(--c-accent-rgb), 0.07) 58%,
    transparent
  );
}

.xp-auth-mark {
  filter: none;
  opacity: 0.06;
}

.xp-auth-frame i {
  border-color: rgba(23, 33, 30, 0.32);
}

/* 大卡片：白底硬边投影 */
.xp-auth-stage {
  border-color: rgba(23, 33, 30, 0.2);
  background: #f7faf6;
  box-shadow: 14px 14px 0 rgba(23, 33, 30, 0.12),
    0 44px 110px rgba(23, 33, 30, 0.16);
}

.xp-auth-stage::before {
  background: linear-gradient(90deg, var(--c-accent) 0 46%, var(--c-accent-2) 46% 78%, var(--c-ink) 78% 100%);
}

/* 左区：浅色视觉区 */
.xp-auth-visual {
  color: var(--c-ink);
}

.xp-auth-visual::after {
  background: linear-gradient(
    180deg,
    rgba(var(--c-accent-rgb), 0.5),
    rgba(var(--c-accent-rgb), 0.1) 30%,
    rgba(var(--c-accent-rgb), 0.1) 70%,
    rgba(var(--c-accent-rgb), 0.5)
  );
}

.xp-auth-bar {
  color: rgba(23, 33, 30, 0.6);
  border-bottom-color: rgba(23, 33, 30, 0.14);
}

.xp-brandlock-logo {
  filter: none;
  border-color: rgba(23, 33, 30, 0.22);
  background:
    linear-gradient(160deg, rgba(var(--c-accent-rgb), 0.12), transparent 55%),
    #ffffff;
  box-shadow: inset 0 0 16px rgba(var(--c-accent-rgb), 0.08);
}

.xp-brandlock:hover .xp-brandlock-logo {
  border-color: rgba(var(--c-accent-rgb), 0.6);
  box-shadow: inset 0 0 16px rgba(var(--c-accent-rgb), 0.14),
    0 0 24px rgba(var(--c-accent-rgb), 0.28);
}

.xp-brandlock-copy strong {
  color: var(--c-ink);
}

.xp-brandlock-copy small {
  color: rgba(23, 33, 30, 0.5);
}

.xp-auth-kicker {
  border-color: rgba(var(--c-accent-rgb), 0.4);
  background: rgba(var(--c-accent-rgb), 0.1);
  color: var(--c-accent-dark);
}

.xp-auth-kicker::before {
  background: var(--c-accent);
  box-shadow: 0 0 12px rgba(var(--c-accent-rgb), 0.7);
}

.xp-auth-display .is-accent {
  color: var(--c-accent);
}

.xp-auth-visual-sub {
  color: rgba(23, 33, 30, 0.58);
}

.xp-auth-ticks {
  border-top-color: rgba(23, 33, 30, 0.14);
}

.xp-auth-ticks li {
  border-left-color: rgba(var(--c-accent-rgb), 0.55);
}

.xp-auth-ticks b {
  color: var(--c-ink);
}

.xp-auth-ticks span {
  color: rgba(23, 33, 30, 0.45);
}

/* 右区表单：纯白 */
.xp-auth-side {
  background: #ffffff;
  color: var(--c-ink);
}

/* 页脚信息条 */
.xp-auth-foot {
  color: rgba(23, 33, 30, 0.45);
  border-top-color: rgba(23, 33, 30, 0.12);
}

/* 提交按钮适配浅色：深墨底保留，硬边投影改深色 */
.xp-submit {
  box-shadow: 5px 5px 0 rgba(var(--c-accent-rgb), 0.35),
    0 16px 34px rgba(23, 33, 30, 0.18);
}

/* ==========================================================================
   字号整体加大一档（登录/注册页）
   ========================================================================== */

.xp-auth-bar {
  font-size: 0.74rem;
}

.xp-auth-foot {
  font-size: 0.7rem;
}

.xp-brandlock-copy strong {
  font-size: 1.06rem;
}

.xp-brandlock-copy small {
  font-size: 0.66rem;
}

.xp-auth-brand strong {
  font-size: 1.18rem;
}

.xp-auth-brand .xp-mono {
  font-size: 0.66rem;
}

.xp-auth-index {
  font-size: 0.72rem;
}

.xp-auth-display {
  font-size: clamp(2rem, 2.9vw, 2.9rem);
}

.xp-auth-visual-sub {
  font-size: 0.96rem;
}

.xp-auth-ticks b {
  font-size: 1.05rem;
}

.xp-auth-ticks span {
  font-size: 0.66rem;
}

.xp-auth-title {
  font-size: clamp(2.2rem, 3.2vw, 3rem);
}

.xp-auth-sub {
  font-size: 1rem;
}

.xp-field > label {
  font-size: 0.82rem;
}

.xp-field input {
  min-height: 54px;
  font-size: 1.04rem;
}

.xp-captcha-img {
  width: 136px;
  height: 54px;
}

.xp-captcha-hint {
  font-size: 0.8rem;
}

.xp-check {
  font-size: 0.94rem;
}

.xp-submit {
  min-height: 58px;
  font-size: 1.06rem;
}

.xp-auth-switch {
  font-size: 0.98rem;
}
