/* =============================================
   AUTH PAGES V2 — Soft Centered Card
   结构：居中单卡 + 软圆角控件
   强调色一律来自 --c-primary*（后台「用户端配色」注入）
   ============================================= */

/* ────────────────────────────────────────────
   中性 / 结构 token（不写死业务色相）
   ──────────────────────────────────────────── */
:root {
  --auth-ink: #1a2e28;
  --auth-muted: #6b7f78;
  --auth-line: #d0e0d8;
  --auth-line-strong: #b7ccc2;
  --auth-card: #f7faf8;
  --auth-card-2: #ffffff;
  --auth-soft: var(--c-primary-l, #eef6f2);
  --auth-bg-2: color-mix(in srgb, var(--c-primary-l, #eef6f2) 55%, #eef6f2);
  --auth-bg-3: color-mix(in srgb, var(--c-primary-m, #AFDAE6) 42%, #c5d7ce);
  --auth-field-bg: #ffffff;
  --auth-shadow: 0 18px 50px rgba(26, 46, 40, .10), 0 4px 14px rgba(26, 46, 40, .06);
  --auth-shadow-soft: 0 8px 24px rgba(26, 46, 40, .08);

  /* 主题色派生（可被页面注入的 --c-primary* 覆盖） */
  --auth-accent: var(--c-primary, #6BAAB8);
  --auth-accent-h: var(--c-primary-h, #4D93A4);
  --auth-accent-l: var(--c-primary-l, #EAF4F7);
  --auth-accent-m: var(--c-primary-m, #AFDAE6);
  --auth-accent-rgb: var(--c-primary-rgb, 107, 170, 184);
  --auth-cta: var(--auth-accent-h);
  --auth-cta-text: #ffffff;
  --auth-bg-wash: rgba(var(--auth-accent-rgb), .18);
  --auth-bg-wash-2: rgba(var(--auth-accent-rgb), .28);

  --auth-radius-card: 22px;
  --auth-radius-input: 12px;
  --auth-radius-btn: 12px;
  --auth-radius-pill: 999px;

  --auth-font: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --auth-ink: #e8f0ec;
  --auth-muted: #9aada6;
  --auth-line: rgba(255, 255, 255, .12);
  --auth-line-strong: rgba(255, 255, 255, .18);
  --auth-card: #1c2a26;
  --auth-card-2: #243530;
  --auth-field-bg: #243530;
  --auth-soft: rgba(var(--auth-accent-rgb), .18);
  --auth-bg-2: #1a2824;
  --auth-bg-3: #12201c;
  --auth-shadow: 0 18px 50px rgba(0, 0, 0, .35), 0 4px 14px rgba(0, 0, 0, .22);
  --auth-shadow-soft: 0 8px 24px rgba(0, 0, 0, .28);
  --auth-cta-text: #ffffff;
}

/* ────────────────────────────────────────────
   页面外壳
   ──────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  position: relative;
  font-family: var(--auth-font);
  color: var(--auth-ink);
  background:
    radial-gradient(900px 560px at 12% -10%, rgba(255, 255, 255, .75), transparent 60%),
    radial-gradient(760px 520px at 88% 8%, var(--auth-bg-wash), transparent 62%),
    radial-gradient(640px 520px at 80% 92%, var(--auth-bg-wash-2), transparent 64%),
    linear-gradient(155deg, var(--auth-bg-2), var(--auth-bg-3) 48%, var(--auth-bg-2));
  background-attachment: fixed;
}

.auth-wrap::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .35), transparent 40%),
    linear-gradient(300deg, rgba(var(--auth-accent-rgb), .08), transparent 50%);
}

.auth-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
}

.auth-wrap.is-centered {
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.auth-wrap.is-centered .auth-right,
.auth-wrap.is-centered .auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.auth-wrap.is-centered .auth-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

/* 品牌条与卡片同宽（覆盖 app.css 里 .auth-card { max-width:360px }） */
.auth-shell > .auth-brand,
.auth-shell > .auth-card {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  align-self: stretch;
}

/* 兼容：旧 is-split 视觉归一到居中单卡 */
.auth-wrap.is-split {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.auth-wrap.is-split .auth-brand {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 0 4px;
  margin-bottom: 0;
}

.auth-wrap.is-split .auth-right {
  width: 100%;
  max-width: 420px;
}

/* ────────────────────────────────────────────
   品牌区（卡上方）
   ──────────────────────────────────────────── */
.auth-brand {
  text-align: center;
  padding: 14px 16px 12px;
  border-radius: var(--auth-radius-card);
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(255, 255, 255, .32);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 8px 24px rgba(26, 46, 40, .08);
}

[data-theme="dark"] .auth-brand {
  background: rgba(20, 32, 28, .42);
  border-color: rgba(255, 255, 255, .10);
}

.auth-brand-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--auth-card-2);
  border: 1px solid var(--auth-line);
  box-shadow: var(--auth-shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-brand-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--auth-ink);
  line-height: 1.25;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--auth-radius-pill);
  background: var(--auth-accent-l);
  color: var(--auth-accent-h);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  border: 1px solid rgba(var(--auth-accent-rgb), .22);
}

.auth-brand-subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--auth-muted);
  line-height: 1.5;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}

.auth-help-text {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--auth-muted);
  line-height: 1.55;
  text-align: center;
}

/* 紧凑统计（可选） */
.auth-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .35);
  border: 1px solid rgba(var(--auth-accent-rgb), .12);
}

.auth-stat-item {
  text-align: center;
  min-width: 64px;
}

.auth-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--auth-ink);
  line-height: 1.2;
}

.auth-stat-value small {
  font-size: 11px;
  font-weight: 500;
  color: var(--auth-muted);
  margin-left: 2px;
}

.auth-stat-label {
  margin-top: 2px;
  font-size: 11px;
  color: var(--auth-muted);
}

/* ────────────────────────────────────────────
   卡片
   ──────────────────────────────────────────── */
.auth-card {
  position: relative;
  width: 100%;
  max-width: none;
  background: var(--auth-card);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: var(--auth-radius-card);
  box-shadow: var(--auth-shadow);
  padding: 22px 22px 20px;
}

[data-theme="dark"] .auth-card {
  border-color: rgba(255, 255, 255, .06);
}

.auth-card > * + * {
  margin-top: 14px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--auth-ink);
  margin-bottom: 2px;
}

.auth-logo img {
  max-height: 36px;
  display: block;
}

.auth-logo span {
  color: var(--auth-accent);
}

.admin-login-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--auth-ink);
  margin: 2px 0 0;
}

.admin-login-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--auth-muted);
  margin: 6px 0 0;
}

/* ────────────────────────────────────────────
   Tab 胶囊分段
   ──────────────────────────────────────────── */
.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--auth-radius-pill);
  background: var(--auth-soft);
  border: 1px solid rgba(var(--auth-accent-rgb), .10);
}

.auth-tabs-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: var(--auth-radius-pill);
  background: var(--auth-card-2);
  box-shadow: 0 2px 8px rgba(26, 46, 40, .08);
  transition: transform .22s ease;
  pointer-events: none;
}

.auth-tabs[data-active="register"] .auth-tabs-slider,
.auth-tabs.is-register .auth-tabs-slider {
  transform: translateX(100%);
}

.auth-tab {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: var(--auth-radius-pill);
  min-height: 38px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--auth-muted);
  cursor: pointer;
  transition: color .18s ease;
}

.auth-tab.active {
  color: var(--auth-accent-h);
  font-weight: 600;
}

.auth-tab:hover:not(.active) {
  color: var(--auth-ink);
}

/* ────────────────────────────────────────────
   表单与字段
   ──────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form-hidden {
  display: none !important;
}

.auth-form-entering {
  animation: authFormIn .28s ease;
}

@keyframes authFormIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-form-register {
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--auth-ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius-input);
  background: var(--auth-field-bg);
  color: var(--auth-ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(var(--auth-accent-rgb), .18);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--auth-muted);
  opacity: .85;
}

.field input[readonly] {
  opacity: .75;
}

/* 密码显示切换 */
.auth-pass-wrap {
  position: relative;
  display: block;
}

.auth-pass-wrap input {
  padding-right: 56px;
}

.auth-pass-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--auth-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}

.auth-pass-toggle:hover {
  color: var(--auth-accent-h);
  background: rgba(var(--auth-accent-rgb), .10);
}

/* ────────────────────────────────────────────
   按钮
   ──────────────────────────────────────────── */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--auth-radius-btn);
  background: var(--auth-cta);
  color: var(--auth-cta-text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: filter .16s ease, transform .12s ease, box-shadow .16s ease;
  box-shadow: 0 8px 20px rgba(var(--auth-accent-rgb), .22);
}

.btn:hover:not(:disabled) {
  filter: brightness(.95);
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(.92);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn[hidden] {
  display: none !important;
}

.btn-ghost {
  background: transparent;
  color: var(--auth-muted);
  border: 1px solid var(--auth-line);
  box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
  color: var(--auth-ink);
  background: rgba(var(--auth-accent-rgb), .06);
  filter: none;
}

.btn-accent {
  background: var(--auth-accent);
  color: var(--auth-cta-text);
}

/* ────────────────────────────────────────────
   链接 / 记住我
   ──────────────────────────────────────────── */
.auth-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--auth-muted);
  margin-top: 4px;
}

.auth-links a {
  color: var(--auth-accent-h);
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-links-sep {
  opacity: .55;
}

.auth-links-muted {
  color: var(--auth-muted) !important;
}

.auth-links-muted:hover {
  color: var(--auth-ink) !important;
}

.remember-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--auth-muted);
  cursor: pointer;
  user-select: none;
}

.remember-wrap input[type="checkbox"],
.auth-tos-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--auth-accent);
  cursor: pointer;
}

/* ────────────────────────────────────────────
   注册步骤（紧凑进度，兼容旧类名）
   ──────────────────────────────────────────── */
.auth-steps {
  margin: 2px 0 4px;
}

.auth-step-rail {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auth-step {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
}

.auth-step:last-child {
  flex: 0 0 auto;
}

.auth-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--auth-line-strong);
  flex: 0 0 auto;
}

.auth-step.is-active {
  color: var(--auth-accent-h);
}

.auth-step.is-active .auth-step-dot {
  background: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(var(--auth-accent-rgb), .20);
}

.auth-step.is-done {
  color: var(--auth-ink);
}

.auth-step.is-done .auth-step-dot {
  background: var(--auth-accent-m);
}

.auth-step-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-step-track {
  height: 5px;
  border-radius: var(--auth-radius-pill);
  background: var(--auth-soft);
  overflow: hidden;
}

.auth-step-track-fill {
  height: 100%;
  width: 33.33%;
  border-radius: var(--auth-radius-pill);
  background: linear-gradient(90deg, var(--auth-accent), var(--auth-accent-h));
  transition: width .28s ease;
}

.auth-step-panel {
  display: none;
}

.auth-step-panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: authFormIn .24s ease;
}

.auth-step-lead {
  margin: 0;
  font-size: 13px;
  color: var(--auth-muted);
  line-height: 1.55;
}

.auth-step-lead strong {
  color: var(--auth-ink);
  font-weight: 600;
}

.auth-step-nav {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.auth-step-nav .btn {
  flex: 1;
}

.auth-step-nav .btn-ghost {
  flex: 0 0 96px;
  width: auto;
}

/* ────────────────────────────────────────────
   横幅
   ──────────────────────────────────────────── */
.auth-banner {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid transparent;
}

.auth-banner[style*="display: block"],
.auth-banner[style*="display:block"],
.auth-banner.is-visible {
  display: block;
}

.auth-banner-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.auth-banner-success {
  background: rgba(var(--auth-accent-rgb), .12);
  border-color: rgba(var(--auth-accent-rgb), .22);
  color: var(--auth-ink);
}

.auth-banner-info {
  background: var(--auth-soft);
  border-color: rgba(var(--auth-accent-rgb), .16);
  color: var(--auth-ink);
}

/* ────────────────────────────────────────────
   弹窗
   ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(18, 28, 24, .42);
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  width: min(100%, 440px);
  background: var(--auth-card-2);
  border-radius: 18px;
  border: 1px solid var(--auth-line);
  box-shadow: var(--auth-shadow);
  overflow: hidden;
  animation: authFormIn .2s ease;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--auth-line);
  font-size: 15px;
  font-weight: 600;
  color: var(--auth-ink);
}

.modal-close {
  appearance: none;
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--auth-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(var(--auth-accent-rgb), .10);
  color: var(--auth-ink);
}

.modal-body {
  padding: 16px;
}

.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--auth-line);
}

.modal-foot .btn {
  width: auto;
  min-width: 96px;
  min-height: 40px;
  font-size: 14px;
}

.auth-alert-card {
  width: min(100%, 380px);
}

.auth-alert-body {
  text-align: center;
}

.auth-alert-head-icon {
  margin-bottom: 8px;
}

.auth-alert-msg {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--auth-ink);
}

.auth-tos-modal {
  width: min(100%, 560px);
}

.auth-tos-modal-body {
  height: min(52vh, 420px);
  padding: 0;
}

.auth-tos-modal-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

/* ────────────────────────────────────────────
   协议 / 验证码 / 提示
   ──────────────────────────────────────────── */
.auth-tos-field {
  margin-top: 2px;
}

.auth-tos-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--auth-muted);
  cursor: pointer;
}

.auth-tos-link {
  color: var(--auth-accent-h);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.auth-tos-link:hover {
  color: var(--auth-accent);
}

.auth-inline-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.auth-inline-group input {
  flex: 1;
  min-width: 0;
}

.auth-code-input,
.auth-captcha-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

.auth-code-btn,
.auth-captcha-refresh {
  appearance: none;
  flex: 0 0 auto;
  min-width: 88px;
  padding: 0 12px;
  border-radius: var(--auth-radius-input);
  border: 1px solid var(--auth-line);
  background: var(--auth-soft);
  color: var(--auth-accent-h);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.auth-code-btn:hover:not(:disabled),
.auth-captcha-refresh:hover {
  border-color: rgba(var(--auth-accent-rgb), .35);
  background: rgba(var(--auth-accent-rgb), .14);
}

.auth-code-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.auth-field-tip {
  min-height: 0;
  font-size: 12px;
  color: var(--auth-muted);
}

.auth-field-tip.is-danger {
  color: #c2413b;
}

.auth-captcha-img {
  height: 44px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--auth-line);
  cursor: pointer;
  background: #fff;
}

.auth-captcha-img:hover {
  border-color: var(--auth-accent);
}

.auth-field-invite:not(.is-visible),
.auth-field-captcha:not(.is-visible),
.auth-tos-field:not(.is-visible) {
  display: none;
}

.auth-field-hint {
  font-size: 12px;
  color: var(--auth-muted);
  line-height: 1.5;
}

.form-hint {
  font-size: 12px;
  color: var(--auth-muted);
  line-height: 1.5;
}

.form-error {
  display: none;
  font-size: 12px;
  color: #c2413b;
}

.form-error.is-visible,
.form-error.show {
  display: block;
}

/* 密码强度条（helper 注册） */
.password-strength {
  height: 4px;
  border-radius: 999px;
  background: var(--auth-soft);
  overflow: hidden;
  margin-top: 6px;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--auth-accent);
  transition: width .2s ease, background-color .2s ease;
}

/* mode-tabs（helper 注册） */
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--auth-radius-pill);
  background: var(--auth-soft);
  border: 1px solid rgba(var(--auth-accent-rgb), .10);
  margin-bottom: 4px;
}

.mode-tab {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: var(--auth-radius-pill);
  min-height: 36px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--auth-muted);
  cursor: pointer;
}

.mode-tab.active {
  background: var(--auth-card-2);
  color: var(--auth-accent-h);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(26, 46, 40, .08);
}

/* 品牌特性卡（helper 注册左栏，若仍存在则柔化） */
.auth-feature-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .4);
  border: 1px solid rgba(var(--auth-accent-rgb), .12);
  margin-bottom: 12px;
}

.auth-feature-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--auth-ink);
  margin-bottom: 4px;
}

.auth-feature-card-desc {
  font-size: 13px;
  color: var(--auth-muted);
  line-height: 1.5;
}

/* ────────────────────────────────────────────
   进入工作台转场
   ──────────────────────────────────────────── */
.auth-enter-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(var(--auth-accent-rgb), .16);
  backdrop-filter: blur(10px);
}

.auth-enter-shell.active,
.auth-enter-shell.is-on {
  display: flex;
}

.auth-enter-shell-inner {
  text-align: center;
}

.auth-enter-orbit {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(var(--auth-accent-rgb), .25);
  border-top-color: var(--auth-accent);
  animation: auth-enter-spin 1s linear infinite;
}

@keyframes auth-enter-spin {
  to { transform: rotate(360deg); }
}

.auth-enter-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--auth-ink);
}

.auth-enter-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--auth-muted);
}

/* 图标 */
.auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.auth-icon-back::before { content: "←"; font-size: 16px; }
.auth-icon-close::before { content: "✕"; font-size: 16px; }
.auth-icon-alert::before { content: "⚠"; font-size: 42px; }
.auth-icon-check::before { content: "✓"; font-size: 16px; }
.auth-icon-gift::before { content: "🎁"; font-size: 20px; }
.auth-icon-wallet::before { content: "💰"; font-size: 20px; }

/* ────────────────────────────────────────────
   响应式
   ──────────────────────────────────────────── */
@media (max-width: 599px) {
  .auth-wrap.is-centered,
  .auth-wrap.is-split {
    padding: 18px 12px;
  }

  .auth-brand-title {
    font-size: 22px;
  }

  .auth-brand-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
  }

  .auth-card {
    padding: 18px 16px 16px;
    border-radius: 18px;
  }

  .auth-tabs {
    margin-top: 2px;
  }

  .auth-tab {
    min-height: 36px;
    font-size: 13px;
  }

  .field label {
    font-size: 12px;
  }

  .field input,
  .field select {
    min-height: 42px;
  }

  .btn {
    min-height: 44px;
    font-size: 14px;
  }

  .auth-step-label {
    font-size: 11px;
  }

  .auth-inline-group {
    flex-wrap: wrap;
  }

  .auth-code-btn,
  .auth-captcha-refresh {
    min-height: 42px;
  }

  .modal-card {
    border-radius: 16px;
  }

  .modal-foot {
    flex-direction: column-reverse;
  }

  .modal-foot .btn {
    width: 100%;
  }
}

@media print {
  .auth-bg-layer,
  .auth-brand,
  .auth-enter-shell {
    display: none !important;
  }

  .auth-wrap {
    background: #fff;
  }

  .auth-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-form-entering,
  .auth-step-panel.is-active,
  .modal-card,
  .auth-tabs-slider,
  .auth-step-track-fill {
    animation: none !important;
    transition: none !important;
  }

  .auth-enter-orbit {
    animation: none;
  }
}
