/* 登录 / 注册 / 忘记密码 / 建立连接（base_bare.html）的移动端字号适配。
 *
 * 这些页面不复用 mobile.css，但微信 iOS WebView 会沿用系统「字体大小」
 * 放大正文；从移动首页进入时会明显感觉整页被放大。这里先锁死
 * text-size-adjust，再在窄屏把认证页的大字号收到和移动站一致。
 */
html,
body {
  -webkit-text-size-adjust: none !important;
  text-size-adjust: none !important;
}

/* 登录 / 注册的隐私政策勾选：默认不勾，必须用户手动点。 */
.auth-consent { margin: 12px 0 2px; }
.auth-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #9fb0c7;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
.auth-consent-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: #07c160;
  cursor: pointer;
}
.auth-consent-label a { color: #53e6a4; text-decoration: none; }
.auth-consent-hint {
  margin: 4px 0 0 24px;
  color: #71839b;
  font-size: 10.5px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  /* 登录 / 注册：微信优先，左右切换 */
  .auth-switch {
    display: flex;
    gap: 3px;
    margin: 14px 0 4px;
    padding: 3px;
    border: 1px solid #263449;
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
  }
  body.bare .auth-switch-btn {
    flex: 1;
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9fb0c7;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  body.bare .auth-switch-btn.is-active {
    background: rgba(61, 220, 151, .14);
    color: #53e6a4;
  }
  .auth-pane.is-hidden { display: none !important; }

  body.bare .auth-card .auth-pane-wechat .btn-wechat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    margin-top: 14px;
    border: 0;
    border-radius: 10px;
    background: #07c160;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(7, 193, 96, .18);
  }
  body.bare .auth-card .auth-pane-wechat .btn-wechat:hover,
  body.bare .auth-card .auth-pane-wechat .btn-wechat:focus {
    background: #06ad56;
    color: #fff;
    text-decoration: none;
  }
  .btn-wechat .wechat-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: currentColor;
  }
  .auth-wechat-hint {
    margin: 9px 0 0;
    font-size: 10.5px;
    line-height: 1.5;
    color: #71839b;
    text-align: center;
  }

  /* 登录/注册/联系页的品牌 Hero（_brand_hero_aside.html）在窄屏上
     用的是 clamp(44px, 4.6vw, 64px) 的桌面字号，44px 对手机太大；
     必须用 !important 覆盖模板里的行内样式。 */
  .bare-side-body > p:first-child { font-size: 30px !important; }
  .bare-side-body > p:nth-child(2) {
    margin-top: 10px !important;
    font-size: 16px !important;
    letter-spacing: .12em !important;
  }
  .bare-side-body > .bare-kicker {
    margin-top: 12px !important;
    font-size: 9px !important;
    letter-spacing: .16em !important;
  }
  .bare-side-body > p:last-child {
    margin-top: 16px !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
  }

  .bare-brand { font-size: 17px; }
  .bare-kicker { font-size: 9.5px; letter-spacing: .16em; }
  .bare-headline { font-size: 22px; }

  body.bare .auth-card h2 { font-size: 20px; }
  body.bare .auth-card .hint { font-size: 12px; }
  body.bare .auth-form .field > span { font-size: 11px; }
  body.bare .auth-form .field .dim,
  body.bare .auth-form .field .small { font-size: 10.5px; }

  body.bare .auth-form .field input,
  body.bare .auth-form input[type="text"],
  body.bare .auth-form input[type="email"],
  body.bare .auth-form input[type="password"],
  body.bare .auth-form textarea,
  body.bare .auth-form select {
    font-size: 13px;
  }

  body.bare .auth-card .btn,
  body.bare .auth-card .btn-block { font-size: 13.5px; }
  body.bare .auth-alt { font-size: 12px; }
  body.bare .auth-divider { font-size: 10.5px; }
}
