/* ════════════════════════════════════════════════════
   晨飞博客 会员区 登录/注册/找回密码 共享样式（2026-06）
   与博客主站设计语言一致：深蓝 #0C123B + 橙色 #ff9800
   ════════════════════════════════════════════════════ */

:root {
  --cf-navy: #0C123B;
  --cf-navy-2: #161e52;
  --cf-orange: #ff9800;
  --cf-orange-dark: #f08c00;
  --cf-accent: #1e73be;
  --cf-text: #353a40;
  --cf-heading: #1c2228;
  --cf-muted: #8a939e;
  --cf-bg: #f5f7fa;
  --cf-border: #e7ebf0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--cf-bg);
  color: var(--cf-text);
  -webkit-font-smoothing: antialiased;
}

/* ── 整体布局：左品牌面板 + 右表单区 ── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
}

/* ── 左侧品牌面板 ── */
.auth-brand {
  flex: 1.1;
  background-color: var(--cf-navy);
  background-image:
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(79,110,247,.22), transparent),
    radial-gradient(ellipse 50% 35% at 10% 95%, rgba(255,152,0,.12), transparent);
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--cf-orange), #4f6ef7) 1;
  color: #fff;
  padding: 56px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-logo a {
  color: #fff;
  text-decoration: none;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand-logo .logo-dot { color: var(--cf-orange); }

.brand-main { max-width: 460px; }
.brand-main h2 {
  font-size: 30px;
  line-height: 1.45;
  font-weight: 700;
  margin-bottom: 14px;
}
.brand-main .lead {
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(255,255,255,.75);
  margin-bottom: 30px;
}

.brand-points { list-style: none; }
.brand-points li {
  position: relative;
  padding: 7px 0 7px 32px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
}
.brand-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255,152,0,.18);
  color: var(--cf-orange);
  font-weight: 700;
  font-size: 13px;
}

.brand-foot {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.8;
}
.brand-foot a { color: rgba(255,255,255,.8); }

/* ── 右侧表单区 ── */
.auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card { width: 100%; max-width: 420px; }

.auth-card .card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--cf-heading);
  margin-bottom: 6px;
}
.auth-card .card-sub {
  font-size: 14px;
  color: var(--cf-muted);
  margin-bottom: 26px;
  line-height: 1.7;
}

/* 登录/注册 标签切换 */
.auth-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--cf-border);
  margin-bottom: 26px;
}
.auth-tab {
  appearance: none;
  background: none;
  border: 0;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--cf-muted);
  cursor: pointer;
  position: relative;
  margin-bottom: -2px;
  font-family: inherit;
}
.auth-tab.active {
  color: var(--cf-heading);
  border-bottom: 2px solid var(--cf-orange);
}
.auth-tab:hover { color: var(--cf-heading); }

.auth-pane { display: none; }
.auth-pane.active { display: block; }

/* 表单元素 */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cf-heading);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--cf-text);
  background: #fff;
  border: 1px solid #d4dae2;
  border-radius: 8px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  border-color: var(--cf-accent);
  box-shadow: 0 0 0 3px rgba(30,115,190,.12);
}
.field .hint {
  font-size: 12.5px;
  color: var(--cf-muted);
  margin-top: 5px;
}

.btn-cta {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-top: 22px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--cf-orange);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s, transform .12s;
  text-align: center;
  text-decoration: none;
}
.btn-cta:hover { background: var(--cf-orange-dark); }
.btn-cta:active { transform: translateY(1px); }

.btn-ghost {
  display: inline-block;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cf-accent);
  border: 1px solid var(--cf-accent);
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--cf-accent); color: #fff; }

/* 辅助链接行 */
.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 13.5px;
}
.auth-links a { color: var(--cf-accent); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

.auth-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--cf-border);
  font-size: 13px;
  color: var(--cf-muted);
  line-height: 1.8;
}
.auth-note a { color: var(--cf-accent); text-decoration: none; }
.auth-note a:hover { text-decoration: underline; }

/* 提示框（PHP 输出的 alert 类名保持兼容） */
.alert {
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.alert-warning {
  background: #fff8e1;
  border: 1px solid #ffd971;
  color: #7a5800;
}
.alert-success {
  background: #e8f5e9;
  border: 1px solid #9ccc9f;
  color: #1b5e20;
}
.alert-danger {
  background: #fdecea;
  border: 1px solid #f5b7b1;
  color: #8a1f11;
}

/* ── 注册结果页 ── */
.result-wrap {
  max-width: 760px;
  margin: 48px auto;
  padding: 0 20px;
}
.result-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(16,36,60,.08);
  overflow: hidden;
}
.result-head {
  background-color: var(--cf-navy);
  background-image: radial-gradient(ellipse 60% 50% at 90% 0%, rgba(79,110,247,.25), transparent);
  color: #fff;
  padding: 30px 36px;
}
.result-head h2 { font-size: 24px; font-weight: 700; }
.result-body { padding: 32px 36px; font-size: 15.5px; line-height: 1.9; }
.result-body p { margin-bottom: 1em; }

.benefits-box {
  margin: 22px 0;
  padding: 22px 26px;
  background: #f7f9fb;
  border: 1px solid var(--cf-border);
  border-left: 4px solid var(--cf-orange);
  border-radius: 0 10px 10px 0;
}
.benefits-box h4 {
  font-size: 16.5px;
  color: var(--cf-heading);
  margin-bottom: 12px;
}
.benefits-box ul { list-style: none; }
.benefits-box li {
  position: relative;
  padding: 5px 0 5px 28px;
  line-height: 1.75;
  font-size: 14.5px;
}
.benefits-box li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--cf-orange);
  font-weight: 700;
}
.benefits-box .price-line {
  margin-top: 14px;
  font-weight: 700;
  color: var(--cf-heading);
}

.qr-box { text-align: center; margin: 26px 0 8px; }
.qr-box p { font-size: 15px; font-weight: 600; color: var(--cf-heading); }
.qr-box img {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin-top: 12px;
  border: 1px solid var(--cf-border);
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}

/* ── Touch ID / 通行密钥登录 ── */
.btn-touchid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 0;
  background: var(--cf-heading);
}
.btn-touchid:hover { background: #1d2733; }
.btn-touchid:disabled { opacity: .6; cursor: default; }
.btn-touchid svg { flex: none; }

.touchid-msg {
  margin-top: 10px;
  font-size: 13.5px;
  color: #c0392b;
  text-align: center;
}

.google-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  min-height: 44px;
}
#touchid-block:not([hidden]) ~ .google-btn-wrap { margin-top: 12px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 18px;
  color: var(--cf-muted);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--cf-border);
}

/* ── 响应式 ── */
@media (max-width: 900px) {
  .auth-wrap { flex-direction: column; }
  .auth-brand {
    flex: none;
    padding: 26px 24px;
    gap: 14px;
  }
  .brand-main h2 { font-size: 21px; margin-bottom: 8px; }
  .brand-main .lead { font-size: 14px; margin-bottom: 0; }
  .brand-points, .brand-foot { display: none; }   /* 手机端聚焦表单，品牌区只留头部 */
  .auth-panel { padding: 30px 20px 48px; align-items: flex-start; }
  .result-head, .result-body { padding-left: 22px; padding-right: 22px; }
}
