.auth-page-body {
  --auth-blue: #285ee8;
  --auth-ink: #182641;
  --auth-muted: #65748c;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: radial-gradient(ellipse at 90% 0, #eaf0ff 0, transparent 45%), #f7f9fe;
  color: var(--auth-ink);
  font-family: "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.auth-page-body *, .auth-page-body *::before, .auth-page-body *::after { box-sizing: border-box; }
.auth-page-body a { color: inherit; text-decoration: none; }
.auth-page-body button, .auth-page-body input { font: inherit; }
.auth-page-body button, .auth-page-body a, .auth-page-body label { -webkit-tap-highlight-color: transparent; }
.auth-page-body button { cursor: pointer; }
.auth-page-body button:disabled { cursor: not-allowed; opacity: .58; box-shadow: none; transform: none; }
.auth-page-body a:focus-visible, .auth-page-body button:focus-visible, .auth-page-body input:focus-visible { outline: 3px solid #8aafff; outline-offset: 4px; }
.auth-page-body ::selection { background: #dbe6ff; color: #163c8a; }
.auth-skip { position: absolute; top: -80px; left: 20px; z-index: 20; padding: 12px 18px; border-radius: 10px; background: #fff; }
.auth-skip:focus { top: 12px; }
.auth-topbar, .auth-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1232px, calc(100% - 80px)); margin: 0 auto; }
.auth-topbar { min-height: 90px; }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.auth-brand img, .auth-brand-symbol { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; object-fit: cover; }
.auth-brand-symbol { display: grid; place-items: center; background: linear-gradient(140deg, #397bff, #2450d5); color: #fff; box-shadow: 0 5px 12px #285ee826, inset 0 1px 0 #ffffff40; font: 700 29px/1 monospace; }
.auth-brand strong { max-width: 330px; overflow-wrap: anywhere; font-size: 20px; letter-spacing: -.6px; }
.auth-home-link { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--auth-muted) !important; font-size: 13px; }
.auth-home-link:hover { color: var(--auth-blue) !important; }
.auth-home-link > span { font-size: 18px; }
.auth-layout { display: grid; grid-template-columns: 1.08fr 1fr; gap: 24px; width: min(1232px, calc(100% - 80px)); min-height: calc(100vh - 164px); min-height: calc(100svh - 164px); margin: 0 auto; padding: 10px 0 18px; }
.auth-intro { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-width: 0; min-height: 660px; overflow: hidden; padding: 48px 44px 32px; border: 1px solid #293f65; border-radius: 28px; background: radial-gradient(ellipse at 10% 0, #234d8a80, transparent 65%), radial-gradient(ellipse at 100% 90%, #1e515d60, transparent 60%), #10213f; color: #fff; }
.auth-intro::before { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(#bdd5ff05 1px, transparent 1px), linear-gradient(90deg, #bdd5ff05 1px, transparent 1px); background-size: 44px 44px; content: ""; pointer-events: none; }
.auth-intro::after { position: absolute; z-index: -1; top: 110px; right: -180px; width: 380px; height: 380px; border: 1px solid #9dbfff12; border-radius: 50%; box-shadow: 0 0 0 55px #9dbfff06, 0 0 0 110px #9dbfff04; content: ""; pointer-events: none; }
.auth-intro-label { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; color: #b5c9ec; font: 600 10px/1.5 ui-monospace, Consolas, monospace; letter-spacing: 2.3px; }
.auth-intro-label > span { width: 6px; height: 6px; border-radius: 50%; background: #9ebcff; box-shadow: 0 0 0 5px #9ebcff12; }
.auth-intro h2 { margin: 0; font-size: clamp(32px, 3.1vw, 45px); font-weight: 650; letter-spacing: -1.8px; line-height: 1.5; }
.auth-intro h2 em { color: #b0ceff; font-style: normal; }
.auth-intro-description { max-width: 380px; margin: 18px 0 0; color: #b6c5df; font-size: 14px; line-height: 1.95; }
.auth-visual { margin-top: 34px; overflow: hidden; border: 1px solid #8aabe530; border-radius: 17px; background: linear-gradient(135deg, #ffffff0c, #ffffff03); box-shadow: 0 18px 45px #06102426; }
.auth-visual-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 16px; border-bottom: 1px solid #b9d2ff12; color: #a9bfdf; font: 9px/1.4 ui-monospace, Consolas, monospace; letter-spacing: 1.4px; }
.auth-window-dots { display: inline-flex; gap: 5px; }
.auth-window-dots i { width: 5px; height: 5px; border-radius: 50%; background: #6682ae; }
.auth-window-dots i:first-child { background: #93afdc; }
.auth-visual-checks { display: grid; gap: 18px; padding: 21px 20px; border-bottom: 1px solid #b9d2ff10; }
.auth-visual-checks > div { display: flex; align-items: center; gap: 13px; }
.auth-visual-checks > div > span { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border: 1px solid #8eaee633; border-radius: 8px; background: #345a8f33; color: #bdd3f7; font: 10px/1 ui-monospace, Consolas, monospace; }
.auth-visual-checks p { margin: 0; }
.auth-visual-checks strong { display: block; color: #d7e4f9; font-size: 11px; font-weight: 500; }
.auth-visual-checks small { display: block; margin-top: 5px; color: #b3c6e4; font-size: 10px; line-height: 1.7; }
.auth-flow { display: flex; align-items: center; gap: 12px; padding: 25px 26px 15px; }
.auth-flow > div { display: grid; flex-shrink: 0; justify-items: center; gap: 10px; }
.auth-flow > div > span { display: grid; width: 49px; height: 49px; place-items: center; border: 1px solid #779ad03d; border-radius: 13px; background: #182f51; color: #d3e2ff; font: 600 18px/1 ui-monospace, Consolas, monospace; }
.auth-flow small { color: #b5c7e3; font-size: 10px; }
.auth-flow .auth-flow-api > span { border-color: #7ca3ff; background: linear-gradient(140deg, #5c89ee, #3159bc); color: #fff; box-shadow: 0 0 28px #497fe540, inset 0 1px 0 #ffffff40; font-size: 13px; letter-spacing: 1px; }
.auth-flow-line { position: relative; flex: 1; height: 1px; margin-top: -21px; background: linear-gradient(90deg, #668ad944, #95bcff); }
.auth-flow-line::after { position: absolute; top: -2px; right: 0; width: 5px; height: 5px; border-top: 1px solid #95bcff; border-right: 1px solid #95bcff; transform: rotate(45deg); content: ""; }
.auth-visual-caption { margin: 0 12px 18px; color: #a0b6d9; text-align: center; font-size: 9px; line-height: 1.7; }
.auth-intro-tags { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; color: #c0d0ea; font-size: 11px; }
.auth-intro-tags > span::before { margin-right: 7px; color: #94baff; content: "↗"; }
.auth-intro-footer { display: flex; align-items: center; gap: 13px; padding-top: 24px; border-top: 1px solid #a5c6ff20; }
.auth-intro-mark { display: grid; width: 34px; height: 34px; flex-shrink: 0; place-items: center; border: 1px solid #a5c6ff26; border-radius: 10px; color: #b9d2ff; font: 700 23px/1 monospace; }
.auth-intro-footer strong { color: #dae6fa; font-size: 12px; font-weight: 500; }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; padding: 38px 44px 26px; border: 1px solid #e3eaf6; border-radius: 28px; background: #ffffffed; box-shadow: 0 12px 42px #16387605; }
.auth-card { width: 100%; max-width: 376px; }
.auth-heading { margin-bottom: 30px; }
.auth-page-label { display: inline-block; margin-bottom: 13px; color: var(--auth-blue); font: 650 10px/1.5 ui-monospace, Consolas, monospace; letter-spacing: 1.8px; }
.auth-heading h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -1.1px; line-height: 1.5; }
.auth-heading h1 > span { color: var(--auth-blue); }
.auth-heading p { margin: 10px 0 0; color: var(--auth-muted); font-size: 13px; line-height: 1.85; }
.auth-form { display: grid; gap: 20px; }
.field-group { display: grid; gap: 9px; min-width: 0; }
.field-group > label, .field-label-row label { color: #35435b; font-size: 12px; font-weight: 650; line-height: 1.5; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-label-row a { color: var(--auth-blue); font-size: 11px; }
.field-input { width: 100%; min-width: 0; height: 49px; padding: 0 15px; border: 1px solid #dfe6f2; border-radius: 10px; outline: none; background: #fafbfe; color: var(--auth-ink); font-size: 14px !important; transition: border-color .18s, box-shadow .18s, background .18s; }
.field-input::placeholder { color: #8794a9; font-size: 12px; }
.field-input:hover { border-color: #b9c8e1; }
.field-input:focus { border-color: #7399f3; background: #fff; box-shadow: 0 0 0 3px #285ee812; }
.field-input:focus-visible { outline: none; }
.password-field { position: relative; }
.password-field .field-input { padding-right: 62px; }
.password-toggle { position: absolute; top: 8px; right: 8px; height: 33px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #637696; font-size: 11px !important; }
.password-toggle:hover, .password-toggle[aria-pressed="true"] { background: #eaf0ff; color: var(--auth-blue); }
.captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 10px; min-width: 0; }
.captcha-image { position: relative; display: grid; height: 49px; overflow: hidden; place-items: center; padding: 0; border: 1px solid #dce5f6; border-radius: 10px; background: #f0f4fd; color: #6a7c99; font-size: 11px !important; }
.captcha-image:hover { border-color: #9bb6f0; }
.captcha-image img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; background: #fff; object-fit: contain; }
.captcha-image img:not([src]), .captcha-image img[src=""] { visibility: hidden; }
.auth-help { margin: 0; color: #75829a; font-size: 10px; line-height: 1.8; }
.site-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-width: 0; min-height: 49px; padding: 0 16px; border: 1px solid #dce5f4; border-radius: 10px; background: #f1f5ff; color: #2854b4; font-size: 12px !important; font-weight: 600 !important; transition: background .18s, box-shadow .18s, transform .18s; }
.site-button:hover:not(:disabled) { border-color: #b4c8f2; background: #e8efff; }
.email-code-row .site-button { padding: 0 7px; font-size: 11px !important; }
.site-button-primary { width: 100%; border-color: #285ee8; background: linear-gradient(110deg, #3373f2, #2855d9); color: #fff; box-shadow: 0 6px 16px #285ee81f, inset 0 1px 0 #ffffff26; font-size: 14px !important; }
.site-button-primary:hover:not(:disabled) { border-color: #2456d8; background: linear-gradient(110deg, #2868e8, #224bc7); box-shadow: 0 8px 20px #285ee830; transform: translateY(-1px); }
.auth-secondary { width: 100%; border-color: #dfe6f1; background: #fff; color: #445572; }
.auth-secondary > span { font-size: 16px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; color: var(--auth-muted); font-size: 11px; line-height: 1.9; }
.checkbox-row input { width: 14px; height: 14px; flex: 0 0 14px; margin: 3px 0 0; accent-color: var(--auth-blue); cursor: pointer; }
.checkbox-row a, .auth-bottom-note a { color: var(--auth-blue); }
.checkbox-row a:hover, .auth-bottom-note a:hover, .field-label-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-divider { display: flex; align-items: center; gap: 13px; color: #7a889f; font-size: 10px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: #eaf0f7; content: ""; }
.auth-bottom-note { margin: 25px 0 0; color: #7a879e; text-align: center; font-size: 10px; line-height: 1.9; }
.page-alert { display: none; }
.page-alert.show { display: block; margin-bottom: 20px; padding: 12px 14px; border: 1px solid #f4d9dc; border-radius: 10px; background: #fff4f5; color: #ad3445; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.page-alert.success { border-color: #c4e9d9; background: #eefaf5; color: #23734f; }
.auth-layout-reset .auth-main { padding-top: 28px; padding-bottom: 24px; }
.auth-layout-reset .auth-heading { margin-bottom: 23px; }
.auth-layout-reset .auth-form { gap: 15px; }
.auth-layout-reset .auth-bottom-note { margin-top: 21px; }
.auth-footer { min-height: 64px; padding-bottom: 6px; color: #77849a; font-size: 10px; line-height: 1.8; }
.auth-footer a { display: inline-flex; gap: 12px; }
.auth-footer a:hover { color: var(--auth-blue); }

@media (max-width: 1100px) {
  .auth-topbar, .auth-footer, .auth-layout { width: calc(100% - 48px); }
  .auth-layout { grid-template-columns: 1fr 1fr; gap: 18px; }
  .auth-intro { padding: 38px 28px 28px; }
  .auth-intro h2 { font-size: 34px; }
  .auth-main { padding-right: 30px; padding-left: 30px; }
  .auth-flow { gap: 9px; padding-right: 20px; padding-left: 20px; }
  .auth-visual-checks { padding-right: 16px; padding-left: 16px; }
}

@media (max-width: 900px) {
  .auth-topbar, .auth-footer { width: calc(100% - 48px); }
  .auth-topbar { min-height: 80px; }
  .auth-intro { display: none; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); align-content: center; width: min(500px, calc(100% - 48px)); padding-top: 14px; padding-bottom: 24px; min-height: calc(100vh - 144px); min-height: calc(100svh - 144px); }
  .auth-main { padding: 38px 40px 29px; box-shadow: 0 16px 55px #16387608; }
  .auth-layout-reset .auth-main { padding: 30px 40px 26px; }
}

@media (max-width: 560px) {
  .auth-topbar, .auth-footer { width: calc(100% - 36px); }
  .auth-topbar { min-height: 76px; gap: 14px; }
  .auth-brand { gap: 9px; }
  .auth-brand img, .auth-brand-symbol { width: 33px; height: 33px; flex-basis: 33px; border-radius: 10px; }
  .auth-brand-symbol { font-size: 26px; }
  .auth-brand strong { max-width: 190px; font-size: 16px; }
  .auth-home-link { gap: 6px; font-size: 11px; }
  .auth-layout { width: calc(100% - 32px); padding-top: 8px; }
  .auth-main, .auth-layout-reset .auth-main { padding: 29px 25px 25px; border-radius: 23px; }
  .auth-heading { margin-bottom: 25px; }
  .auth-heading h1 { font-size: 30px; }
  .auth-heading p { font-size: 12px; }
  .auth-page-label { font-size: 9px; letter-spacing: 1.5px; }
  .auth-form { gap: 18px; }
  .field-input { font-size: 16px !important; }
  .auth-footer { gap: 10px; font-size: 9px; }
}

@media (max-width: 360px) {
  .auth-main, .auth-layout-reset .auth-main { padding-right: 20px; padding-left: 20px; }
  .auth-brand strong { max-width: 155px; font-size: 14px; }
  .auth-heading h1 { font-size: 27px; }
  .captcha-row { grid-template-columns: minmax(0, 1fr) 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page-body *, .auth-page-body *::before, .auth-page-body *::after { transition: none !important; }
}
