/* ================================================================
   Earth API - 认证域样式 (auth.css)
   版本：v1.0
   设计依据：windows/DESIGN.md (Earth API Design System)
   视觉参考：assets/css/wallet.css (ew- 体系) 的 ring 风格、
            卡片体系、按钮体系，以保持全站一致
   命名空间：au- (auth)，与 ec- / ew- / mk- 体系平行
   覆盖页面：login1.html（品牌氛围双栏）、forgot-password1.html（步骤卡片）
   规则要点：主色青色 #0EA5E9 / 禁紫色 / ring 替代 border 病 /
            同心圆角 / 极轻阴影 / 按钮仅 scale(0.96) 不上抬 /
            卡片 hover translateY(-3px) / tabular-nums 数值
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Lobster&family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ============================================================
   1. 设计令牌
   ============================================================ */
:root {
  /* 背景与表面 */
  --au-bg: #f8fafc;
  --au-bg-elevated: #ffffff;
  --au-bg-hover: #f1f5f9;
  --au-bg-subtle: #fafbfc;
  --au-bg-active: rgba(14, 165, 233, 0.08);

  /* 品牌深色面板（cosmic，仅登录页左栏） */
  --au-brand-bg: #0b1120;
  --au-brand-bg-deep: #070b14;
  --au-brand-text: #f8fafc;
  --au-brand-text-muted: rgba(248, 250, 252, 0.62);
  --au-brand-text-dim: rgba(248, 250, 252, 0.42);
  --au-brand-glow: rgba(14, 165, 233, 0.45);
  --au-brand-glow-soft: rgba(14, 165, 233, 0.18);
  --au-brand-line: rgba(248, 250, 252, 0.10);

  /* 主色 - 青色（DESIGN.md 规定） */
  --au-primary: #0ea5e9;
  --au-primary-hover: #0284c7;
  --au-primary-deep: #0369a1;
  --au-primary-soft: rgba(14, 165, 233, 0.10);
  --au-primary-border: rgba(14, 165, 233, 0.25);
  --au-primary-text: #0369a1;

  /* 琥珀 - 仅用于敏感操作/金额提示 */
  --au-amber: #f59e0b;
  --au-amber-soft: rgba(245, 158, 11, 0.10);
  --au-amber-text: #b45309;

  /* 语义色 */
  --au-success: #10b981;
  --au-success-soft: rgba(16, 185, 129, 0.12);
  --au-success-text: #047857;
  --au-warning: #f59e0b;
  --au-warning-soft: rgba(245, 158, 11, 0.12);
  --au-warning-text: #b45309;
  --au-error: #ef4444;
  --au-error-soft: rgba(239, 68, 68, 0.10);
  --au-error-text: #b91c1c;
  --au-info: #0ea5e9;
  --au-info-soft: rgba(14, 165, 233, 0.10);

  /* 文字 */
  --au-text-primary: #0f172a;
  --au-text-secondary: #475569;
  --au-text-tertiary: #64748b;
  --au-text-muted: #94a3b8;
  --au-text-placeholder: #94a3b8;
  --au-text-on-dark: #f8fafc;

  /* 边框 / ring（DESIGN.md ring 风格替代 border 病） */
  --au-border: #e2e8f0;
  --au-border-strong: #cbd5e1;
  --au-border-subtle: #f1f5f9;
  --au-ring: 0 0 0 1px rgba(15, 23, 42, 0.06);
  --au-ring-hover: 0 0 0 1px rgba(14, 165, 233, 0.18), 0 4px 12px rgba(15, 23, 42, 0.05);
  --au-ring-error: 0 0 0 1px rgba(239, 68, 68, 0.30);
  --au-input-border: #cbd5e1;
  --au-input-focus: #0ea5e9;
  --au-shadow-focus: 0 0 0 3px rgba(14, 165, 233, 0.15);

  /* 圆角 - 同心圆角（外 = 内 + padding） */
  --au-radius-xs: 5px;
  --au-radius-sm: 7px;
  --au-radius-md: 10px;
  --au-radius-lg: 12px;
  --au-radius-xl: 14px;
  --au-radius-2xl: 18px;
  --au-radius-full: 999px;

  /* 阴影 - 极轻（DESIGN.md shadow scale） */
  --au-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --au-shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
  --au-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --au-shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);
  --au-shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.06);

  /* 尺寸 */
  --au-site-header-height: 68px;
  --au-form-max: 440px;
  --au-forgot-max: 460px;

  /* 字体栈（DESIGN.md 规定） */
  --au-font-base: 'Outfit', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --au-font-brand: 'Lobster', 'Ma Shan Zheng', cursive;
  --au-font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, monospace;

  /* 缓动（DESIGN.md） */
  --au-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --au-ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
  --au-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   2. 基础重置
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--au-font-base);
  background: var(--au-bg);
  color: var(--au-text-primary);
  line-height: 1.5;
  min-height: 100vh;
  font-size: 14px;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--au-primary);
  text-decoration: none;
  transition: color 0.15s var(--au-ease-fast);
}
a:hover {
  color: var(--au-primary-hover);
}

/* 纤细滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--au-border-strong);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--au-text-muted);
}

::selection {
  background: rgba(14, 165, 233, 0.18);
  color: var(--au-text-primary);
}

/* skip-link（可访问性） */
.au-skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: var(--au-radius-md);
  background: var(--au-bg-elevated);
  color: var(--au-primary);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--au-shadow-md);
  transition: top 0.2s var(--au-ease);
}
.au-skip-link:focus {
  top: 16px;
}

/* ============================================================
   3. 整体布局壳
   ============================================================ */
.au-app {
  min-height: calc(100vh - var(--au-site-header-height));
  margin-top: var(--au-site-header-height);
  background: var(--au-bg);
}

/* ---------- 登录页：品牌氛围双栏 ---------- */
.au-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: calc(100vh - var(--au-site-header-height));
}

.au-brand {
  position: relative;
  overflow: hidden;
  background: var(--au-brand-bg);
  color: var(--au-brand-text);
  padding: 56px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 星点装饰：用多层 radial-gradient 点阵，性能友好 */
.au-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1.5px 1.5px at 44% 24%, rgba(255,255,255,0.8), transparent 50%),
    radial-gradient(1px 1px at 62% 64%, rgba(255,255,255,0.45), transparent 50%),
    radial-gradient(1px 1px at 78% 32%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1.5px 1.5px at 88% 78%, rgba(255,255,255,0.55), transparent 50%),
    radial-gradient(1px 1px at 36% 88%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 70% 12%, rgba(255,255,255,0.65), transparent 50%);
  opacity: 0.7;
  pointer-events: none;
}

/* 青色光晕：两处径向光，缓慢呼吸 */
.au-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, var(--au-brand-glow-soft) 0%, transparent 42%),
    radial-gradient(circle at 14% 86%, rgba(14, 165, 233, 0.10) 0%, transparent 40%);
  pointer-events: none;
  animation: auGlowPulse 6s ease-in-out infinite;
}

@keyframes auGlowPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.au-brand > * {
  position: relative;
  z-index: 1;
}

/* 品牌顶部：logo + 名称 */
.au-brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.au-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--au-radius-md);
  display: block;
}

.au-brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--au-brand-text);
}

/* 品牌中部：流动标题 + 价值主张 */
.au-brand-center {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 420px;
}

.au-brand-title {
  font-family: var(--au-font-brand);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  color: var(--au-brand-text);
  letter-spacing: 0.01em;
  animation: auTitleReveal 0.7s var(--au-ease) both;
}

@keyframes auTitleReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.au-brand-tagline {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--au-brand-text-muted);
  margin: 0;
  max-width: 380px;
}

/* 品牌特性条 */
.au-brand-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.au-brand-feature {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--au-radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--au-brand-line);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--au-brand-text-muted);
}
.au-brand-feature svg {
  width: 13px;
  height: 13px;
  color: var(--au-primary);
  flex-shrink: 0;
}

/* 品牌底部：数据条 */
.au-brand-foot {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--au-brand-line);
}

.au-brand-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.au-brand-stat-num {
  font-family: var(--au-font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--au-brand-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.au-brand-stat-label {
  font-size: 0.74rem;
  color: var(--au-brand-text-dim);
  letter-spacing: 0.01em;
}

/* ---------- 表单区 ---------- */
.au-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--au-bg);
}

.au-form-inner {
  width: 100%;
  max-width: var(--au-form-max);
}

/* ---------- 忘记密码页：居中卡片 ---------- */
.au-forgot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.au-forgot-inner {
  width: 100%;
  max-width: var(--au-forgot-max);
}

/* ============================================================
   4. 卡片
   ============================================================ */
.au-card {
  background: var(--au-bg-elevated);
  border-radius: var(--au-radius-2xl);
  box-shadow: var(--au-ring), var(--au-shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s var(--au-ease), transform 0.25s var(--au-ease);
}
.au-card:hover {
  box-shadow: var(--au-ring-hover), var(--au-shadow-md);
  transform: translateY(-3px);
}

.au-card-pad {
  padding: 32px;
}

/* 卡片头部 */
.au-card-head {
  margin-bottom: 24px;
}

.au-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--au-text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.au-card-sub {
  font-size: 0.88rem;
  color: var(--au-text-tertiary);
  margin: 0;
  line-height: 1.5;
}

/* 忘记密码页头部（含 logo） */
.au-forgot-head {
  text-align: center;
  margin-bottom: 24px;
}

.au-forgot-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: block;
  border-radius: var(--au-radius-md);
}

.au-forgot-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--au-text-primary);
  margin: 0 0 5px;
  letter-spacing: -0.02em;
}

.au-forgot-sub {
  font-size: 0.86rem;
  color: var(--au-text-tertiary);
  margin: 0;
}

/* ============================================================
   5. 步骤指示器（忘记密码页）
   ============================================================ */
.au-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 28px;
  position: relative;
}

.au-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.au-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--au-bg-elevated);
  border: 1px solid var(--au-border);
  color: var(--au-text-muted);
  font-family: var(--au-font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--au-shadow-xs);
  transition: background 0.25s var(--au-ease), border-color 0.25s var(--au-ease), color 0.25s var(--au-ease);
}

.au-step-num svg {
  width: 15px;
  height: 15px;
}

.au-step-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--au-text-muted);
  text-align: center;
  line-height: 1.3;
  transition: color 0.25s var(--au-ease);
}

/* 连接线（背景层） */
.au-steps::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--au-border);
  border-radius: 2px;
  z-index: 0;
}

/* 当前步 */
.au-step-item.active .au-step-num {
  background: var(--au-primary);
  border-color: var(--au-primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--au-primary-soft);
}
.au-step-item.active .au-step-label {
  color: var(--au-primary-text);
  font-weight: 600;
}

/* 已完成步 */
.au-step-item.done .au-step-num {
  background: var(--au-primary);
  border-color: var(--au-primary);
  color: #fff;
}
.au-step-item.done .au-step-label {
  color: var(--au-text-secondary);
}

/* ============================================================
   6. 步骤面板（忘记密码页，0.3s opacity + translateX 过渡）
   ============================================================ */
.au-step-pane {
  display: none;
}

.au-step-pane.active {
  display: block;
  animation: auPaneIn 0.3s var(--au-ease) both;
}

@keyframes auPaneIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   7. 标签页（登录/注册）
   ============================================================ */
.au-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: var(--au-bg-subtle);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius-lg);
  margin-bottom: 24px;
  width: 100%;
}

.au-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--au-radius-md);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--au-text-secondary);
  transition: background 0.18s var(--au-ease), color 0.18s var(--au-ease), box-shadow 0.18s var(--au-ease);
  white-space: nowrap;
}
.au-tab:hover {
  color: var(--au-text-primary);
}
.au-tab.active {
  background: var(--au-bg-elevated);
  color: var(--au-primary);
  font-weight: 600;
  box-shadow: var(--au-shadow-xs);
}

/* 表单切换 */
.au-form {
  display: none;
  flex-direction: column;
  gap: 16px;
}
.au-form.active {
  display: flex;
  animation: auPaneIn 0.3s var(--au-ease) both;
}

/* ============================================================
   8. 表单字段与输入框
   ============================================================ */
.au-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.au-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--au-text-secondary);
}
.au-field-label a {
  font-size: 0.78rem;
  font-weight: 500;
}

.au-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--au-radius-md);
  border: 1px solid var(--au-input-border);
  background: var(--au-bg-elevated);
  color: var(--au-text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.18s var(--au-ease-fast), box-shadow 0.18s var(--au-ease-fast);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.au-input::placeholder {
  color: var(--au-text-placeholder);
}
.au-input:hover {
  border-color: var(--au-border-strong);
}
.au-input:focus {
  border-color: var(--au-input-focus);
  box-shadow: var(--au-shadow-focus), inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.au-input:disabled {
  background: var(--au-bg-subtle);
  color: var(--au-text-muted);
  cursor: not-allowed;
}
.au-input.au-input-error {
  border-color: var(--au-error);
}
.au-input.au-input-error:focus {
  box-shadow: 0 0 0 3px var(--au-error-soft), inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* 输入框 + 按钮组合 */
.au-input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.au-input-group .au-input {
  flex: 1;
  min-width: 0;
}
.au-input-group .au-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.au-hint {
  font-size: 0.76rem;
  color: var(--au-text-muted);
  line-height: 1.4;
}
.au-hint-debug {
  font-size: 0.76rem;
  color: var(--au-amber-text);
  line-height: 1.4;
  font-family: var(--au-font-mono);
}
.au-hint-debug code {
  font-family: inherit;
  background: var(--au-amber-soft);
  padding: 1px 6px;
  border-radius: var(--au-radius-xs);
  color: var(--au-amber-text);
  font-weight: 600;
}

.au-optional {
  font-weight: 400;
  color: var(--au-text-muted);
  font-size: 0.78rem;
}

/* ============================================================
   9. 按钮（无渐变、无上抬；active 用 scale(0.96)）
   ============================================================ */
.au-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--au-radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.18s var(--au-ease), border-color 0.18s var(--au-ease), box-shadow 0.18s var(--au-ease), transform 0.12s var(--au-ease-fast);
  white-space: nowrap;
  letter-spacing: -0.005em;
  position: relative;
}
.au-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.au-btn:active {
  transform: scale(0.96);
}
.au-btn:focus-visible {
  outline: none;
  box-shadow: var(--au-shadow-focus);
}
.au-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.au-btn-block {
  width: 100%;
}

.au-btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
  border-radius: var(--au-radius-sm);
}
.au-btn-sm svg {
  width: 15px;
  height: 15px;
}

/* 主色按钮 - 纯青色实底，hover 加深 + 阴影，active scale */
.au-btn-primary {
  background: var(--au-primary);
  color: #fff;
  border-color: var(--au-primary);
  box-shadow: 0 1px 2px rgba(14, 165, 233, 0.20);
}
.au-btn-primary:hover {
  background: var(--au-primary-hover);
  border-color: var(--au-primary-hover);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.28);
}

/* 次级按钮 */
.au-btn-secondary {
  background: var(--au-bg-elevated);
  color: var(--au-text-secondary);
  border-color: var(--au-border);
  box-shadow: var(--au-shadow-xs);
}
.au-btn-secondary:hover {
  border-color: var(--au-primary-border);
  color: var(--au-primary);
  box-shadow: var(--au-shadow-sm);
}
.au-btn-secondary:disabled {
  color: var(--au-text-muted);
}

/* 幽灵按钮（取消等） */
.au-btn-ghost {
  background: transparent;
  color: var(--au-text-secondary);
  border-color: transparent;
}
.au-btn-ghost:hover {
  background: var(--au-bg-hover);
  color: var(--au-text-primary);
}

/* 按钮加载态 */
.au-btn.loading {
  pointer-events: none;
  color: transparent !important;
}
.au-btn.loading::after {
  content: '';
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auSpin 0.6s linear infinite;
}
.au-btn-secondary.loading::after {
  border-color: rgba(15, 23, 42, 0.2);
  border-top-color: var(--au-primary);
}

@keyframes auSpin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   10. 表单底部（条款等）
   ============================================================ */
.au-form-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--au-border-subtle);
  font-size: 0.78rem;
  color: var(--au-text-muted);
  text-align: center;
  line-height: 1.6;
}
.au-form-footer a {
  font-weight: 500;
}

/* ============================================================
   11. 信息提示框 / 重发行 / 返回链接
   ============================================================ */
.au-info {
  padding: 12px 14px;
  border-radius: var(--au-radius-md);
  background: var(--au-primary-soft);
  color: var(--au-primary-text);
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 16px;
}
.au-info strong {
  font-weight: 600;
}
.au-info code {
  font-family: var(--au-font-mono);
  background: rgba(14, 165, 233, 0.12);
  padding: 1px 6px;
  border-radius: var(--au-radius-xs);
  font-weight: 600;
}
.au-info-debug {
  background: var(--au-amber-soft);
  color: var(--au-amber-text);
}
.au-info-debug code {
  background: rgba(245, 158, 11, 0.16);
}

.au-resend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--au-text-secondary);
  margin: 10px 0 16px;
}
.au-resend-text {
  font-family: var(--au-font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--au-text-tertiary);
}
.au-resend-btn {
  font-size: 0.82rem;
  color: var(--au-primary);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s var(--au-ease-fast);
}
.au-resend-btn:hover:not(:disabled) {
  color: var(--au-primary-hover);
  text-decoration: underline;
}
.au-resend-btn:disabled {
  color: var(--au-text-muted);
  cursor: not-allowed;
}

.au-back {
  text-align: center;
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--au-text-secondary);
}
.au-back a {
  font-weight: 600;
}
.au-back a:hover {
  text-decoration: underline;
}

/* ============================================================
   12. 成功状态（大对勾 + 倒计时）
   ============================================================ */
.au-success {
  text-align: center;
  padding: 16px 0 8px;
}

.au-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--au-success-soft);
  color: var(--au-success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  animation: auSuccessPop 0.5s var(--au-ease-spring) both;
}
.au-success-icon svg {
  width: 32px;
  height: 32px;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: auCheckDraw 0.5s var(--au-ease) 0.15s forwards;
}

@keyframes auSuccessPop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes auCheckDraw {
  to { stroke-dashoffset: 0; }
}

.au-success h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--au-text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.au-success p {
  font-size: 0.88rem;
  color: var(--au-text-secondary);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   13. 模态框（二级密码）
   ============================================================ */
.au-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--au-ease-fast), visibility 0.22s var(--au-ease-fast);
}
.au-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.au-modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--au-bg-elevated);
  border-radius: var(--au-radius-2xl);
  box-shadow: var(--au-shadow-xl);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s var(--au-ease-spring);
}
.au-modal-overlay.open .au-modal {
  transform: translateY(0) scale(1);
}

.au-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--au-border-subtle);
}
.au-modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--au-text-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.au-modal-header h3 svg {
  width: 18px;
  height: 18px;
  color: var(--au-amber);
}

.au-modal-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--au-radius-sm);
  color: var(--au-text-tertiary);
  font-size: 1.4rem;
  line-height: 1;
  transition: background 0.15s var(--au-ease-fast), color 0.15s var(--au-ease-fast);
}
.au-modal-close:hover {
  background: var(--au-bg-hover);
  color: var(--au-text-primary);
}

.au-modal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.au-modal-message {
  margin: 0;
  font-size: 0.86rem;
  color: var(--au-text-secondary);
  line-height: 1.5;
}

.au-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 2px;
}

/* ============================================================
   14. 入场动画
   ============================================================ */
.au-fade-in {
  animation: auFadeIn 0.5s var(--au-ease) both;
}
.au-fade-in:nth-child(1) { animation-delay: 0ms; }
.au-fade-in:nth-child(2) { animation-delay: 60ms; }
.au-fade-in:nth-child(3) { animation-delay: 120ms; }
.au-fade-in:nth-child(4) { animation-delay: 180ms; }

@keyframes auFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 卡片入场（忘记密码页） */
.au-card-enter {
  animation: auCardIn 0.45s var(--au-ease) both;
}
@keyframes auCardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   15. 响应式（1024 / 768 / 480）
   ============================================================ */
@media (max-width: 1024px) {
  .au-brand {
    padding: 44px 40px 40px;
  }
  .au-brand-title {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
  }
}

@media (max-width: 768px) {
  /* 登录页：双栏改为单列，品牌区置顶为小品牌条 */
  .au-split {
    grid-template-columns: 1fr;
  }

  .au-brand {
    padding: 28px 24px 26px;
    min-height: auto;
    gap: 18px;
  }
  .au-brand::before { opacity: 0.5; }
  .au-brand-center {
    gap: 12px;
    max-width: none;
  }
  .au-brand-title {
    font-size: 1.9rem;
  }
  .au-brand-tagline {
    font-size: 0.92rem;
  }
  .au-brand-features {
    gap: 8px;
  }
  .au-brand-feature {
    font-size: 0.74rem;
    padding: 5px 10px;
  }
  .au-brand-foot {
    gap: 20px;
    padding-top: 16px;
  }
  .au-brand-stat-num {
    font-size: 1.2rem;
  }

  .au-form-side {
    padding: 32px 20px 40px;
  }

  .au-card-pad {
    padding: 24px;
  }

  .au-forgot {
    padding: 32px 18px;
  }

  .au-steps {
    margin-bottom: 22px;
  }
  .au-step-num {
    width: 28px;
    height: 28px;
    font-size: 0.76rem;
  }
  .au-step-label {
    font-size: 0.68rem;
  }
}

@media (max-width: 480px) {
  .au-brand {
    padding: 22px 18px 20px;
  }
  .au-brand-features {
    display: none;
  }
  .au-brand-foot {
    gap: 16px;
  }
  .au-brand-stat-label {
    font-size: 0.68rem;
  }

  .au-form-side {
    padding: 24px 16px 36px;
  }
  .au-card-pad {
    padding: 20px;
  }

  .au-tabs {
    padding: 3px;
  }
  .au-tab {
    font-size: 0.82rem;
    height: 34px;
  }

  .au-input {
    height: 42px;
    font-size: 0.86rem;
  }
  .au-btn {
    height: 42px;
    font-size: 0.88rem;
  }

  /* 步骤指示器：小屏只显示数字圆点，隐藏文字标签 */
  .au-step-label {
    display: none;
  }
  .au-step-num {
    width: 26px;
    height: 26px;
  }
  .au-steps::before {
    top: 13px;
  }

  .au-modal {
    max-width: none;
  }
  .au-modal-header,
  .au-modal-body {
    padding: 16px;
  }
}

/* ============================================================
   16. 可访问性
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--au-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .au-brand::after {
    animation: none;
  }
  .au-step-pane.active,
  .au-form.active,
  .au-card-enter,
  .au-fade-in,
  .au-brand-title {
    animation: none;
  }
}

@media (prefers-contrast: high) {
  .au-card,
  .au-modal,
  .au-input {
    border: 1px solid var(--au-border-strong);
  }
}

/* 高对比度下卡片 hover 仍可识别 */
@media (prefers-contrast: high) and (hover: hover) {
  .au-card:hover {
    border-color: var(--au-primary);
  }
}
