/* ============================================================
   auth.css — 登录 / 注册 / 引导页
   ============================================================ */

.auth-screen {
  flex-direction: column; align-items: center;
  background: var(--bg);
  overflow-y: auto;
}

/* 顶部品牌条 */
.auth-topbar {
  width: 100%; max-width: 1200px;
  display: flex; align-items: center; gap: 10px;
  padding: 20px 32px;
}
.auth-topbar .brand-logo { width: 30px; height: 30px; border-radius: 6px; }
.auth-topbar .brand-name { font-size: 17px; }

/* 居中卡片 */
.auth-card {
  width: 100%; max-width: 340px;
  margin: 6vh auto 40px;
  display: flex; flex-direction: column; align-items: stretch;
  padding: 0 16px;
}
.auth-card h1 {
  font-size: 20px; font-weight: 600; text-align: center;
  margin-bottom: 6px; letter-spacing: -0.2px;
}
.auth-card .auth-slogan {
  font-size: 14px; color: var(--text-secondary); text-align: center;
  margin-bottom: 28px; line-height: 1.5;
}

/* 首屏微标（宣传文案体系 §三 配套纪律）：跟在 slogan 后，与主 slogan 同屏。 */
.auth-card .auth-microlabel {
  font-size: 12px; color: var(--text-tertiary); text-align: center;
  margin: -20px 0 28px;
}

/* 第三方登录按钮与「或使用邮箱」分隔线的样式已随按钮一并移除
   （2026-08-20 演示残留清算）。 */

/* 表单 */
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form label { font-size: 12px; color: var(--text-secondary); margin-bottom: -4px; }
.auth-form .input { height: 36px; }
.auth-form .btn { height: 36px; margin-top: 4px; }

/* 验证码区域 */
.code-box {
  display: none; flex-direction: column; gap: 10px;
}
.code-box.show { display: flex; }
.code-input {
  height: 44px !important; text-align: center;
  font-size: 20px !important; letter-spacing: 8px; font-weight: 600;
}
.code-tip {
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: 6px; padding: 8px 12px;
  font-size: 13px; color: var(--accent);
  text-align: center; user-select: all;
}
html[data-theme="dark"] .code-tip { color: #7db4ec; }

.auth-error {
  display: none; font-size: 13px; color: var(--danger);
  text-align: center; padding: 4px 0;
}
.auth-error.show { display: block; }

/* 底部切换链接 */
.auth-switch {
  margin-top: 26px; text-align: center;
  font-size: 13px; color: var(--text-secondary);
}
.auth-switch a { color: var(--accent); cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }

.auth-footer {
  margin-top: auto; padding: 20px;
  font-size: 12px; color: var(--text-tertiary); text-align: center;
}

/* ---------- 引导页 onboarding ---------- */
.onboarding-screen {
  flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg); overflow-y: auto; padding: 40px 16px;
}
.onboarding-inner { width: 100%; max-width: 640px; display: flex; flex-direction: column; align-items: center; }
.onboarding-inner h1 { font-size: 26px; font-weight: 700; margin: 18px 0 8px; text-align: center; letter-spacing: -0.3px; }
.onboarding-inner .ob-sub { font-size: 15px; color: var(--text-secondary); margin-bottom: 32px; text-align: center; }

.plan-cards { display: flex; gap: 16px; width: 100%; margin-bottom: 32px; }
.plan-card {
  flex: 1; padding: 20px 16px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--bg-input); cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.plan-card:hover { border-color: var(--text-tertiary); transform: translateY(-2px); }
.plan-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.plan-card .plan-emoji { font-size: 28px; }
.plan-card .plan-name { font-size: 15px; font-weight: 600; }
.plan-card .plan-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.ob-step { display: none; width: 100%; flex-direction: column; align-items: center; }
.ob-step.active { display: flex; }
.ob-workspace-form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.ob-workspace-form label { font-size: 13px; color: var(--text-secondary); }
.ob-workspace-form .input { height: 40px; font-size: 15px; }
.ob-back {
  margin-top: 14px; font-size: 13px; color: var(--text-tertiary); cursor: pointer;
  background: none; border: none;
}
.ob-back:hover { color: var(--text); }

@media (max-width: 640px) {
  .plan-cards { flex-direction: column; }
}
