/* ==========================================================================
   认证页样式（登录 / 注册 / 找回密码）
   ========================================================================== */

.auth-body { min-height: 100vh; }

.auth-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(36px, 6vw, 72px) var(--gutter) 80px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--page);
  border-radius: var(--radius-panel);
  padding: clamp(26px, 4vw, 38px);
  box-shadow: 0 0 0 .5px var(--line-strong), 0 20px 60px -24px #0000001f;
}

.auth-title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  margin-bottom: 10px;
}

.auth-lead {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ---------- 步骤条 ---------- */
.steps {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-2xs);
  color: var(--text-subtle);
  text-align: center;
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  z-index: 0;
}

.step:first-child::before { left: 50%; }
.step:last-child::before { right: 50%; }

.step-dot {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--fs-2xs);
  font-weight: 600;
  background: var(--surface);
  color: var(--text-subtle);
  box-shadow: inset 0 0 0 1px var(--line);
  position: relative;
  z-index: 1;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.step.is-active { color: var(--ink); font-weight: 500; }

.step.is-active .step-dot {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px var(--accent-tint);
}

.step.is-done .step-dot {
  background: var(--accent-soft);
  color: var(--accent-text);
  box-shadow: inset 0 0 0 1px var(--accent-tint);
}

/* ---------- 提示 ---------- */
.auth-note {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  padding: 13px 15px;
  border-radius: var(--radius-input);
  background: var(--surface);
  margin-bottom: 20px;
}

.auth-note strong { color: var(--ink); }

/* ---------- 验证码数字格（视觉反馈） ---------- */
.code-digits {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 6px;
}

.code-digits span {
  width: 40px;
  height: 48px;
  border-radius: var(--radius-input);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink);
  transition: box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}

.code-digits span.is-filled {
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent-text);
}

/* ---------- 行内布局 ---------- */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
}

.auth-link {
  font-size: var(--fs-sm);
  color: var(--accent-text);
  transition: color var(--dur-fast) var(--ease-out);
}

.auth-link:hover { color: var(--accent); }

/* ---------- 底部 ---------- */
.auth-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-align: center;
}

.auth-foot a {
  color: var(--accent-text);
  font-weight: 500;
  border-bottom: 1px solid var(--accent-tint);
}

.auth-safety {
  margin-top: 16px;
  font-size: var(--fs-2xs);
  color: var(--text-subtle);
  line-height: 1.6;
  text-align: center;
}

/* ---------- 完成态 ---------- */
.done-block { text-align: center; padding: 12px 0 4px; }

.done-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
}

.done-block h2 {
  font-size: var(--fs-lg);
  margin-bottom: 8px;
}

.done-block p { font-size: var(--fs-sm); line-height: 1.6; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .auth-card { padding: 24px 20px; }
  .step { font-size: 10px; }
  .step-dot { width: 24px; height: 24px; }
  .code-digits span { width: 34px; height: 42px; }
  .code-btn { min-width: 100px; font-size: var(--fs-2xs); }
}

/* 认证页底部有主按钮，悬浮客服上移避免遮挡 */
.auth-body .tg-fab { bottom: 84px; }

@media (max-width: 640px) {
  .auth-body .tg-fab { bottom: 76px; }
}
