/* GPAway 合规、字体规范、登录卡片垂直居中与留白平衡、协议弹窗排版样式 */

/* 全局英文统一采用 Times New Roman（除 Logo 图片与黑体大标题外） */
html, body, button, input, textarea, select, [lang="en"], .auth-provider-label, .pv-card, .subpage-badge, .subpage-meta-item {
  font-family: "GPAway Times New Roman", "Times New Roman", "GPAway Song", SimSun, STSong, serif !important;
}

/* 登录舞台垂直居中（解决登录卡片偏上问题，保持所有登录界面与主站一致） */
.auth-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-stage {
  margin: auto !important;
  padding-block: clamp(20px, 4dvh, 52px) !important;
  align-items: center !important;
}

/* 登录卡片上下留白对称平衡 */
.auth-card {
  padding-top: 32px !important;
  padding-bottom: 30px !important;
}
.auth-card-head {
  margin-bottom: 20px;
}
.auth-footnote-reveal {
  margin-top: 16px;
}
.auth-footnote {
  margin-bottom: 0 !important;
}

/* 启动核验遮罩 */
.auth-boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f6f8;
}
.auth-boot-overlay[hidden] { display: none !important; }
.auth-boot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 32px;
}
.auth-boot-logo { height: 34px; width: auto; display: block; }
.auth-boot-spinner {
  width: 24px;
  height: 24px;
  border: 2.2px solid rgba(46, 48, 54, 0.16);
  border-top-color: #2E3036;
  border-radius: 50%;
  animation: gpaway-boot-spin 0.72s linear infinite;
}
@keyframes gpaway-boot-spin { to { transform: rotate(360deg); } }
.auth-boot-label { margin: 0; font-size: 0.92rem; color: rgba(46, 48, 54, 0.68); }

/* 首页与账号页面底部极低调独立运营声明与隐私门户入口 */
.auth-bottom-disclaimer {
  width: 100%;
  text-align: center;
  padding: 12px 20px 20px;
  margin-top: auto;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(46, 48, 54, 0.42);
  box-sizing: border-box;
  pointer-events: auto;
}
.auth-bottom-disclaimer a {
  color: rgba(46, 48, 54, 0.64);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.18s ease;
}
.auth-bottom-disclaimer a:hover {
  color: #1c1e24;
}

/* ==================== 15 秒注册协议弹窗精细排版 ==================== */
#agreement-dialog {
  max-width: min(740px, calc(100vw - 28px)) !important;
  width: 100% !important;
}
#agreement-dialog .agreement-body {
  padding: 20px 28px 28px !important;
  max-height: min(56vh, 520px);
  overflow-y: auto;
  line-height: 1.82;
  color: #2E3036;
  font-size: 0.93rem;
}
#agreement-dialog .agreement-meta {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(46, 48, 54, 0.045);
  font-size: 0.85rem;
  color: rgba(46, 48, 54, 0.78);
}
#agreement-dialog .agreement-meta a {
  color: #1c1e24;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#agreement-dialog .agreement-doc-heading {
  margin: 18px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(46, 48, 54, 0.1);
  font-size: 1.12rem;
  font-weight: 700;
  color: #1c1e24;
}
#agreement-dialog .agreement-full-doc .terms-callout,
#agreement-dialog .agreement-full-doc .terms-highlight-box {
  margin: 12px 0 18px;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  background: rgba(46, 48, 54, 0.045);
  font-size: 0.88rem;
  line-height: 1.76;
  color: #2E3036;
}
#agreement-dialog .agreement-full-doc .terms-section {
  margin-bottom: 20px;
}
#agreement-dialog .agreement-full-doc .terms-section h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.4;
  color: #1c1e24;
}
#agreement-dialog .agreement-full-doc .terms-section p {
  margin: 0 0 9px;
  font-size: 0.9rem;
  line-height: 1.78;
}
#agreement-dialog .agreement-full-doc .terms-section ul {
  margin: 8px 0 12px;
  padding-inline-start: 1.35em;
}
#agreement-dialog .agreement-full-doc .terms-section li {
  margin-bottom: 6px;
  font-size: 0.89rem;
  line-height: 1.74;
}
#agreement-dialog .agreement-full-doc a {
  color: #1c1e24;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#agreement-dialog .agreement-full-doc code {
  font-family: "GPAway Times New Roman", "Times New Roman", serif !important;
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(46, 48, 54, 0.06);
}
#agreement-dialog .agreement-divider {
  border: none;
  border-top: 1px solid rgba(46, 48, 54, 0.14);
  margin: 26px 0;
}
.agreement-modal-consent-row {
  padding: 12px 26px 6px;
  border-top: 1px solid rgba(46, 48, 54, 0.08);
}
.agreement-modal-consent-row[hidden] { display: none !important; }
.agreement-modal-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink, #2E3036);
  cursor: pointer;
}
.agreement-modal-check-label input { margin-top: 3px; width: 16px; height: 16px; }
