@font-face { font-family: KarmenSans; src: url('/assets/fonts/SourceHanSansCN-Regular.otf') format('opentype'); font-display: swap; }
:root { color-scheme: dark; font-family: KarmenSans, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: #f2f1eb; background: #090909; line-height: 1.6; --auth-ink: #f2f1eb; --auth-muted: #b7b8ac; --auth-border: #ffffff24; --auth-ease: cubic-bezier(.2,.75,.25,1); }
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { min-width: 280px; min-height: 100svh; margin: 0; display: flex; flex-direction: column; background: #090909; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #f2f1eb; outline-offset: 4px; }
::selection { background: #f2f1eb; color: #090909; }
.sr-only { 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 { position: fixed; top: -100px; left: 18px; z-index: 20; padding: 12px 18px; background: #f2f1eb; color: #090909; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.auth-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 84px; padding: 18px clamp(24px,4vw,64px); }
.auth-return { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; color: #b7b8ac; }
.auth-return:hover { color: #f2f1eb; }
.auth-return span { font-size: 19px; line-height: 1; }
.auth-header-label { font: 9px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; color: #a3a49a; }
.auth-main { display: flex; flex: 1; flex-direction: column; justify-content: center; width: min(1100px,100%); margin: 0 auto; padding: 28px 28px 72px; }
.auth-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(42px,7vw,92px); min-height: 450px; padding: 52px; border: 1px solid #ffffff19; border-radius: 26px; background: #151513; box-shadow: 0 24px 80px #0003; }
.auth-intro { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 28px; }
.auth-brand { display: inline-flex; align-items: center; min-height: 44px; }
.auth-brand img { display: block; width: 144px; height: auto; }
.auth-intro-copy { margin-top: 44px; }
.auth-eyebrow { margin: 0 0 12px; color: #a3a49a; font-size: 11px; line-height: 1.7; }
.auth-intro h1 { margin: 0; font-size: clamp(34px,4vw,45px); line-height: 1.35; letter-spacing: -.05em; font-weight: 400; overflow-wrap: anywhere; }
.auth-intro h1:focus { outline: none; }
.auth-intro h1:focus-visible { outline: 2px solid #f2f1eb; outline-offset: 5px; }
.auth-description { margin: 17px 0 0; color: #b7b8ac; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.auth-account { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; margin-top: 23px; padding: 2px 3px 2px 11px; border: 1px solid #ffffff21; border-radius: 8px; color: #d0d0c5; }
.auth-account-mark { flex: none; color: #b7b8ac; font-size: 13px; }
.auth-account [data-auth-email] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.auth-account-change { min-width: 44px; min-height: 44px; flex: none; padding: 8px; border: 0; border-radius: 5px; background: transparent; color: #f2f1eb; font-size: 11px; }
.auth-account-change:hover { background: #ffffff09; }
.auth-workflow { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding-top: 12px; }
.auth-step { margin: 0 0 24px; font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: #a3a49a; letter-spacing: .03em; }
.auth-form { min-width: 0; }
.auth-fields { min-width: 0; display: grid; gap: 21px; margin: 0; padding: 0; border: 0; }
.auth-field { min-width: 0; }
.auth-field label { display: block; margin-bottom: 9px; color: #d0d0c5; font-size: 13px; }
.auth-input { display: block; width: 100%; min-width: 0; min-height: 54px; margin: 0; padding: 13px 15px; border: 1px solid #ffffff30; border-radius: 8px; background: #151513; color: #f2f1eb; font-size: 16px; line-height: 1.6; transition: border-color 160ms ease, background 160ms ease; }
.auth-input::placeholder { color: #a3a49a; }
.auth-input:hover:not(:disabled) { border-color: #ffffff55; }
.auth-input:focus { border-color: #f2f1eb; background: #1d1e1a; outline: 1px solid #f2f1eb; outline-offset: 0; }
.auth-input[aria-invalid="true"] { border-color: #d59088; }
.auth-input:disabled { opacity: .5; }
.auth-input:-webkit-autofill, .auth-input:-webkit-autofill:hover, .auth-input:-webkit-autofill:focus { -webkit-text-fill-color: #f2f1eb; box-shadow: 0 0 0 1000px #1d1e1a inset; caret-color: #f2f1eb; }
.auth-field-help { margin: 10px 0 0; color: #b7b8ac; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.auth-password { position: relative; min-width: 0; }
.auth-password .auth-input { padding-right: 70px; }
.auth-password-toggle { position: absolute; top: 5px; right: 5px; min-width: 52px; min-height: 44px; padding: 9px; border: 0; border-radius: 5px; background: transparent; color: #b7b8ac; font-size: 12px; }
.auth-password-toggle:hover { color: #f2f1eb; background: #ffffff08; }
.auth-code-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; letter-spacing: .14em; }
.auth-error, .auth-status { margin: 17px 0 0; padding: 12px 14px; border: 1px solid #ffffff1c; border-radius: 8px; color: #d0d0c5; background: #ffffff03; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.auth-error { border-color: #d590883b; background: #d5908808; color: #e3aba3; }
.auth-error:empty, .auth-status:empty { display: none; }
.auth-loading { position: relative; height: 2px; margin-top: 20px; overflow: hidden; border-radius: 2px; background: #ffffff0c; }
.auth-loading span { display: block; width: 35%; height: 100%; background: #b7b8ac; animation: auth-pending 1.4s ease-in-out infinite alternate; }
@keyframes auth-pending { from { transform: translateX(0); } to { transform: translateX(185%); } }
.auth-form-help { display: flex; justify-content: flex-start; }
.auth-form-help:has([hidden]) { display: none; }
.auth-text-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 0; border: 0; border-radius: 4px; background: transparent; color: #d0d0c5; font-size: 13px; line-height: 1.7; text-align: left; }
.auth-text-button:hover:not(:disabled) { color: #f2f1eb; text-decoration: underline; text-underline-offset: 4px; }
.auth-form-help .auth-text-button { margin-top: 7px; }
.auth-fields > .auth-text-button { justify-self: start; margin-top: -6px; }
.auth-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.auth-primary, .auth-secondary { min-height: 46px; min-width: 110px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 11px 21px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; line-height: 1.7; }
.auth-primary { background: #f2f1eb; color: #151513; border-color: #f2f1eb; margin-left: auto; }
.auth-primary:hover:not(:disabled) { background: #f2f1eb; }
.auth-secondary { background: transparent; border-color: #ffffff24; color: #d0d0c5; }
.auth-secondary:hover:not(:disabled) { background: #ffffff08; color: #f2f1eb; }
.auth-actions > [data-auth-back] { min-width: 98px; margin-right: auto; }
.auth-mode-actions { margin-top: 28px; padding-top: 15px; border-top: 1px solid #ffffff0c; }
.auth-notice { min-width: 0; }
.auth-notice-symbol { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 17px; border: 1px solid #ffffff24; border-radius: 12px; color: #b7b8ac; font: 18px/1 ui-monospace, monospace; }
.auth-notice h2 { margin: 0 0 12px; color: #d0d0c5; font-size: 20px; line-height: 1.5; font-weight: 400; letter-spacing: -.03em; }
.auth-notice p { margin: 0; color: #b7b8ac; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.auth-retry { justify-self: start; }
.auth-noscript { margin: 16px 0 0; color: #c5bea0; font-size: 12px; line-height: 1.9; }
.auth-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 22px 0; color: #a3a49a; font-size: 11px; }
.auth-footer nav { display: flex; flex-wrap: wrap; gap: 26px; }
.auth-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #a3a49a; }
.auth-footer a:hover { color: #f2f1eb; }
@media (max-width: 1000px) {
  .auth-card { gap: 46px; padding: 40px; }
  .auth-main { padding-inline: 24px; }
}
@media (max-width: 760px) {
  .auth-header { min-height: 68px; padding: 12px 24px; }
  .auth-main { flex: 0 1 auto; justify-content: flex-start; padding: 24px 20px 40px; max-width: 540px; }
  .auth-card { grid-template-columns: minmax(0, 1fr); gap: 30px; min-height: 0; padding: 32px; border-radius: 20px; }
  .auth-intro { padding: 0; }
  .auth-brand img { width: 132px; }
  .auth-intro-copy { margin-top: 29px; }
  .auth-eyebrow { font-size: 10px; margin-bottom: 9px; }
  .auth-intro h1 { font-size: 33px; }
  .auth-description { margin-top: 12px; font-size: 14px; }
  .auth-account { margin-top: 18px; }
  .auth-workflow { padding: 0; }
  .auth-step { margin-bottom: 20px; }
  .auth-actions { margin-top: 27px; }
  .auth-mode-actions { margin-top: 22px; }
  .auth-footer { padding-inline: 5px; }
}
@media (max-width: 420px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .auth-header { padding: max(10px,env(safe-area-inset-top)) 20px 8px; }
  .auth-header-label { font-size: 8px; letter-spacing: .08em; }
  .auth-main { padding: 12px 12px 25px; }
  .auth-card { padding: 26px 22px; border-radius: 16px; gap: 25px; }
  .auth-brand img { width: 124px; }
  .auth-intro-copy { margin-top: 24px; }
  .auth-intro h1 { font-size: 31px; }
  .auth-field label { font-size: 14px; }
  .auth-input { min-height: 54px; padding-left: 12px; }
  .auth-primary, .auth-secondary { min-width: 100px; min-height: 48px; padding-inline: 17px; }
  .auth-actions { gap: 9px; }
  .auth-footer { gap: 12px; padding-top: 8px; font-size: 10px; }
  .auth-footer nav { gap: 17px; }
}
@media (max-height: 650px) and (min-width: 761px) {
  .auth-header { min-height: 62px; padding-block: 8px; }
  .auth-main { justify-content: flex-start; padding-top: 14px; padding-bottom: 24px; }
  .auth-card { min-height: 410px; padding-block: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .auth-loading span { width: 100%; opacity: .65; }
}
