body[data-auth-page="true"] {
  background: #f2f4f7;
  color: var(--ink);
  letter-spacing: 0;
}
.auth-home-link { margin-left: auto; color: #c4d3dc; font-size: 13px; text-decoration: none; }
.auth-home-link:hover { color: #fff; text-decoration: underline; }
.auth-stage { max-width: none; display: flex; align-items: center; justify-content: center; padding: 32px 18px 52px; }
.auth-card { position: relative; width: 524px; max-width: 100%; min-height: 478px; padding: 56px 36px 30px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 18px rgba(30,42,62,.04); }
.auth-card [hidden] { display: none !important; }
.auth-tabs { display: flex; gap: 36px; margin: 0 0 26px; }
.auth-card button { box-shadow: none; transform: none; letter-spacing: 0; }
.auth-tabs button { position: relative; border: 0; border-radius: 0; min-height: 34px; padding: 0 0 12px; background: transparent; color: #69737e; font-size: 16px; font-weight: 500; }
.auth-tabs button[aria-pressed="true"] { color: var(--ink); font-size: 18px; font-weight: 700; border-bottom: 3px solid var(--accent-2); }
.auth-tabs button:hover { color: var(--accent-2); background: transparent; }
.auth-corner { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; min-height: 44px; border: 0; padding: 4px; background: transparent; border-radius: 4px; }
.auth-corner img { width: 36px; height: 36px; }
.auth-corner:hover { background: #edf4f3; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-field { position: relative; display: flex; align-items: center; gap: 10px; height: 54px; border: 1px solid #d2dce8; border-radius: 4px; background: #fff; padding: 0 12px; }
.auth-field:focus-within { border-color: var(--accent-2); outline: 2px solid #27736d26; }
.auth-field > img { flex-shrink: 0; width: 22px; height: 22px; }
.auth-field input { min-width: 0; width: 100%; height: 50px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #303741; font: inherit; font-size: 14px; outline: none; }
.auth-field input:focus-visible { outline: none; }
.auth-field input::placeholder { color: #828e9d; }
.auth-password-toggle { flex-shrink: 0; width: 32px; height: 38px; min-height: 38px; padding: 7px; border: 0; background: transparent; }
.auth-password-toggle img { display: block; width: 18px; height: 18px; }
.auth-password-toggle:hover { background: #edf4f3; }
.auth-form-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 3px 0 -3px; color: #58616b; font-size: 14px; }
.auth-form-links a { color: inherit; text-decoration: none; }
.auth-inline-button { display: inline; border: 0; padding: 0; min-height: 24px; border-radius: 0; background: transparent; color: inherit; font-size: inherit; font-weight: 400; }
.auth-inline-button:hover, .auth-form-links a:hover { background: transparent; color: var(--accent-2); text-decoration: underline; }
.auth-card .auth-submit { width: 100%; min-height: 46px; border: 1px solid var(--accent); border-radius: 4px; padding: 10px 16px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 500; }
.auth-card .auth-submit:hover { background: #294c69; border-color: #294c69; }
.auth-card #wechatLoginBtn:disabled { background: #e0e7ed; border-color: #c7d1db; color: #65717c; cursor: not-allowed; }
.auth-card .auth-wechat-link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; border: 0; padding: 4px 0; background: transparent; color: var(--accent-2); font-size: 14px; font-weight: 400; }
.auth-wechat-link img { width: 18px; height: 18px; }
.auth-card .auth-wechat-link:hover { background: transparent; color: #1c5b56; text-decoration: underline; }
.auth-agreement { display: flex; align-items: flex-start; gap: 8px; margin-top: 25px; color: #687482; font-size: 12px; line-height: 1.8; }
.auth-agreement input { flex: 0 0 auto; width: 14px; height: 14px; margin: 4px 0 0; accent-color: var(--accent-2); }
.auth-agreement a { color: inherit; text-decoration: none; }
.auth-agreement a:hover { text-decoration: underline; color: var(--accent-2); }
.auth-card .auth-status, .auth-card .wechat-feedback { margin: 10px 0 0; min-height: 0; font-size: 12px; line-height: 1.7; text-align: left; overflow-wrap: anywhere; }
.auth-card .auth-status:empty, .auth-card .wechat-feedback:empty { display: none; }
.auth-card .auth-status[data-error="true"] { color: #a12f2f; }
.auth-register-heading { margin: 0 0 24px; font-size: 20px; }
.auth-register-form > label { display: grid; gap: 7px; font-size: 13px; }
.auth-register-form > label > input { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #d2dce8; border-radius: 4px; background: #fff; color: #303741; }
.auth-card .auth-switch-copy { margin: 0; font-size: 14px; }
.auth-wechat-view { text-align: center; }
.auth-wechat-symbol { width: 64px; height: 64px; margin: 0 auto 15px; }
.auth-wechat-view h2 { font-size: 20px; }
.auth-wechat-view > p { margin: 10px 0 22px; font-size: 14px; }
.auth-wechat-view .wechat-existing-account { margin: 18px 0 0; text-align: left; font-size: 12px; }
.auth-qr-viewport { position: relative; width: min(300px, 100%); aspect-ratio: 3 / 4; margin: 12px auto 0; overflow: hidden; }
#wechatQrContainer { position: absolute; top: 0; left: 0; width: 300px; height: 400px; transform: scale(var(--wechat-qr-scale, 1)); transform-origin: top left; }
#wechatQrContainer iframe { display: block; width: 300px; height: 400px; border: 0; }
#wechatQrPrompt { min-height: 24px; margin: 14px 0; font-size: 13px; }
#wechatQrRefresh { margin: 8px auto; }
.auth-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 480px) {
  .auth-stage { padding: 24px 18px 36px; }
  .auth-card { padding: 56px 24px 28px; }
  .auth-tabs { gap: 30px; }
}
@media (max-width: 360px) {
  .auth-stage { padding-left: 12px; padding-right: 12px; }
  .auth-card { padding-left: 18px; padding-right: 18px; }
  .auth-form-links { font-size: 13px; }
}
