/* Shared native authentication dialog: quiet typography over frosted ice. */
dialog#login-screen.frosted-login {
  position: fixed;
  inset: 0;
  z-index: 120;
  box-sizing: border-box;
  width: min(460px, calc(100% - 40px));
  max-width: calc(100% - 40px);
  height: fit-content;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgb(0 0 0 / .055);
  border-radius: 24px;
  background: #fff;
  color: #202123;
  box-shadow: 0 28px 110px rgb(20 30 38 / .18), 0 2px 12px rgb(20 30 38 / .04);
  font-family: "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: thin;
  scrollbar-color: #d7dce0 transparent;
}
dialog#login-screen.frosted-login[open] {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  animation: frosted-login-arrive .18s ease-out both;
}
dialog#login-screen.frosted-login:not([open]),
.frosted-login [hidden],
.auth-policy-dialog[hidden],
.auth-policy-dialog:not([open]),
.auth-policy-dialog [hidden] { display: none !important; }
dialog#login-screen.frosted-login::backdrop {
  background: rgb(39 54 65 / .14);
  -webkit-backdrop-filter: blur(10px) saturate(.9);
  backdrop-filter: blur(10px) saturate(.9);
}
.frosted-login .login-card {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 36px 32px 30px;
  border: 0;
  border-radius: inherit;
  background: #fff;
  box-shadow: none;
}
.frosted-login .login-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8a8f93;
  font: 400 23px/1 "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.frosted-login .login-close:hover { background: #f3f4f5; color: #202123; }
.frosted-login .login-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.frosted-login .auth-sr-only {
  position: absolute !important;
  display: block !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.frosted-login .login-welcome { display: flex; align-items: center; gap: 13px; min-height: 48px; margin: 0 28px 9px 0; }
.frosted-login #login-title { margin: 0; color: #17191c; font-size: 30px; font-weight: 600; letter-spacing: -.045em; line-height: 1.3; }
.frosted-login .login-snowman { display: block; flex: none; width: 40px; height: 48px; margin: -5px 0 0; object-fit: contain; }
.frosted-login .login-subtitle { margin: 0 0 28px; color: #70777d; font-size: 14px; font-weight: 400; letter-spacing: 0; line-height: 1.75; }
.frosted-login .login-card:has(#register-form:not([hidden])):has(.login-subtitle[hidden]) .login-welcome { margin-bottom: 24px; }
.frosted-login .login-form { display: grid; gap: 17px; margin: 0; }
.frosted-login .login-form label:not(.login-check) { display: grid; gap: 7px; min-width: 0; color: #464c51; font-size: 13px; font-weight: 400; line-height: 1.6; }
.frosted-login .login-input-wrap { display: flex; align-items: center; box-sizing: border-box; gap: 10px; min-height: 52px; padding: 0 16px; border: 1px solid #dedfe1; border-radius: 12px; background: #fff; color: #8a9197; transition: border-color .15s ease, box-shadow .15s ease; }
.frosted-login .login-input-wrap:hover { border-color: #c7cbce; }
.frosted-login .login-input-wrap:focus-within { border-color: #828d94; box-shadow: 0 0 0 3px rgb(71 85 95 / .065); }
.frosted-login .login-input-wrap input { flex: 1; box-sizing: border-box; width: 100%; min-width: 0; min-height: 50px; margin: 0; padding: 12px 0; border: 0; border-radius: 0; outline: 0; background: transparent; color: #282c30; font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.65; box-shadow: none; }
.frosted-login .login-input-wrap input::placeholder { color: #858d94; opacity: 1; }
.frosted-login .login-input-wrap input:disabled { color: #858d94; -webkit-text-fill-color: #858d94; opacity: 1; }
.frosted-login .password-toggle { display: grid; place-items: center; flex: none; width: 27px; min-height: 36px; margin: 0; padding: 0 !important; border: 0; background: transparent; color: #8b9399 !important; font-size: 15px !important; cursor: pointer; }
.frosted-login .password-toggle:hover { color: #303b43 !important; }
.frosted-login .password-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.frosted-login .login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.frosted-login .login-check { display: flex; align-items: flex-start; gap: 8px; min-width: 0; margin: 0; color: #70777d; font-size: 11.5px; font-weight: 400; line-height: 1.8; }
.frosted-login .login-check input { flex: none; width: 14px; height: 14px; min-height: 0; margin: 3px 0 0; padding: 0; accent-color: #242a2f; }
.frosted-login .remember-account { align-items: center; color: #666e74; font-size: 13px; line-height: 1.6; }
.frosted-login .remember-account input { margin-top: 0; }
.frosted-login .login-muted-link { align-self: center; flex: none; margin: 0; color: #5c6973; font-size: 13px; font-weight: 400; line-height: 1.6; white-space: nowrap; text-decoration: none; }
.frosted-login .login-check a { color: #3d4d59; text-decoration: none; }
.frosted-login .login-check a:hover,
.frosted-login .login-muted-link:hover,
.frosted-login .inline-login-link:hover { color: #141a1e; text-decoration: underline; text-underline-offset: 3px; }
.frosted-login .login-agreement { margin-top: 1px; color: #7a8187; font-size: 11.5px; line-height: 1.85; }
.frosted-login .login-submit { display: flex; align-items: center; justify-content: center; box-sizing: border-box; gap: 12px; width: 100%; min-height: 52px; margin: 1px 0 0; padding: 12px 18px; border: 1px solid #1b1f23; border-radius: 999px; background: #1b1f23; color: #fff; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.6; letter-spacing: .01em; box-shadow: none; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.frosted-login .login-submit:hover { border-color: #363d42; background: #363d42; box-shadow: none; }
.frosted-login .login-submit:disabled { border-color: #dce0e3; background: #dce0e3; color: #7c858c; opacity: 1; cursor: not-allowed; }
.frosted-login .login-submit[aria-busy="true"] { cursor: wait; }
.frosted-login .login-submit span { font-size: 16px; font-weight: 400; }
.frosted-login .login-status { margin: 0; padding: 11px 13px; border: 1px solid #ebdfe1; border-radius: 10px; background: #fbf7f8; color: #8d5a64; font-size: 12px; font-weight: 400; line-height: 1.75; }
.frosted-login .login-status.success { border-color: #e1e8ed; background: #f5f8fa; color: #617481; }
.frosted-login #register-status { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.frosted-login .login-alternative-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding-top: 22px; border-top: 1px solid #eceeef; }
.frosted-login .login-social { display: flex; align-items: center; justify-content: center; box-sizing: border-box; gap: 8px; width: 100%; min-height: 47px; margin: 0; padding: 10px 12px; border: 1px solid #dedfe1; border-radius: 12px; background: #fff; color: #424b52; font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.6; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.frosted-login .login-social:not(:disabled):hover { border-color: #bcc5cc; background: #f7f9fa; color: #202b33; }
.frosted-login .login-social:disabled { border-color: #e6e9eb; background: #f8f9fa; color: #a0a8ae; opacity: 1; cursor: wait; }
.frosted-login .login-social > span { display: inline; width: auto; height: auto; border-radius: 0; background: transparent; color: inherit; font-size: inherit; }
.frosted-login .login-social svg { display: block; flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.frosted-login #wechat-status { margin-top: 14px; }
.frosted-login .login-panel-note { margin: 12px 0 0; color: #737f88; font-size: 12px; line-height: 1.75; }
.frosted-login .login-panel-note a { color: #405e72; text-underline-offset: 3px; }
.frosted-login .login-register-copy { margin: 24px 0 0; color: #777f86; font-size: 13px; font-weight: 400; line-height: 1.7; text-align: center; }
.frosted-login .inline-login-link { min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #293b48; font-family: inherit; font-size: inherit; font-weight: 500; line-height: inherit; cursor: pointer; text-decoration: none; }
.frosted-login #register-form { gap: 14px; }
.frosted-login .register-terms { margin-top: 1px; }
.frosted-login .auth-code-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; min-height: 44px; }
.frosted-login .login-form label.auth-code-input { position: relative; display: flex; align-items: center; box-sizing: border-box; min-width: 0; min-height: 0; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 7px; background: transparent; }
.frosted-login .auth-code-input > input { position: absolute; inset: 0; z-index: 1; box-sizing: border-box; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 0; }
.frosted-login .auth-code-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: stretch; box-sizing: border-box; gap: 5px; width: 100%; min-width: 0; min-height: 0; pointer-events: none; }
.frosted-login .auth-code-cells > span { display: grid; place-items: center; box-sizing: border-box; min-width: 0; min-height: 0; aspect-ratio: 1; border: 0; border-radius: 7px; background: #f1f4f6; color: #a2b0ba; font-size: 15px; font-weight: 400; line-height: 1; box-shadow: none; }
.frosted-login .auth-code-cells > span.is-filled { color: #384d5c; }
.frosted-login .auth-code-input:focus-within .auth-code-cells > span { background: #edf2f5; }
.frosted-login .auth-code-cells > span.is-active { background: #e6eef3; box-shadow: none; }
.frosted-login .auth-code-input:has(input:focus-visible) { outline: 2px solid #829cad; outline-offset: 4px; }
.frosted-login .auth-send-code { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 0; min-height: 44px; margin: 0; padding: 8px 6px; border: 0; border-radius: 6px; background: transparent; color: #526d7f; font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.6; text-align: center; box-shadow: none; cursor: pointer; transition: color .15s ease; }
.frosted-login .auth-send-code:not(:disabled):hover { border: 0; background: transparent; color: #2f5169; box-shadow: none; }
.frosted-login .auth-send-code:disabled { border: 0; background: transparent; color: #98a5af; box-shadow: none; cursor: not-allowed; }
.frosted-login .password-strength { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); box-sizing: border-box; gap: 5px; min-width: 0; margin: -2px 0 0; padding: 0; border: 0; background: transparent; }
.frosted-login .password-strength > span { display: block; height: 3px; border: 0; border-radius: 999px; background: #e9edef; }
.frosted-login .password-strength > span.is-active,
.frosted-login .password-strength[data-strength="1"] > span:nth-child(-n+1),
.frosted-login .password-strength[data-strength="2"] > span:nth-child(-n+2),
.frosted-login .password-strength[data-strength="3"] > span:nth-child(-n+3),
.frosted-login .password-strength[data-strength="4"] > span:nth-child(-n+4),
.frosted-login .password-strength[data-strength="5"] > span { background: #8da9bc; }
.frosted-login .password-strength-hint { margin: -7px 0 0; color: #89949d; font-size: 11px; font-weight: 400; line-height: 1.7; }
/* The image challenge floats above its slider without moving the form. */
.frosted-login .auth-captcha { position: relative; min-width: 0; height: 48px; padding: 0; border: 0; background: transparent; }
.frosted-login .auth-captcha-retry { position: absolute; inset: 0; z-index: 3; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 11px; background: transparent; cursor: pointer; }
.frosted-login .auth-captcha-preview { position: absolute; bottom: calc(100% + 10px); left: 50%; z-index: 8; container-type: inline-size; box-sizing: border-box; width: 100%; max-width: calc(100vw - 72px); padding: 8px; overflow: hidden; border: 1px solid #e2e8ec; border-radius: 12px; background: #fff; box-shadow: 0 12px 35px rgb(24 44 59 / .17), 0 2px 6px rgb(24 44 59 / .05); transform: translateX(-50%); }
.frosted-login .auth-captcha[data-placement="below"] .auth-captcha-preview,
.frosted-login .auth-captcha-preview[data-placement="below"] { top: calc(100% + 10px); bottom: auto; }
.frosted-login .auth-captcha-image { display: block; width: 100%; height: auto; aspect-ratio: 320 / 144; border-radius: 6px; object-fit: fill; }
.frosted-login .auth-captcha-piece { position: absolute; z-index: 1; top: calc(9px + var(--captcha-y, 0) * 100cqw / 320); left: calc(9px + var(--captcha-x, 0) * 100cqw / 320); width: calc(var(--captcha-size, 40) * 100cqw / 320); height: calc(var(--captcha-size, 40) * 100cqw / 320); max-width: none; object-fit: contain; filter: drop-shadow(0 2px 3px rgb(16 36 50 / .23)); pointer-events: none; }
.frosted-login .auth-captcha-refresh { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; box-sizing: border-box; width: 28px; min-height: 28px; margin: 0; padding: 5px; border: 1px solid rgb(255 255 255 / .6); border-radius: 7px; background: rgb(255 255 255 / .9); color: #4f6574; font: 400 18px/1 "Segoe UI", sans-serif; cursor: pointer; }
.frosted-login .auth-captcha-refresh:hover { background: #fff; color: #263f50; }
.frosted-login .auth-captcha-refresh svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.frosted-login .auth-captcha-confirm { position: absolute; right: 14px; bottom: 14px; z-index: 2; box-sizing: border-box; min-height: 28px; margin: 0; padding: 5px 10px; border: 1px solid rgb(255 255 255 / .75); border-radius: 7px; background: rgb(255 255 255 / .94); color: #425e71; font-family: inherit; font-size: 11px; font-weight: 500; line-height: 1.5; box-shadow: 0 1px 4px rgb(25 48 63 / .08); cursor: pointer; }
.frosted-login .auth-captcha-confirm:hover { background: #fff; color: #203e53; }
.frosted-login .auth-captcha-confirm:disabled,
.frosted-login .auth-captcha-refresh:disabled { color: #9daab3; cursor: wait; }
.frosted-login .auth-captcha-slider { position: relative; display: flex; align-items: center; box-sizing: border-box; width: 100%; height: 48px; overflow: hidden; border: 0; border-radius: 11px; background: #f4f7f9; color: #7a8b97; box-shadow: none; }
.frosted-login .auth-captcha-track { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 44px; color: #83929d; font-size: 12px; font-weight: 400; line-height: 1.6; pointer-events: none; }
.frosted-login .auth-captcha-thumb { display: none; }
.frosted-login .auth-captcha-slider input[type="range"] { position: absolute; inset: 0; z-index: 2; display: block; box-sizing: border-box; width: 100%; height: 100%; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; border: 0; border-radius: 10px; outline: 0; background: transparent; cursor: ew-resize; touch-action: pan-y; }
.frosted-login .auth-captcha-slider input[type="range"]::-webkit-slider-runnable-track { height: 46px; border: 0; border-radius: 10px; background: transparent; }
.frosted-login .auth-captcha-slider input[type="range"]::-webkit-slider-thumb { box-sizing: border-box; width: 44px; height: 44px; margin-top: 1px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 9px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%23768fa1' stroke-width='1.5'%3E%3Cpath d='m5 5 5 5-5 5m6-10 5 5-5 5'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: none; }
.frosted-login .auth-captcha-slider input[type="range"]::-moz-range-track { height: 46px; border: 0; border-radius: 10px; background: transparent; }
.frosted-login .auth-captcha-slider input[type="range"]::-moz-range-thumb { box-sizing: border-box; width: 44px; height: 44px; border: 0; border-radius: 9px; background: #fff; box-shadow: none; }
.frosted-login .auth-captcha-slider:has(input:focus-visible) { outline: 2px solid #829cad; outline-offset: 4px; }
.frosted-login .auth-captcha-slider input[type="range"]:disabled { opacity: .7; cursor: default; }
.frosted-login .auth-captcha-status { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; box-sizing: border-box; margin: 0; padding: 0 45px; overflow: hidden; color: #7a8b98; font-size: 12px; font-weight: 400; line-height: 1.6; text-align: center; pointer-events: none; }
.frosted-login .auth-captcha:has(> .auth-captcha-status:not([hidden]):not(:empty)) .auth-captcha-track { opacity: 0; }
.frosted-login .auth-captcha.is-verified .auth-captcha-slider,
.frosted-login .auth-captcha[data-state="verified"] .auth-captcha-slider { border: 0; background: #f3f8fb; box-shadow: none; }
.frosted-login .auth-captcha.is-verified .auth-captcha-status,
.frosted-login .auth-captcha[data-state="verified"] .auth-captcha-track { color: #55788f; }
.frosted-login .auth-captcha.is-error .auth-captcha-status { color: #95616b; }
.frosted-login :is(a, button, input[type="checkbox"], input[type="range"]):focus-visible,
.auth-policy-dialog :is(a, button):focus-visible { outline: 2px solid #829cad; outline-offset: 4px; }
.auth-policy-dialog { position: fixed; inset: 0; box-sizing: border-box; width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 30px; overflow: auto; overscroll-behavior: contain; border: 1px solid #e4e8eb; border-radius: 20px; background: #fff; color: #4e5b65; font-family: "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif; box-shadow: 0 25px 90px rgb(20 30 38 / .16); }
.auth-policy-dialog[open] { display: block; }
.auth-policy-dialog::backdrop { background: rgb(42 55 65 / .1); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.auth-policy-dialog h2 { margin: 0 0 18px; color: #242a2f; font-size: 22px; font-weight: 600; line-height: 1.5; }
.auth-policy-dialog p { margin: 13px 0; color: #707c86; font-size: 13px; font-weight: 400; line-height: 1.9; }
.auth-policy-dialog a { color: #3e5d72; text-underline-offset: 3px; }
.auth-policy-dialog .auth-policy-close { display: block; min-height: 41px; margin: 24px 0 0 auto; padding: 9px 21px; border: 0; border-radius: 999px; background: #22292e; color: #fff; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.5; cursor: pointer; }
@keyframes frosted-login-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
  dialog#login-screen.frosted-login { width: calc(100% - 24px); max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 22px; }
  .frosted-login .login-card { padding: 32px 24px 27px; }
  .frosted-login #login-title { font-size: 28px; }
  .frosted-login .login-subtitle { font-size: 13px; margin-bottom: 25px; }
  .frosted-login .login-input-wrap input { font-size: 16px; }
  .frosted-login .login-options { flex-direction: row; gap: 8px; }
  .frosted-login .login-muted-link { align-self: center; }
  .frosted-login .login-agreement { font-size: 11px; }
  .frosted-login .auth-code-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; }
  .frosted-login .auth-code-cells { gap: 4px; }
  .frosted-login .auth-send-code { padding-inline: 6px; font-size: 12px; }
  .auth-policy-dialog { padding: 25px; }
}
@media (max-height: 700px) {
  .frosted-login .login-card { padding-top: 28px; padding-bottom: 26px; }
  .frosted-login .login-subtitle { margin-bottom: 23px; }
  .frosted-login .login-alternative-options { margin-top: 20px; padding-top: 18px; }
  .frosted-login .login-register-copy { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  dialog#login-screen.frosted-login[open] { animation: none; }
  .frosted-login :is(button, a, .login-input-wrap) { transition: none; }
}
@media (forced-colors: active) {
  dialog#login-screen.frosted-login,
  .auth-policy-dialog,
  .frosted-login .login-submit,
  .frosted-login .login-close,
  .frosted-login .auth-captcha-slider { border: 1px solid CanvasText; }
}
