/* == css/app/page-auth.css · 由 css/style.css L543-705 原样拆分，规则与顺序未动 == */
/* ============================================================
   登录 / 注册（双端共用 · PC 表单贴左，右侧品牌区）
   ============================================================ */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(400px, 480px) 1fr;
  background: #fff;
}
.auth-side {
  display: flex;
  flex-direction: column;
  padding: 34px 56px 26px 64px;
}
.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 340px;
  padding: 40px 0;
}
.auth-main h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; }
.auth-main .sub { margin-top: 8px; font-size: 14px; color: var(--gray-2); }
.auth-error {
  display: none;
  background: var(--red-50);
  color: var(--red);
  font-size: 13px;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 18px;
}
.auth-main form { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.auth-main .form-group { gap: 6px; }
.auth-main .form-label { font-size: 13px; color: var(--gray-1); }
.auth-main input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 14px;
  font-family: var(--font);
  color: var(--black);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-main input::placeholder { color: var(--gray-3); }
.auth-main input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.auth-main .btn { width: 100%; justify-content: center; padding: 12px 0; font-size: 15px; margin-top: 4px; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { width: auto; flex: none; padding: 11px 16px; font-size: 13px; margin-top: 0; white-space: nowrap; }
.form-hint { font-size: 12px; color: var(--gray-3); margin-top: 6px; line-height: 1.6; }
.auth-foot { margin-top: 22px; font-size: 13px; color: var(--gray-2); }
.auth-foot a { color: var(--blue); font-weight: 500; }
.auth-foot a:hover { text-decoration: underline; }
.auth-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--gray-3);
}
.auth-meta a { color: var(--gray-3); }
.auth-meta a:hover { color: var(--gray-1); }

.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 64px 72px 48px;
  background: linear-gradient(160deg, #1e50c8 0%, #2563eb 52%, #4f83f1 100%);
  color: #fff;
}
.auth-brand::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.auth-brand::after {
  content: "";
  position: absolute;
  right: 120px;
  bottom: -180px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.auth-badge {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
}
.auth-brand h2 {
  position: relative;
  margin-top: 24px;
  font-size: 32px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.5px;
  max-width: 430px;
}
.auth-feats {
  position: relative;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.auth-feat { display: flex; gap: 14px; align-items: flex-start; }
.auth-feat .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.auth-feat .ic svg { display: block; }
.auth-feat b { display: block; font-size: 14px; font-weight: 600; }
.auth-feat p { margin-top: 3px; font-size: 12.5px; color: rgba(255, 255, 255, 0.72); }
.auth-stats {
  position: relative;
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}
.auth-stats b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
@media (max-width: 1024px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-side { padding: 22px 24px 18px; }
  .auth-main { max-width: none; }
}

/* ---- 注册页协议勾选行 ---- */
.agree-row { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; font-size: 13px; line-height: 1.6; }
.agree-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--gray-2); white-space: nowrap; }
.agree-check input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--blue); cursor: pointer; flex: none; }
.agree-links a { color: var(--blue); white-space: nowrap; }
.agree-links a:hover { text-decoration: underline; }

/* ---- 协议展示页（/agreement.php） ---- */
.doc-page { max-width: 860px; margin: 0 auto; padding: 32px 20px 56px; }
.doc-head h1 { font-size: 26px; font-weight: 700; color: var(--gray-1, #111); margin: 0 0 6px; }
.doc-updated { font-size: 13px; color: var(--gray-3, #999); margin: 0; }
.doc-tabs { display: flex; gap: 8px; margin: 20px 0 16px; border-bottom: 1px solid var(--line, #e5e7eb); padding-bottom: 12px; flex-wrap: wrap; }
.doc-tab { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 13px; color: var(--gray-2, #555); background: var(--bg-soft, #f3f4f6); text-decoration: none; transition: all 0.15s; }
.doc-tab:hover { color: var(--blue); }
.doc-tab.active { background: var(--blue); color: #fff; }
.doc-body { font-size: 14px; line-height: 1.9; color: var(--gray-1, #333); background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 28px 28px 32px; }
