:root {
  color-scheme: light;
  --auth-ink: #172438;
  --auth-muted: #637489;
  --auth-blue: #1557a0;
  --auth-teal: #1a8f91;
  --auth-line: #d6e0e8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--auth-ink);
  background: #edf4f8;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: var(--auth-blue); text-underline-offset: 3px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:where(a, button, input):focus-visible { outline: 3px solid var(--auth-teal); outline-offset: 4px; }
.auth-skip { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px; background: white; transform: translateY(-200%); }
.auth-skip:focus { transform: translateY(0); }
.auth-shell { width: min(1180px, calc(100% - 96px)); min-height: 100svh; margin: auto; display: flex; flex-direction: column; }
.auth-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 0; }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--auth-ink); text-decoration: none; font-weight: 750; font-size: 19px; white-space: nowrap; }
.auth-brand svg { width: 42px; height: 42px; padding: 7px; border-radius: 13px; background: var(--auth-blue); fill: none; stroke: white; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-brand small { display: block; margin-top: 4px; font-size: 11px; font-weight: 450; color: var(--auth-muted); }
.auth-environment { max-width: 360px; padding: 7px 12px; border: 1px solid var(--auth-line); border-radius: 6px; color: var(--auth-muted); font-size: 12px; line-height: 1.4; text-align: right; }
.auth-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 450px); align-items: center; gap: clamp(48px, 7vw, 100px); padding: 32px 0 64px; }
.auth-intro { padding: 12px 0; }
.auth-eyebrow { color: var(--auth-teal); font-size: 12px; font-weight: 700; letter-spacing: .08em; margin: 0 0 24px; }
.auth-intro h1 { font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: clamp(38px, 4.4vw, 56px); font-weight: 750; line-height: 1.13; letter-spacing: -.045em; margin: 0 0 24px; }
.auth-intro h1 span { color: var(--auth-blue); }
.auth-description { max-width: 395px; font-size: 17px; line-height: 1.65; color: var(--auth-muted); margin: 0; }
.auth-route { position: relative; width: 100%; max-width: 420px; height: 172px; margin-top: 35px; color: var(--auth-ink); font-size: 12px; }
.auth-route-line { width: 100%; height: 100%; position: absolute; inset: 0; stroke: #bfd0de; stroke-width: 1.5; }
.auth-route-document, .auth-route-result, .auth-route-accounting { position: absolute; display: flex; align-items: center; gap: 9px; padding: 12px 16px; background: #fff; border: 1px solid var(--auth-line); border-radius: 9px; box-shadow: 0 4px 12px rgb(23 36 56 / 3%); }
.auth-route-document { top: 12px; left: 0; }
.auth-route-document svg { width: 27px; height: 27px; stroke: var(--auth-blue); stroke-width: 1.5; fill: none; stroke-linejoin: round; }
.auth-route-result { right: 0; top: 85px; }
.auth-route-dot { width: 7px; height: 7px; background: var(--auth-teal); border-radius: 50%; }
.auth-route-accounting { bottom: 0; left: 48px; color: var(--auth-blue); }
.auth-card { min-width: 0; padding: 40px; border: 1px solid var(--auth-line); border-radius: 18px; background: #fff; box-shadow: 0 18px 60px rgb(23 36 56 / 6%); }
.auth-card-kicker { font-size: 12px; color: var(--auth-teal); font-weight: 650; margin: 0 0 12px; }
.auth-card h2 { font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: 28px; line-height: 1.22; letter-spacing: -.03em; margin: 0 0 15px; }
.auth-card-description { margin: 0 0 28px; color: var(--auth-muted); font-size: 14px; line-height: 1.65; }
.auth-form { display: grid; gap: 20px; }
.auth-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 650; }
.auth-input-wrap { position: relative; }
.auth-field input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #b9c9d7; border-radius: 8px; color: var(--auth-ink); background: #fbfdff; font-size: 15px; transition: border-color .15s; }
.auth-field input:hover { border-color: #879db1; }
.auth-field input:focus { border-color: var(--auth-blue); background: white; }
.auth-input-wrap--password:has(button:not([hidden])) input { padding-right: 92px; }
.auth-password-toggle { position: absolute; top: 4px; right: 5px; min-height: 40px; padding: 8px; border: 0; border-radius: 5px; color: var(--auth-blue); background: transparent; font-size: 12px; font-weight: 650; }
.auth-password-toggle:hover { background: #edf4f8; }
.auth-submit { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 49px; margin-top: 4px; padding: 13px 18px; border: 1px solid var(--auth-blue); border-radius: 8px; background: var(--auth-blue); color: white; font-size: 14px; font-weight: 650; text-decoration: none; }
.auth-submit:hover { background: #104783; }
.auth-submit span { font-size: 21px; line-height: 1; }
.auth-assistance { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--auth-line); font-size: 12px; line-height: 1.65; }
.auth-assistance strong { font-weight: 650; }
.auth-assistance p { margin: 6px 0 0; color: var(--auth-muted); }
.auth-field-help, .auth-note { margin-top: 8px; color: var(--auth-muted); font-size: 12px; line-height: 1.55; }
.auth-note { margin-top: 24px; }
.auth-field-help ul { padding-left: 18px; margin: 6px 0; }
.auth-field--error input { border-color: #a13737; }
.auth-field-errors { font-size: 12px; color: #a13737; line-height: 1.5; margin-top: 8px; }
.auth-field-errors ul, .auth-error-summary ul { list-style: none; padding: 0; margin: 6px 0 0; }
.auth-error-summary { border: 1px solid #e9c4c4; border-radius: 8px; background: #fff5f5; padding: 14px; font-size: 12px; color: #873030; line-height: 1.55; }
.auth-back { display: inline-flex; min-height: 40px; align-items: center; margin: -10px 0 20px; font-size: 12px; text-decoration: none; }
.auth-success-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #e6f4f0; color: #147566; font-size: 26px; margin-bottom: 24px; }
.auth-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 26px; border-top: 1px solid var(--auth-line); color: var(--auth-muted); font-size: 11px; line-height: 1.5; }
@media (max-width: 850px) {
  .auth-shell { width: min(100% - 48px, 560px); }
  .auth-header { padding: 24px 0; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 20px 0 40px; }
  .auth-intro { padding: 0; }
  .auth-intro h1 { font-size: 36px; margin-bottom: 12px; }
  .auth-eyebrow { margin-bottom: 12px; }
  .auth-description { font-size: 14px; max-width: none; }
  .auth-route { display: none; }
  .auth-card { padding: 32px; }
}
@media (max-width: 480px) {
  .auth-shell { width: calc(100% - 32px); }
  .auth-header { gap: 12px; }
  .auth-brand { font-size: 16px; gap: 9px; }
  .auth-brand svg { width: 36px; height: 36px; }
  .auth-brand small { font-size: 10px; }
  .auth-environment { max-width: 135px; font-size: 10px; padding: 6px 8px; }
  .auth-card { padding: 26px 22px; border-radius: 14px; }
  .auth-card h2 { font-size: 25px; }
  .auth-intro h1 { font-size: 32px; }
  .auth-layout { padding-top: 8px; }
  .auth-footer { flex-direction: column; gap: 5px; padding-block: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
