/* ==========================================================================
   认证页（注册 / 登录）样式 — 版式与配色对齐「中国统计出版社 · peixun 注册页」
   独立于 style.css，避免与主站 1020 行样式互相干扰。
   ========================================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.auth-body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  color: #333;
  background:
    radial-gradient(120% 90% at 100% 0%,  #e6f6de 0%, rgba(230,246,222,0) 62%),
    radial-gradient(120% 90% at 0% 100%,  #dcf1e6 0%, rgba(220,241,230,0) 58%),
    linear-gradient(135deg, #f8fdf5 0%, #eaf8ee 45%, #d8f0e3 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.auth-wrap { width: 100%; max-width: 400px; }

/*----------------------------- 标题 -----------------------------*/
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head .auth-title { font-size: 22px; font-weight: 600; color: #26332c; letter-spacing: .5px; }
.auth-head .auth-sub { font-size: 13px; color: #7e9187; margin-top: 7px; }

/*----------------------------- 输入框 -----------------------------*/
.field { position: relative; margin-bottom: 18px; }

.field > input,
.field > .field-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px 0 46px;
  font-size: 15px;
  line-height: 48px;
  color: #333;
  background: #fff;
  border: 1px solid #e2e9e4;
  border-radius: 6px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field > input::placeholder { color: #a8b4ac; }
.field > input:focus { border-color: #9dc5ff; box-shadow: 0 0 0 3px rgba(95, 153, 255, .12); }

/* 左侧图标 */
.field .ico {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: #9aa8a0; pointer-events: none;
}
.field .ico svg { display: block; width: 20px; height: 20px; stroke: currentColor; fill: none;
                  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 右侧内嵌明文/密文切换 */
.field.has-eye > input { padding-right: 46px; }
.field .eye {
  position: absolute; right: 2px; top: 2px; bottom: 2px; width: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #9aa8a0; cursor: pointer; border-radius: 0 5px 5px 0;
}
.field .eye:hover { color: #5f99ff; }
.field .eye svg { width: 20px; height: 20px; stroke: currentColor; fill: none;
                  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 右侧内嵌图形验证码 */
.field.has-captcha > input { padding-right: 132px; }
.field .captcha {
  position: absolute; right: 1px; top: 1px; bottom: 1px; width: 126px;
  border-left: 1px solid #e2e9e4; border-radius: 0 5px 5px 0;
  overflow: hidden; cursor: pointer; background: #fff;
}
.field .captcha img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 右侧内嵌「获取验证码」按钮 */
.field.has-sms > input { padding-right: 132px; }
.field .sms-btn {
  position: absolute; right: 1px; top: 1px; bottom: 1px; width: 126px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; background: #5f99ff;
  border: 0; border-radius: 0 5px 5px 0; cursor: pointer;
  transition: background .18s ease;
}
.field .sms-btn:hover { background: #4a8bf5; }
.field .sms-btn:disabled { background: #b9cfea; cursor: default; }

/*----------------------------- 协议行 -----------------------------*/
.agree-row {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 2px; margin: 4px 0 20px; font-size: 14px; color: #3c4a43;
}
.agree-row input[type="checkbox"] {
  width: 15px; height: 15px; margin: 0 7px 0 0; cursor: pointer;
  accent-color: #5f99ff; vertical-align: -2px;
}
.agree-row label { cursor: pointer; user-select: none; }
.agree-row a { color: #18bfd7; text-decoration: none; }
.agree-row a:hover { text-decoration: underline; }

/*----------------------------- 主按钮 -----------------------------*/
.btn-submit {
  display: block; width: 100%; height: 48px;
  font-size: 17px; letter-spacing: 2px; color: #fff;
  background: #5f99ff; border: 0; border-radius: 6px; cursor: pointer;
  transition: background .18s ease, opacity .18s ease;
}
.btn-submit:hover { background: #4a8bf5; }
.btn-submit:disabled { background: #b9cfea; cursor: default; }

/*----------------------------- 底部链接行 -----------------------------*/
.auth-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 22px; font-size: 15px; color: #3c4a43;
}
.auth-foot a { text-decoration: none; }
.auth-foot .to-login { color: #5f99ff; margin-left: 4px; }
.auth-foot .to-login:hover { text-decoration: underline; }
.auth-foot .to-forgot { color: #18bfd7; }
.auth-foot .to-forgot:hover { text-decoration: underline; }

/*----------------------------- 提示条 -----------------------------*/
.auth-msg {
  display: none; margin-bottom: 16px; padding: 10px 13px;
  font-size: 13.5px; line-height: 1.6; border-radius: 6px;
  word-break: break-all;
}
.auth-msg.show { display: block; }
.auth-msg.err  { color: #a5342b; background: #fdecea; border: 1px solid #f6cfca; }
.auth-msg.ok   { color: #1c6b45; background: #e9f8ef; border: 1px solid #bfe7ce; }

/* 蜜罐字段：对真人不可见，对自动填充工具可见 */
.hp-field {
  position: absolute !important; left: -9999px !important; top: -9999px !important;
  width: 1px; height: 1px; overflow: hidden; opacity: 0;
}

.auth-copyright { margin-top: 34px; text-align: center; font-size: 12px; color: #93a49b; line-height: 1.9; }
.auth-copyright a { color: #93a49b; text-decoration: none; }
.auth-copyright a:hover { color: #5f99ff; }

/*----------------------------- 协议文档页（agreement.php） -----------------------------*/
body.agreement-body {
  display: block;
  padding: 32px 16px 56px;
  font-size: 15px;
  line-height: 1.85;
  color: #333;
  background: linear-gradient(135deg, #f8fdf5 0%, #eaf8ee 45%, #d8f0e3 100%);
  min-height: 100vh;
}
.agreement-body .doc {
  max-width: 820px; margin: 0 auto; background: #fff;
  border-radius: 10px; padding: 40px 44px;
  box-shadow: 0 6px 26px rgba(30, 70, 50, .08);
}
.agreement-body h1 { font-size: 22px; margin: 0 0 6px; text-align: center; color: #26332c; }
.agreement-body .sub { text-align: center; color: #8b9c93; font-size: 13px; margin-bottom: 28px; }
.agreement-body h2 { font-size: 16px; margin: 26px 0 8px; color: #1f6b46; }
.agreement-body p { margin: 8px 0; }
.agreement-body ul { margin: 8px 0 8px 22px; padding: 0; }
.agreement-body li { margin: 4px 0; }
.agreement-body .back { display: block; text-align: center; margin-top: 34px; }
.agreement-body .back a { color: #5f99ff; text-decoration: none; }
.agreement-body .back a:hover { text-decoration: underline; }

/*----------------------------- 移动端 -----------------------------*/
@media (max-width: 480px) {
  body.auth-body { padding: 22px 14px; align-items: flex-start; }
  .auth-wrap { max-width: 100%; }
  .auth-head { margin-top: 12px; }
  .field.has-captcha > input,
  .field.has-sms > input { padding-right: 118px; }
  .field .captcha, .field .sms-btn { width: 112px; }
}
