:root {
  color-scheme: light;
  --ink: #1f2936;
  --muted: #737a82;
  --accent: #285d95;
  --accent-dark: #204b7a;
  --line: #dce0e4;
  font-family: "Inter", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: #f1f6fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { position: relative; isolation: isolate; display: flex; min-width: 320px; min-height: 100vh; min-height: 100svh; flex-direction: column; margin: 0; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #be9f63; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 50; top: 10px; left: 12px; transform: translateY(-160%); padding: 10px 14px; border-radius: 6px; background: #fff; color: var(--ink); }
.skip-link:focus { transform: translateY(0); }
.auth-backdrop { position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 18% 26%, #e0f0ff 0, transparent 52%), radial-gradient(ellipse at 84% 74%, #e6f6f3 0, transparent 48%), linear-gradient(135deg, #f8fbff, #edf3fb 65%, #f1f8fc); }
.auth-gravity-field { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }

.login-header { display: flex; min-height: 76px; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 24px; padding: 12px max(40px, calc((100vw - 1400px) / 2)); border-bottom: 1px solid #cbdbea88; }
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; }
.brand-mark svg { width: 46px; height: 46px; }
.brand-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.brand-copy strong { color: #1e456d; font-size: 22px; font-weight: 650; letter-spacing: .025em; line-height: 1.2; white-space: nowrap; }
.brand-copy i { margin-inline: 3px; color: #4398ae; font-style: normal; }
.login-subtitle { color: #6d8298; font-size: 12px; letter-spacing: .025em; line-height: 1.5; }
.header-side { display: flex; flex-shrink: 0; align-items: center; gap: 26px; color: #71849a; font-size: 13px; }
.header-side a { padding: 8px 0; color: #41678d; }
.header-side a:hover { color: #164f91; }
.header-side > span { padding-right: 26px; border-right: 1px solid #cbdbea; }

.login-shell { display: grid; width: min(1400px, calc(100% - 120px)); flex: 1 0 auto; grid-template-columns: minmax(0, 1fr) 388px; align-items: center; gap: clamp(56px, 6.5vw, 112px); margin: 0 auto; padding: 24px 0; }
.login-story { min-width: 0; color: #244767; }
@media (min-width: 861px) { .login-story { transform: translateY(-48px); } }
.story-content { padding-bottom: 10px; }
.story-kicker { display: flex; align-items: center; gap: 11px; margin: 0 0 19px; color: #377f98; font-size: 13px; font-weight: 550; letter-spacing: .15em; }
.story-kicker > span { width: 28px; height: 1px; background: #377f98; }
.story-content h1 { margin: 0; color: #183f68; font-size: clamp(48px, 4.2vw, 64px); font-weight: 600; letter-spacing: .025em; line-height: 1.24; }
.story-content h1 em { color: #397da4; font-style: normal; }
.story-description { max-width: 590px; margin: 19px 0 0; color: #667f96; font-size: 16px; font-weight: 400; line-height: 1.8; }
.story-highlights { display: grid; max-width: 620px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; padding-top: 18px; border-top: 1px solid #b7cfe180; }
.story-highlights > div { position: relative; min-width: 0; }
.highlight-icon { display: grid; width: 28px; height: 28px; place-items: center; margin-bottom: 8px; color: #2877a8; }
.highlight-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.story-highlights strong { color: #365d7c; font-size: 15px; font-weight: 550; letter-spacing: .08em; }
.story-highlights p { margin: 5px 0 0; color: #768ca0; font-size: 12px; line-height: 1.6; white-space: nowrap; }

.login-workspace { position: relative; width: 388px; padding: 23px 28px 20px; border: 1px solid #ffffff; border-radius: 14px; background: #ffffffed; color: var(--ink); box-shadow: 0 24px 72px #275c9220, 0 2px 12px #275c9208; }
.auth-card { width: 100%; }
.auth-card-heading { margin-bottom: 15px; }
.auth-eyebrow { display: none; }
.auth-card-heading h2 { margin: 0; color: #1a293b; font-size: 24px; font-weight: 650; letter-spacing: .025em; line-height: 1.35; }
.auth-card-heading > p:last-child { margin: 6px 0 0; color: #6d747d; font-size: 13px; line-height: 1.55; }
.auth-card-heading > p:empty { display: none; }
.auth-method-tabs { display: flex; gap: 22px; margin: 0 0 20px; border-bottom: 1px solid #e1e4e8; }
.auth-method-tabs button { position: relative; min-height: 35px; padding: 0 0 10px; border: 0; background: transparent; color: #8a9097; font-size: 13px; line-height: 1.5; }
.auth-method-tabs button[aria-selected="true"] { color: var(--accent); font-weight: 650; }
.auth-method-tabs button[aria-selected="true"]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); content: ""; }
.auth-method-tabs button:hover { color: var(--accent); }
.field-label { display: inline-block; margin: 0 0 4px; color: #404852; font-size: 14px; font-weight: 500; line-height: 1.5; }
.field-row, .captcha-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.inline-action { padding: 0; border: 0; background: transparent; color: #667485; font-size: 12px; line-height: 1.5; }
.inline-action:hover { color: var(--accent-dark); text-decoration: underline; }
.input-wrap { position: relative; display: flex; height: 40px; align-items: center; margin-bottom: 10px; border: 1px solid #d6dadf; border-radius: 6px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.input-wrap:focus-within { border-color: #59718e; box-shadow: 0 0 0 3px #6f849d14; }
.input-wrap input { width: 100%; min-width: 0; height: 100%; padding: 0 12px 0 38px; border: 0; border-radius: inherit; outline: 0; background: transparent; color: #283544; font-size: 15px; }
.input-wrap input::placeholder { color: #898f97; font-size: 13px; }
.input-wrap input:focus-visible { outline: 0; }
.input-icon { position: absolute; left: 12px; display: grid; width: 16px; height: 16px; place-items: center; color: #9aa3ae; pointer-events: none; }
.input-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.credential-requirements { margin: -6px 0 13px; color: #6d747d; font-size: 12px; line-height: 1.8; }
.captcha-expiry { color: #7b838c; font-size: 12px; line-height: 1.5; }
.captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) 98px 28px; align-items: center; gap: 7px; margin-bottom: 8px; }
.captcha-input-wrap { margin: 0; }
.captcha-input-wrap input { padding-left: 32px; padding-right: 5px; }
.captcha-input-wrap .input-icon { left: 9px; }
.captcha-image-wrap { display: grid; overflow: hidden; width: 98px; height: 36px; place-items: center; border: 1px solid #dce1e6; border-radius: 5px; background: #eef1f5; }
.captcha-image-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
.captcha-placeholder { color: #9ca2a9; font-size: 12px; }
.captcha-refresh { display: grid; width: 28px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #788595; }
.captcha-refresh:hover { background: #e6ebf0; color: var(--accent); }
.captcha-refresh:disabled { cursor: wait; opacity: .55; }
.captcha-refresh svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.form-options { display: flex; min-height: 22px; align-items: center; justify-content: space-between; margin: 2px 0 8px; }
.check-label { display: inline-flex; align-items: center; gap: 7px; color: #6e7781; font-size: 13px; cursor: pointer; }
.check-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-check { display: grid; width: 13px; height: 13px; place-items: center; border: 1px solid #c6cbd2; border-radius: 3px; background: #fff; }
.custom-check::after { width: 7px; height: 4px; transform: translateY(-1px) rotate(-45deg); border-bottom: 1.5px solid #fff; border-left: 1.5px solid #fff; content: ""; opacity: 0; }
.check-label input:checked + .custom-check { border-color: var(--accent); background: var(--accent); }
.check-label input:checked + .custom-check::after { opacity: 1; }
.check-label input:focus-visible + .custom-check { outline: 3px solid #be9f63; outline-offset: 3px; }
.submit-button { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 550; letter-spacing: .1em; box-shadow: 0 4px 10px #1b335012; transition: background .15s, box-shadow .15s; }
.submit-button:hover:not(:disabled) { border-color: var(--accent-dark); background: var(--accent-dark); box-shadow: 0 6px 14px #1b335020; }
.submit-button:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; }
.submit-button.is-loading { cursor: wait; }
.button-spinner { display: none; width: 14px; height: 14px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; animation: login-spin .8s linear infinite; }
.submit-button.is-loading .button-spinner { display: block; }
#formFootnote { display: none; }
.form-footnote { margin: 12px 0 0; color: #8a9199; font-size: 12px; line-height: 1.75; }
.registration-prompt { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #dfe3e8; color: #727a83; font-size: 13px; }
.registration-prompt button { padding: 2px 0; border: 0; background: transparent; color: var(--accent); font-size: inherit; font-weight: 600; }
.registration-prompt button:hover:not(:disabled) { color: var(--accent-dark); text-decoration: underline; }
.registration-prompt button:disabled { cursor: wait; opacity: .6; }
.form-message { margin: -5px 0 16px; padding: 10px 12px; border: 1px solid #eacfc2; border-radius: 5px; background: #fcf3ed; color: #9b5e43; font-size: 12px; line-height: 1.7; }
.form-message.success { border-color: #cad3dd; background: #ebf0f5; color: var(--accent); }
.status-view { display: flex; min-height: 300px; flex-direction: column; align-items: center; justify-content: center; gap: 15px; color: #808891; text-align: center; }
.status-view p { max-width: 300px; margin: 0; font-size: 13px; line-height: 1.8; }
.status-spinner { width: 23px; height: 23px; border: 2px solid #dce1e8; border-top-color: var(--accent); border-radius: 50%; animation: login-spin .8s linear infinite; }
.status-view button { padding: 7px 14px; border: 1px solid #bfc6cf; border-radius: 5px; background: transparent; color: var(--accent); font-size: 13px; }
.status-view.has-error .status-spinner { display: none; }
.password-mode-note { display: flex; align-items: center; gap: 8px; margin: -3px 0 18px; color: #778391; font-size: 12px; }
.password-note-mark { color: var(--accent); }
.password-submit { margin-top: 20px; }
.password-success { padding: 24px 0; text-align: center; }
.success-mark { display: grid; width: 42px; height: 42px; place-items: center; margin: 0 auto 14px; border-radius: 50%; background: #e2e8f0; color: var(--accent); font-size: 22px; }
.password-success h3 { margin: 0; font-size: 19px; }
.password-success p { margin: 12px 0 24px; color: #7f8791; font-size: 13px; line-height: 1.8; }
.success-home { display: inline-block; padding: 10px 18px; border: 1px solid #c2c9d2; border-radius: 5px; color: var(--accent); font-size: 13px; }
.success-home:hover { background: #e7ecf3; }
.login-footer { display: flex; min-height: 36px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 12px; padding: 0 80px 12px; color: #8292a3; font-size: 11px; line-height: 1.6; text-align: center; }
.footer-separator { color: #a7bacb; }
.forgot-dialog { position: fixed; width: min(calc(100% - 40px), 380px); padding: 28px; border: 1px solid #dce1e7; border-radius: 12px; background: #f8fafc; color: var(--ink); box-shadow: 0 24px 80px #010f2140; }
.forgot-dialog::backdrop { background: #071526a6; backdrop-filter: blur(3px); }
.forgot-dialog > form:first-child { position: absolute; top: 10px; right: 10px; }
.dialog-close { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #7d8691; font-size: 20px; }
.dialog-close:hover { background: #e4e9f0; }
.dialog-icon { color: var(--accent); font-family: Georgia, serif; font-size: 24px; font-style: italic; }
.forgot-dialog h2 { margin: 14px 0 10px; font-size: 19px; font-weight: 600; }
.forgot-dialog p { margin: 0 0 22px; color: #7b828b; font-size: 13px; line-height: 1.9; }
.dialog-ok { min-height: 39px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 5px; background: var(--accent); color: #fff; font-size: 13px; }
@keyframes login-spin { to { transform: rotate(360deg); } }

@media (min-width: 1800px) {
  .login-shell { width: min(1440px, calc(100% - 160px)); gap: 132px; }
  .story-content h1 { font-size: 64px; }
  .story-description { font-size: 17px; }
}
@media (max-width: 1100px) and (min-width: 861px) {
  .login-shell { width: calc(100% - 64px); grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
  .login-workspace { width: 360px; padding-right: 24px; padding-left: 24px; }
  .story-content h1 { font-size: 44px; }
  .story-description { font-size: 14px; }
  .story-highlights { gap: 12px; }
  .story-highlights p { font-size: 11px; letter-spacing: 0; }
}
@media (min-width: 861px) and (max-height: 820px) {
  .login-header { min-height: 68px; padding-block: 9px; }
  .login-shell { padding-block: 14px; }
  .login-workspace { padding-top: 20px; padding-bottom: 18px; }
  .auth-card-heading { margin-bottom: 12px; }
  .input-wrap { margin-bottom: 8px; }
  .captcha-input-wrap { margin-bottom: 0; }
  .story-content { padding-bottom: 0; }
  .story-kicker { margin-bottom: 14px; }
  .story-highlights { margin-top: 48px; padding-top: 14px; }
  .login-footer { min-height: 30px; padding-bottom: 8px; }
}
@media (max-width: 860px) {
  .login-header { min-height: 78px; padding: 16px 28px; }
  .brand-copy strong { font-size: 20px; }
  .brand-mark, .brand-mark svg { width: 40px; height: 40px; }
  .brand-mark { flex-basis: 40px; }
  .login-shell { width: calc(100% - 56px); grid-template-columns: 1fr; justify-items: center; gap: 26px; padding: 28px 0; }
  .login-story { width: min(100%, 510px); text-align: center; }
  .story-content { padding: 0; }
  .story-kicker { justify-content: center; margin-bottom: 16px; font-size: 12px; }
  .story-content h1 { font-size: 38px; }
  .story-description { margin-top: 15px; font-size: 14px; line-height: 1.9; }
  .story-highlights { display: none; }
  .login-workspace { width: min(100%, 400px); }
  .login-footer { flex-wrap: wrap; gap: 7px; padding: 0 32px 18px; }
}
@media (max-width: 520px) {
  .login-header { min-height: 76px; padding: 15px 22px; border-bottom: 0; }
  .brand { gap: 9px; }
  .brand-copy strong { font-size: 18px; letter-spacing: 0; }
  .brand-copy i { margin-inline: 1px; }
  .login-subtitle { font-size: 10px; letter-spacing: 0; }
  .brand-mark, .brand-mark svg { width: 36px; height: 36px; }
  .brand-mark { flex-basis: 36px; }
  .header-side { display: none; }
  .login-shell { width: calc(100% - 36px); gap: 18px; padding: 12px 0 28px; }
  .login-story { text-align: left; padding-left: 12px; }
  .story-kicker { display: none; }
  .story-content h1 { font-size: 24px; font-weight: 550; line-height: 1.4; }
  .story-content h1 br { display: none; }
  .story-description { display: none; }
  .login-workspace { padding: 20px 22px 18px; border-radius: 12px; }
  .auth-card-heading { margin-bottom: 14px; }
  .auth-card-heading h2 { font-size: 23px; }
  .input-wrap input { font-size: 16px; }
  .captcha-row { grid-template-columns: minmax(0, 1fr) 94px 24px; gap: 6px; }
  .captcha-image-wrap { width: 94px; }
  .captcha-refresh { width: 24px; }
  .login-footer { padding: 0 58px 18px 24px; font-size: 10px; }
  .footer-separator { display: none; }
}
@media (max-width: 340px) {
  .story-content h1 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
