/* 页头「登录 / 免费注册」弹窗（2026-10-20）。全站只此一处，单独一个文件，
   避免再往 components.css 里堆特例样式。 */

.authm {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.authm[hidden] { display: none; }

.authm__mask {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 44, 0.5);
  backdrop-filter: blur(2px);
}

.authm__card {
  position: relative;
  width: 400px;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 26px 26px 18px;
  box-shadow: 0 26px 70px rgba(8, 28, 42, 0.32);
}

.authm__x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #8aa0b0;
  cursor: pointer;
  border-radius: 8px;
}
.authm__x:hover { background: #f2f6f9; color: #40525f; }

.authm__title {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--ink-700, #10263c);
}

.authm__sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-500, #66798a);
  line-height: 1.6;
}

.authm__field {
  display: block;
  margin-bottom: 14px;
}
/* 只给"标题那个 span"加块级样式；验证码那一行也是 span，
   不能一起被 display:block 命中，否则输入框和图片会上下掉行 */
.authm__field > span:not(.authm__captcha) {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--ink-600, #40525f);
}
.authm__field input {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  font-size: 15px;
  color: #10263c;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.authm__field input:focus {
  outline: none;
  border-color: var(--brand, #189aed);
  box-shadow: 0 0 0 3px rgba(24, 154, 237, 0.12);
}

.authm__captcha {
  display: flex;
  align-items: center;
  gap: 10px;
}
.authm__captcha input { flex: 1 1 auto; min-width: 0; }
.authm__captcha img {
  flex: 0 0 auto;
  height: 44px;
  width: auto;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: #f7fafc;
  cursor: pointer;
}

.authm__error {
  margin: 2px 0 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fdecec;
  color: #c22f2f;
  font-size: 13px;
  line-height: 1.55;
}

.authm__submit {
  width: 100%;
  height: 44px;
  font-size: 16px;
}

.authm__hint {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-400, #8aa0b0);
}
.authm__hint a { color: var(--brand, #189aed); text-decoration: none; }

body.authm-open { overflow: hidden; }

@media (max-width: 480px) {
  .authm { padding: 12px; }
  .authm__card { padding: 22px 18px 16px; }
}
