:root { --canvas: #f7f8f5; --surface: #fff; --ink: #233e33; --muted: #59675e; --green: #2d7055; --green-dark: #20543f; --sage: #e8f0e8; --line: #e0e6de; --red: #aa4449; --red-bg: #fff0f0; --text-body: 16px; --text-caption: 14px; }
.auth-page { display: flow-root; color: var(--ink); background: var(--canvas); font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif; font-size: 16px; line-height: 1.6; }
.auth-page h1, .auth-page h2, .auth-page p { margin: 0; }
.auth-page h1, .auth-page h2 { color: var(--ink); }
.brand { color: var(--ink); text-decoration: none; }
.skip-link:focus { position: fixed; top: 8px; left: 20px; z-index: 200; background: white; padding: 12px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #72a487; outline-offset: 3px; }
.brand-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.eyebrow { display: inline-block; font-size: var(--text-caption); font-weight: 700; letter-spacing: 1.5px; color: var(--green); }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 750; line-height: 1.4; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; background: var(--green); color: white; border-radius: 13px 13px 13px 4px; flex-shrink: 0; }
.brand-mark .brand-icon { width: 26px; height: 26px; stroke-width: 1.5; }
.brand-copy { display: block; min-width: 0; }
.brand-name { display: block; white-space: nowrap; }
.brand-sub { display: block; margin-top: 3px; font-size: var(--text-caption); font-weight: 500; line-height: 1.45; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.auth-layout { max-width: 1120px; margin: 54px auto; padding: 0 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); gap: 70px; align-items: start; }
.auth-story { min-height: 590px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px 0; }
.auth-story .brand { font-size: 28px; gap: 14px; }
.auth-story .brand-name { line-height: 1.25; }
.auth-story .brand-sub { margin-top: 4px; font-size: var(--text-body); }
.auth-story .brand-mark { width: 56px; height: 56px; }
.auth-story .brand-mark .brand-icon { width: 32px; height: 32px; }
.auth-story h2 { margin-top: 22px; font-size: 42px; line-height: 1.55; letter-spacing: -1px; }
.auth-story > div > p { color: var(--muted); margin-top: 18px; font-size: 16px; line-height: 1.9; }
.auth-story-symbol { display: flex; align-items: flex-end; gap: 24px; color: #75927a; padding-top: 28px; }
.auth-story-symbol .brand-icon:first-child { width: 94px; height: 94px; stroke-width: .8; }
.auth-story-symbol .brand-icon:last-child { width: 40px; height: 40px; margin-bottom: 14px; stroke-width: 1; }
.auth-story-foot { font-size: var(--text-caption); color: var(--muted); letter-spacing: 3px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: 0 12px 42px #233e3307; }
.auth-card h1 { margin: 12px 0 10px; font-size: 28px; }
.auth-card .auth-intro { color: var(--muted); font-size: var(--text-body); margin-bottom: 26px; }
.auth-card .auth-notice { margin-bottom: 20px; font-size: var(--text-body); }
.auth-field { margin: 20px 0; }
.auth-field > label { display: block; font-size: var(--text-body); font-weight: 650; margin-bottom: 9px; }
.auth-input-wrap { display: flex; position: relative; align-items: center; }
.auth-input-wrap input { width: 100%; min-width: 0; height: 48px; border: 1px solid #bccbbe; border-radius: 8px; background: #fcfdfb; padding: 11px 14px; color: var(--ink); font-size: 16px; }
.auth-input-wrap:has(button) input { padding-right: 64px; }
.auth-input-wrap input[aria-invalid='true'] { border-color: var(--red); }
.auth-input-wrap > button { position: absolute; right: 3px; min-width: 52px; min-height: 44px; justify-content: center; font-size: var(--text-caption); }
.auth-card .auth-field-error { color: var(--red); font-size: var(--text-caption); margin-top: 6px; }
.auth-field-error:empty { display: none; }
.auth-errors { border: 1px solid #e4b5b5; border-radius: 9px; background: var(--red-bg); color: #8c3239; padding: 14px; font-size: var(--text-body); }
.auth-errors ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.8; }
.auth-errors a { text-decoration: underline; text-underline-offset: 3px; }
.auth-errors:focus-visible, .auth-card h1:focus-visible { outline: 3px solid #72a487; outline-offset: 4px; }
.auth-submit { width: 100%; min-height: 48px; margin-top: 6px; justify-content: center; }
.auth-card .auth-contact { color: var(--muted); font-size: var(--text-caption); margin-top: 18px; text-align: center; }
.auth-identity { display: flex; align-items: center; gap: 9px; font-size: var(--text-body); background: var(--sage); padding: 12px; border-radius: 8px; }
.auth-footer-actions { display: flex; justify-content: center; gap: 28px; margin-top: 18px; }
.auth-footer-actions .text-button, .auth-secondary { min-height: 44px; }

.auth-card { min-width: 0; }
.auth-errors { overflow-wrap: anywhere; }
.auth-errors a { color: inherit; }
.auth-submit { gap: 10px; border-radius: 8px; font-size: 16px; }
.auth-page .button.primary { background: var(--green); }
.auth-identity { overflow-wrap: anywhere; }
@media (max-width: 960px) { .auth-layout { gap: 36px; margin-top: 32px; } .auth-story h2 { font-size: 34px; } .auth-card { padding: 26px; } }
@media (max-width: 760px) {
  .auth-layout { display: block; max-width: 480px; padding: 0 18px; margin: 24px auto 40px; }
  .auth-story { min-height: 0; padding: 0 8px 24px; }
  .auth-story .brand { font-size: 24px; gap: 12px; }
  .auth-story .brand-mark { width: 48px; height: 48px; }
  .auth-story .brand-mark .brand-icon { width: 28px; height: 28px; }
  .auth-story > div, .auth-story-foot { display: none; }
  .auth-card { border-radius: 14px; padding: 26px 22px; }
  .auth-card h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .auth-page * { transition: none !important; } }
