/* 手机号 + 验证码登录弹窗（全站共用） */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-modal[hidden] { display: none !important; }
/* 易盾验证码浮层由 SDK 追加到 body、通过 popupStyles.zIndex 盖在登录弹窗之上；
   若浮层仍被弹窗遮挡，只把登录弹窗容器自身降一层，不覆盖 SDK 浮层样式。 */
.auth-modal.auth-modal--captcha-open { z-index: 900; }
.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 18, .72);
  backdrop-filter: blur(6px);
}
.auth-modal__dialog {
  position: relative;
  width: min(100%, 440px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 22px;
  background: #fff;
  color: #111827;
  padding: 34px 30px 26px;
  box-shadow: 0 30px 90px rgba(3, 8, 25, .45);
}
.auth-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f8;
  color: #4b5563;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.auth-modal__close:hover { background: #e6e9f2; }
.auth-modal__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .16em;
  color: #6b7280;
}
.auth-modal__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.auth-modal__sub {
  margin: 10px 0 22px;
  color: #5f6b7a;
  font-size: 13px;
  line-height: 1.7;
}
.auth-modal__field { margin-bottom: 14px; }
.auth-modal__label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}
.auth-modal__input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d6dbe6;
  border-radius: 10px;
  background: #fbfcff;
  color: #111827;
  font: inherit;
  font-size: 15px;
  box-sizing: border-box;
}
.auth-modal__input:focus {
  outline: 2px solid #2f6bff;
  outline-offset: 1px;
  border-color: #2f6bff;
  background: #fff;
}
.auth-modal__code-row {
  display: flex;
  gap: 10px;
}
.auth-modal__code-row .auth-modal__input { flex: 1; min-width: 0; }
.auth-modal__send {
  flex: none;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #2f6bff;
  border-radius: 10px;
  background: #f0f5ff;
  color: #1d4ed8;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.auth-modal__send:disabled { cursor: default; opacity: .55; }
/* 配置了易盾验证码时，发送短信前的安全提示（默认 hidden，由 JS 打开） */
.auth-modal__captcha-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -6px 0 14px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
}
.auth-modal__captcha-hint[hidden] { display: none !important; }
.auth-modal__captcha-hint::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f6bff;
}
.auth-modal__demo {
  margin: -4px 0 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  line-height: 1.6;
}
.auth-modal__agree {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 4px 0 14px;
  color: #5f6b7a;
  font-size: 12px;
  line-height: 1.6;
}
.auth-modal__agree input { margin-top: 2px; flex: none; }
.auth-modal__error {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.6;
}
.auth-modal__submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #2456ff, #2f9bff);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.auth-modal__submit:disabled { cursor: default; opacity: .6; }
.auth-modal__foot {
  margin: 16px 0 0;
  text-align: center;
  color: #8a94a3;
  font-size: 12px;
}
.auth-modal__foot a { color: #1d4ed8; }
@media (max-width: 480px) {
  .auth-modal { padding: 12px; align-items: flex-end; }
  .auth-modal__dialog { padding: 28px 20px 22px; border-radius: 20px; }
}
