:root {
  color-scheme: light;
  --brand: #3649fd; --brand-hover: #293ce6; --brand-soft: #eef0ff;
  --ink: #171d2e; --muted: #68728a; --line: #dce1ec; --field-border: #8792a8;
  --panel: #f4f6fc; --white: #fff; --error: #bc303d; --error-soft: #fff1f2;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink); background: var(--white); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button, a, input[type="checkbox"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button, input, a { transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
button:disabled { cursor: wait; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.small { width: 16px; height: 16px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9; top: 12px; left: 12px; padding: 12px; background: white; }
.header { max-width: 1680px; margin: auto; height: 96px; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 22px; }
.brand img { width: 151px; height: auto; display: block; }
.brand-divider { width: 1px; height: 25px; background: var(--line); }
.brand-product { font-size: 16px; font-weight: 650; letter-spacing: .4px; }
.brand-product span { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 9px; letter-spacing: 0; }
.header-link { display: flex; align-items: center; gap: 9px; padding: 10px 0 10px 14px; min-height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.header-link:hover { color: var(--brand); }
.header-link .small { margin-left: 7px; }
.layout { display: grid; grid-template-columns: 55% 45%; max-width: 1680px; padding: 0 24px; margin: auto; min-height: max(684px, calc(100svh - 156px)); }
.brand-panel { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 53px 56px 35px; background: var(--panel); border: 1px solid #eef0f6; border-radius: 20px; overflow: hidden; }
.brand-panel::before { content: ""; position: absolute; top: -160px; right: -120px; width: 550px; height: 550px; border: 1px solid #e7ebf5; border-radius: 50%; pointer-events: none; }
.brand-panel::after { content: ""; position: absolute; top: -126px; right: -86px; width: 482px; height: 482px; border: 1px solid #e7ebf5; border-radius: 50%; pointer-events: none; }
.brand-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #586683; font-size: 11px; font-weight: 600; letter-spacing: 2.4px; }
.brand-dot { width: 6px; height: 6px; background: var(--brand); border-radius: 1px; }
h1 { margin: 24px 0 18px; font-size: clamp(38px, 3.55vw, 56px); line-height: 1.35; font-weight: 650; letter-spacing: -1.6px; }
h1 span { color: var(--brand); }
.brand-description { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.geometry { position: relative; z-index: 1; width: calc(100% + 44px); max-width: 660px; align-self: center; flex: 1; display: flex; align-items: center; min-height: 240px; margin: -12px -22px -10px; }
.geometry svg { width: 100%; max-height: 330px; overflow: visible; }
.capabilities { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 14px; padding-top: 24px; border-top: 1px solid #dce2f0; }
.capabilities > div { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #536078; white-space: nowrap; }
.capabilities .icon { width: 18px; height: 18px; color: #5e6d8d; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 46px 40px; }
.login-content { width: 100%; max-width: 384px; }
.login-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #626d87; letter-spacing: .5px; }
.login-eyebrow > span { width: 7px; height: 7px; background: var(--brand); transform: rotate(45deg); border-radius: 1px; }
h2 { font-size: 32px; letter-spacing: -.8px; line-height: 1.4; font-weight: 650; margin: 15px 0 8px; }
.login-description { color: var(--muted); font-size: 14px; margin: 0 0 34px; line-height: 1.7; }
.auth-notice { margin: -17px 0 23px; padding: 10px 12px; border: 1px solid #c6dfd4; border-radius: 6px; background: #f0faf5; color: #27634c; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.field-hint { color: #596682; font-size: 12px; line-height: 1.7; margin: 8px 0 0; }
.register-panel .login-description { margin-bottom: 24px; }
.field { margin-bottom: 6px; }
.field > label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 550; }
.field input { display: block; width: 100%; height: 52px; background: var(--white); padding: 0 15px; color: var(--ink); border: 1px solid var(--field-border); border-radius: 8px; font-size: 15px; }
.field input::placeholder { color: #747d90; opacity: 1; }
.field input:hover { border-color: #596682; }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #3649fd12; outline: none; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 50px; }
.password-toggle { display: grid; place-items: center; position: absolute; width: 44px; height: 44px; top: 4px; right: 4px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; }
.password-toggle:hover { background: var(--panel); color: var(--ink); }
.field-error { min-height: 20px; margin: 4px 0 0; font-size: 12px; color: var(--error); line-height: 20px; }
.form-options { margin: -5px 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.remember { display: flex; align-items: center; min-height: 44px; gap: 8px; cursor: pointer; color: #576079; }
.remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.text-button { min-height: 44px; border: 0; padding: 0; color: var(--brand); background: transparent; font-size: 13px; }
a.text-button { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.text-button:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 4px; }
.form-error { margin: 0 0 14px; padding: 10px 13px; border: 1px solid #edbcc2; color: var(--error); background: var(--error-soft); font-size: 13px; line-height: 1.6; border-radius: 6px; }
.submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; border: 1px solid var(--brand); border-radius: 8px; color: var(--white); background: var(--brand); font-size: 15px; font-weight: 550; box-shadow: 0 4px 10px #3649fd15; }
.submit:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.submit:active { background: #2235d7; }
.submit:disabled { background: #5363e0; border-color: #5363e0; }
.submit[aria-busy="true"] > .icon { display: none; }
.spinner { height: 17px; width: 17px; border: 2px solid #ffffff55; border-top-color: white; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.signup { display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.signup button { display: inline-flex; align-items: center; gap: 4px; }
.explore { margin-top: 25px; padding-top: 23px; border-top: 1px solid #e8ebf2; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.explore-link { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #394662; padding: 0; min-height: 44px; font-size: 13px; }
.explore-link:hover { color: var(--brand); }
.footer { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 14px 48px; max-width: 1680px; margin: auto; font-size: 11px; letter-spacing: .3px; color: #727b8e; gap: 12px; }
dialog { max-width: 430px; width: calc(100% - 40px); padding: 34px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); box-shadow: 0 20px 80px #171d2e22; }
dialog::backdrop { background: #1b234755; }
dialog h2 { font-size: 25px; margin-top: 15px; }
dialog p { color: var(--muted); font-size: 14px; line-height: 1.85; margin-bottom: 26px; }
.dialog-kicker { color: var(--brand); font-size: 12px; letter-spacing: 1px; }
.close-dialog { display: grid; place-items: center; position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border: 0; color: var(--muted); background: transparent; border-radius: 6px; }
.close-dialog:hover { background: var(--panel); }
@media (min-width: 1600px) { .brand-panel { padding: 64px 72px 40px; } }
@media (max-width: 1100px) {
  .header { padding: 0 32px; } .brand { gap: 15px; } .brand-product span { display: none; }
  .layout { grid-template-columns: 51% 49%; padding: 0 20px; }
  .brand-panel { padding: 48px 32px 32px; } h1 { font-size: 38px; letter-spacing: -1.3px; }
  .login-panel { padding: 36px 32px; } .capabilities { gap: 9px; }
  .capabilities > div { font-size: 12px; gap: 5px; } .capabilities .icon { width: 16px; height: 16px; }
}
@media (max-width: 899px) {
  .header { height: 88px; padding: 0 32px; } .brand img { width: 136px; }
  .layout { display: block; min-height: calc(100svh - 148px); padding: 0; }
  .brand-panel { display: none; } .login-panel { min-height: calc(100svh - 148px); padding: 44px 32px 48px; background: radial-gradient(ellipse at 50% 0, #f3f5ff, #fff 60%); }
  .login-content { max-width: 400px; } .footer { padding: 14px 32px; }
}
@media (max-width: 480px) {
  .header { height: 82px; padding: 0 24px; } .brand img { width: 126px; } .brand-divider, .brand-product { display: none; }
  .header-link { font-size: 12px; gap: 7px; } .header-link .small { display: none; } .header-link .icon { width: 18px; height: 18px; }
  .layout { min-height: calc(100svh - 140px); }
  .login-panel { min-height: calc(100svh - 140px); padding: 32px 28px 38px; }
  h2 { font-size: 30px; } .login-description { font-size: 13px; margin-bottom: 30px; }
  .field input { font-size: 16px; } .explore { margin-top: 22px; padding-top: 18px; }
  .footer { min-height: 58px; padding: 14px 24px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .spinner { border-top-color: white; border-right-color: white; }
}

/* Account recovery shares the login page's brand and form primitives. */
.recovery-content { max-width: 384px; }
#flow-content { min-height: 365px; }
.recovery-content .login-description { margin-bottom: 26px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #596682; font-size: 13px; text-decoration: none; margin-bottom: 24px; }
.back-link .icon { transform: rotate(180deg); }
.back-link:hover { color: var(--brand); }
.recovery-steps { list-style: none; display: flex; justify-content: space-between; gap: 8px; padding: 0; margin: 24px 0 32px; }
.recovery-steps li { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #68728a; }
.recovery-steps li > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #eef0f5; color: #596682; font-size: 11px; }
.recovery-steps li.current { color: var(--brand); font-weight: 600; }
.recovery-steps li.current > span { background: var(--brand); color: white; }
.recovery-steps li.done > span { background: var(--brand-soft); color: var(--brand); }
.recovery-steps .icon { width: 14px; height: 14px; }
.state-icon { width: 64px; height: 64px; border: 1px solid #dce1ff; background: var(--brand-soft); color: var(--brand); border-radius: 18px; display: grid; place-items: center; margin: 24px 0 22px; }
.state-icon .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.delivery-hint { color: #596682; font-size: 13px; line-height: 1.8; margin: 0 0 24px; }
.recovery-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.recovery-help { display: flex; justify-content: center; border-top: 1px solid #e8ebf2; margin-top: 20px; padding-top: 10px; }
.mail-mode-note { color: #596682; background: #f4f6fc; border: 1px solid #e1e5f0; border-radius: 8px; font-size: 12px; line-height: 1.8; padding: 12px 14px; margin: 18px 0 0; overflow-wrap: anywhere; }
.bound-email { font-size: 13px; line-height: 1.8; color: #596682; background: var(--panel); padding: 12px; border-radius: 8px; overflow-wrap: anywhere; margin-bottom: 24px; }
.bind-hint { margin: 0 0 20px; }
a.submit { text-decoration: none; }
.submit:disabled, .text-button:disabled { cursor: default; }
.text-button:disabled { color: #68728a; text-decoration: none; }
#dialog-body { white-space: pre-line; overflow-wrap: anywhere; }
#login-heading:focus { outline: none; }
@media (max-width: 480px) { .recovery-panel { align-items: flex-start; } .back-link { margin-bottom: 20px; } #flow-content { min-height: 355px; } .recovery-steps { gap: 4px; } .recovery-steps li { font-size: 11px; gap: 5px; } }
