/* 独立登录页，不加载工作区、表格或第三方组件样式。 */
:root {
  color-scheme: light;
  --auth-bg: #f5f7fc; --auth-panel: #fff; --auth-ink: #172033;
  --auth-muted: #5b6780; --auth-primary: #2563eb; --auth-primary-hover: #1d4ed8;
  --auth-border: #dde5f2; --auth-soft: #eaf2ff; --auth-error: #b42332;
  --auth-input-border: #8493a9;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
[hidden] { display: none !important; }
.auth-page {
  min-height: 100vh; min-height: 100svh; color: var(--auth-ink); font-size: 16px; line-height: 1.6;
  display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 6% 48%, #e8efff 0, transparent 54%), var(--auth-bg);
}
.auth-header { width: min(1280px, 100%); margin: 0 auto; padding: 28px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.auth-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; letter-spacing: -.3px; }
.auth-brand-mark { width: 38px; height: 38px; border: 1px solid #dce8ff; border-radius: 12px; background: var(--auth-soft); color: var(--auth-primary); display: grid; place-items: center; flex: none; }
.auth-brand-mark svg { width: 24px; height: 24px; }
.auth-edition { color: var(--auth-muted); font-size: 13px; }
.auth-layout { width: min(1120px, 100%); margin: auto; padding: 48px 40px 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 100px; align-items: center; }
.auth-eyebrow { margin: 0 0 16px; color: var(--auth-primary); font-size: 13px; font-weight: 700; letter-spacing: 2px; }
.auth-intro h2 { margin: 0 0 20px; font-size: clamp(30px, 3vw, 42px); line-height: 1.45; letter-spacing: -1px; font-weight: 700; }
.auth-description { color: var(--auth-muted); margin: 0; font-size: 15px; line-height: 1.9; }
.auth-workflow { margin-top: 36px; padding: 22px 24px; border: 1px solid #dbe5f8; border-radius: 18px; background: #ffffffb8; box-shadow: 0 12px 36px #27498906; }
.auth-workflow-heading { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.auth-flow-symbol { color: var(--auth-primary); width: 22px; height: 22px; flex: none; }
.auth-flow-tag { margin-left: auto; padding: 3px 9px; border-radius: 6px; color: #2456a7; background: var(--auth-soft); font-size: 12px; white-space: nowrap; }
.auth-steps { padding: 0; margin: 22px 0 0; list-style: none; }
.auth-steps li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.auth-steps li:last-child { padding-bottom: 0; }
.auth-steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 6px; border-left: 1px dashed #c8d8ef; }
.auth-steps li > span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; background: var(--auth-soft); color: #2456a7; border-radius: 10px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.auth-steps strong { display: block; font-size: 14px; }
.auth-steps p { margin: 3px 0 0; color: var(--auth-muted); font-size: 13px; }
.auth-features { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; color: var(--auth-muted); font-size: 13px; }
.auth-features span { display: flex; align-items: center; gap: 8px; }
.auth-features span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--auth-primary); }
.auth-card { min-width: 0; padding: 36px; border: 1px solid var(--auth-border); border-radius: 20px; background: var(--auth-panel); box-shadow: 0 20px 64px #2847790c, 0 2px 6px #28477904; }
.auth-card-kicker { color: var(--auth-primary); font-size: 12px; font-weight: 600; }
.auth-card h1 { margin: 8px 0 8px; font-size: 28px; line-height: 1.4; letter-spacing: -.5px; }
.auth-card-heading > p { margin: 0; color: var(--auth-muted); font-size: 14px; }
.auth-form { display: grid; gap: 22px; margin-top: 30px; }
.auth-field { min-width: 0; }
.auth-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.auth-field input { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--auth-input-border); border-radius: 9px; background: var(--auth-panel); color: var(--auth-ink); font-size: 16px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
.auth-field input::placeholder { color: #69758b; opacity: 1; }
.auth-field input:hover { border-color: #647c9f; }
.auth-field input:focus { border-color: var(--auth-primary); outline: 2px solid var(--auth-primary); outline-offset: 2px; box-shadow: 0 0 0 5px #2563eb0b; }
.auth-password { position: relative; }
.auth-password:has(.auth-password-toggle:not([hidden])) input { padding-right: 68px; }
.auth-password-toggle { position: absolute; right: 3px; top: 3px; min-width: 56px; min-height: 44px; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: var(--auth-muted); font-size: 13px; cursor: pointer; }
.auth-password-toggle:hover { color: var(--auth-primary); background: var(--auth-soft); }
.auth-submit { width: 100%; min-height: 48px; margin-top: 2px; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 16px; border: 0; border-radius: 9px; background: var(--auth-primary); color: white; font-weight: 600; cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.auth-submit svg { width: 18px; height: 18px; flex: none; }
.auth-submit:hover { background: var(--auth-primary-hover); box-shadow: 0 4px 14px #2563eb26; }
.auth-submit:active { background: #1e40af; }
.auth-submit:disabled { background: #4b6eaf; cursor: wait; box-shadow: none; }
.auth-help { margin: -6px 0 0; color: var(--auth-muted); font-size: 12px; line-height: 1.8; }
.auth-version { border-top: 1px solid var(--auth-border); margin-top: 26px; padding-top: 16px; text-align: center; }
.auth-version a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 4px; padding: 4px 10px; color: var(--auth-primary); font-size: 13px; text-decoration: none; border-radius: 6px; }
.auth-version a:hover { background: var(--auth-soft); text-decoration: underline; text-underline-offset: 4px; }
.auth-feedback { margin-top: 22px; padding: 12px 14px; color: var(--auth-error); background: #fff4f3; border: 1px solid #f0bcc1; border-radius: 9px; font-size: 14px; overflow-wrap: anywhere; }
.auth-feedback p { margin: 0; }
.auth-feedback p + p { margin-top: 6px; }
.auth-feedback:focus { outline: 2px solid var(--auth-error); outline-offset: 3px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--auth-primary); outline-offset: 3px; }
.auth-footer { padding: 12px 24px max(24px, env(safe-area-inset-bottom)); text-align: center; color: var(--auth-muted); font-size: 12px; }
.auth-page-mobile .auth-intro { display: none; }
.auth-page-mobile .auth-layout { max-width: 500px; grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
@media (max-width: 1050px) { .auth-layout { gap: 48px; } .auth-wide-break { display: none; } }
@media (max-width: 820px) {
  .auth-intro { display: none; }
  .auth-layout { max-width: 500px; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 32px 24px 48px; }
  .auth-header { padding: 24px; }
  .auth-edition { display: none; }
}
@media (max-width: 480px) {
  .auth-header { padding: max(24px, env(safe-area-inset-top)) 24px 12px; }
  .auth-brand { font-size: 18px; gap: 10px; }
  .auth-layout, .auth-page-mobile .auth-layout { padding: 24px 16px 32px; }
  .auth-card { padding: 28px 24px 20px; border-radius: 16px; }
  .auth-card h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
