.auth-page {
  --auth-accent:#4963e8;
  --auth-accent-hover:#354bd0;
  --auth-ink:#171c2c;
  --auth-muted:#657086;
  --auth-line:#dce3ef;
  --auth-surface:#fff;
  --auth-input:#fff;
  --auth-soft:#eef2ff;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  gap:0;
  min-height:100dvh;
  margin:0;
  padding:0;
  background:#eaf3ff;
  color:var(--auth-ink);
  font-weight:400;
  letter-spacing:0;
}
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing:border-box; letter-spacing:0; }
.auth-logo { display:flex; align-items:center; flex-shrink:0; min-height:49px; text-decoration:none; color:var(--auth-ink); }
.auth-page .auth-logo .brand-mark { font-size:32px; font-weight:800; line-height:1.2; }
.auth-logo .brand-mark-dot { color:#2161d7; }
.auth-contact { color:var(--auth-muted); font-size:13px; font-weight:600; line-height:1.5; text-decoration:none; white-space:nowrap; }
.auth-contact:hover { color:var(--auth-accent); text-decoration:underline; }
.auth-workspace { display:flex; flex:1 0 auto; align-items:center; justify-content:center; min-width:0; width:100%; padding:48px 24px; }
.auth-page .auth-card { position:relative; width:440px; max-width:100%; margin:0; padding:36px; border:1px solid var(--auth-line); border-top:3px solid var(--auth-accent); border-radius:8px; background:var(--auth-surface); box-shadow:0 12px 40px #243a7010; }
.auth-page .auth-card--wide { width:540px; }
.auth-eyebrow { margin:0 0 8px; color:var(--auth-accent); font-size:12px; font-weight:700; line-height:1.5; }
.auth-page .auth-card h1 { color:var(--auth-ink); font-size:30px; font-weight:750; line-height:1.25; margin:0 0 36px; }
.auth-page .auth-card p { color:var(--auth-muted); font-size:14px; font-weight:400; line-height:1.65; margin:0 0 24px; }
.auth-page .auth-card .auth-account { margin-top:-12px; margin-bottom:24px; }
.auth-page .auth-card .auth-account strong { color:var(--auth-ink); overflow-wrap:anywhere; }
.auth-page .auth-card form { width:100%; max-width:none; margin:0; }
.auth-page .auth-card label { display:block; margin:0 0 22px; color:var(--auth-ink); font-size:14px; font-weight:600; line-height:1.5; }
.auth-page .auth-card input:not([type=hidden]) { width:100%; min-width:0; min-height:54px; border:1px solid #ccd5e5; border-radius:6px; margin-top:9px; padding:12px 15px; background:var(--auth-input); color:var(--auth-ink); font:400 16px/1.5 Inter,system-ui,sans-serif; box-shadow:none; }
.auth-page .auth-card input:not([type=hidden]):hover { border-color:#a5b4d0; }
.auth-page .auth-card input:not([type=hidden]):focus { outline:3px solid #4963e826; outline-offset:1px; border-color:var(--auth-accent); }
.auth-page a { text-underline-offset:3px; }
.auth-page .auth-card a { color:var(--auth-accent); }
.auth-page .auth-card a:hover { color:var(--auth-accent-hover); }
.auth-field-heading { display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin-bottom:0; }
.auth-page .auth-field-heading label { margin-bottom:0; }
.auth-field-heading a { font-size:12px; font-weight:500; line-height:1.5; text-decoration:none; }
.auth-field-heading a:hover { text-decoration:underline; }
.auth-page .auth-card .auth-password { margin-bottom:24px; }
.auth-page .auth-card .auth-password-label { margin-bottom:0; }
.auth-password-control { position:relative; margin:9px 0 22px; }
.auth-page .auth-card .auth-password-control input { display:block; margin:0; padding-right:56px; }
.auth-page .auth-card .auth-password-toggle { position:absolute; top:6px; right:6px; display:flex; align-items:center; justify-content:center; width:42px; height:42px; min-height:0; margin:0; padding:10px; border:0; border-radius:4px; background:transparent; color:var(--auth-muted); cursor:pointer; box-shadow:none; }
.auth-page .auth-card .auth-password-toggle:hover,
.auth-page .auth-card .auth-password-toggle[aria-pressed=true] { background:var(--auth-soft); color:var(--auth-accent); }
.auth-page .auth-card [data-login-form] .auth-password-control { margin-bottom:0; }
.auth-caps-warning { display:block; margin-top:8px; color:#9b4c0b; font-size:12px; line-height:1.5; }
.auth-caps-warning[hidden] { display:none; }
.auth-forgot { display:flex; justify-content:flex-end; margin:12px 0 26px; }
.auth-forgot a { font-size:12px; font-weight:500; line-height:1.5; text-decoration:none; }
.auth-forgot a:hover { text-decoration:underline; }
.auth-page .auth-card .btn { display:inline-flex; align-items:center; justify-content:center; width:auto; min-width:0; min-height:50px; margin:0; padding:12px 18px; border-radius:6px; font-size:14px; line-height:1.5; font-weight:650; white-space:normal; text-align:center; text-decoration:none; box-shadow:none; }
.auth-page .auth-card .btn-primary { color:#fff; background:var(--auth-accent); border:1px solid var(--auth-accent); box-shadow:0 4px 12px #4963e81a; }
.auth-page .auth-card .btn-primary:hover:not(:disabled) { color:#fff; background:var(--auth-accent-hover); border-color:var(--auth-accent-hover); }
.auth-page .auth-card .btn-primary:disabled { opacity:.55; cursor:wait; }
.auth-page .auth-card .btn-secondary { color:var(--auth-ink); background:var(--auth-surface); border:1px solid var(--auth-line); }
.auth-page .auth-card .btn-secondary:hover { color:var(--auth-ink); background:var(--auth-soft); }
.auth-page .auth-card .auth-submit { width:100%; min-height:54px; padding:14px 18px; }
.auth-actions { display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,.55fr); align-items:stretch; gap:12px; margin-top:6px; }
.auth-page .auth-actions .btn { width:100%; }
.auth-page .auth-card .auth-back { display:flex; width:100%; margin-top:24px; }
.auth-page .auth-card .auth-code { font-family:ui-monospace,Consolas,monospace; font-size:21px; }
.auth-page .auth-card .auth-card-footer { margin:26px 0 0; padding-top:0; border:0; font-size:12px; text-align:center; }
.auth-page .auth-card details { margin:22px 0; color:var(--auth-muted); font-size:14px; }
.auth-page .auth-card summary { cursor:pointer; color:var(--auth-ink); line-height:1.5; }
.auth-page .auth-card details p { margin:12px 0; }
.auth-page .mfa-qr { display:block; width:220px; height:220px; max-width:100%; margin:24px auto; background:white; border:1px solid var(--auth-line); border-radius:6px; }
.auth-page .mfa-seed { display:block; margin-top:12px; overflow-wrap:anywhere; }
.auth-page .mfa-recovery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 20px; margin:24px 0; padding:18px; border:1px solid var(--auth-line); border-radius:6px; background:var(--auth-soft); list-style:none; }
.auth-page .mfa-recovery li { margin:0; font-size:14px; line-height:1.5; }
.auth-page .auth-card .flash { position:relative; width:100%; margin:0 0 24px; padding:12px 40px 12px 14px; border-radius:6px; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.auth-page .auth-legal { width:100%; max-width:none; flex-shrink:0; margin:0; padding:24px; border-top:1px solid var(--auth-line); background:var(--auth-surface); color:var(--auth-muted); text-align:center; font-size:12px; }
.auth-page .auth-legal nav { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 24px; margin-bottom:12px; }
.auth-page .auth-legal a { color:var(--auth-muted); text-decoration:none; font-size:12px; }
.auth-page .auth-legal a:hover { color:var(--auth-accent); text-decoration:underline; }
.auth-page .auth-legal p { margin:6px 0 0; font-size:11px; line-height:1.6; }
.auth-page :is(a,button,summary):focus-visible { outline:3px solid #4963e84d; outline-offset:4px; }
html[data-theme=dark] .auth-page { --auth-accent:#8198ff; --auth-accent-hover:#a1b1ff; --auth-ink:#f1f4fc; --auth-muted:#a8b3cb; --auth-line:#363d4d; --auth-surface:#202431; --auth-input:#191d28; --auth-soft:#2a3044; background:#171b25; }
html[data-theme=dark] .auth-page .auth-card input:not([type=hidden]) { border-color:#49546c; }
html[data-theme=dark] .auth-logo .brand-mark-dot { color:#8bbaff; }
html[data-theme=dark] .auth-page .auth-card .btn-primary { color:#111a35; }
html[data-theme=dark] .auth-page .auth-card .btn-primary:hover:not(:disabled) { color:#111a35; }
html[data-theme=dark] .auth-caps-warning { color:#ffd19b; }
@media(max-width:640px) {
  .auth-logo { min-height:40px; }
  .auth-page .auth-logo .brand-mark { font-size:26px; }
  .auth-contact { display:none; }
  .auth-workspace { padding:32px 16px; }
  .auth-page .auth-card { padding:28px 24px; }
  .auth-page .auth-card h1 { font-size:26px; }
  .auth-page .auth-legal { padding:22px 20px; }
  .auth-page .auth-legal nav { gap:10px 18px; }
}
@media(max-width:360px) {
  .auth-page .auth-card { padding:24px 20px; }
  .auth-page .auth-card h1 { font-size:24px; }
  .auth-field-heading { gap:8px; }
  .auth-field-heading a { font-size:11px; }
  .auth-actions { grid-template-columns:minmax(0,1fr) minmax(82px,.55fr); gap:8px; }
  .auth-page .auth-actions .btn { padding-inline:10px; }
  .auth-page .mfa-recovery { grid-template-columns:1fr; }
}
.auth-page.auth-page--split { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); align-items:stretch; gap:0; padding:0; background:var(--auth-surface); }
.auth-identity { display:flex; flex-direction:column; justify-content:space-between; min-width:0; padding:48px 56px; background:#eaf3ff; color:var(--auth-ink); }
.auth-identity .auth-logo { align-self:flex-start; }
.auth-identity-title { padding:24px 0 20px; }
.auth-identity-title h2 { margin:0 0 14px; font-size:44px; line-height:1.15; font-weight:750; }
.auth-identity-title p { margin:0; font-size:17px; line-height:1.65; color:var(--auth-muted); }
.auth-identity .auth-contact { align-self:flex-start; }
.auth-illustration { display:block; width:392px; height:auto; max-width:100%; aspect-ratio:1.5; object-fit:contain; margin:32px 0 0 -20px; }
.auth-contacts { display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:8px 20px; }
.auth-page--split .auth-workspace { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr) auto; justify-items:center; align-items:center; gap:32px; padding:56px 48px; }
.auth-page--split .auth-card { width:420px; padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; }
.auth-page--split .auth-card--wide { width:540px; }
.auth-page--split .auth-legal { max-width:540px; margin:0; padding:0; border:0; background:transparent; }
.auth-page--split .auth-legal nav { margin:0; gap:12px 28px; }
html[data-theme=dark] .auth-identity { background:#263c56; }
@media(min-width:1600px) { .auth-identity { padding:64px 80px; } }
@media(max-width:900px) {
  .auth-page.auth-page--split { grid-template-columns:1fr; grid-template-rows:auto 1fr; }
  .auth-identity { padding:24px 32px; gap:20px; justify-content:flex-start; }
  .auth-identity-title { position:relative; padding:0 116px 0 0; min-height:70px; }
  .auth-identity-title h2 { font-size:28px; margin-bottom:8px; }
  .auth-identity-title p { font-size:14px; }
  .auth-identity .auth-contact { display:block; }
  .auth-illustration { position:absolute; width:110px; height:84px; right:-8px; top:0; margin:0; }
  .auth-page--split .auth-workspace { grid-template-rows:auto auto; align-content:start; padding:36px 24px; gap:48px; }
  .auth-page .auth-card h1 { font-size:28px; margin-bottom:28px; }
  .auth-page .auth-logo .brand-mark { font-size:28px; }
  .auth-page--split .auth-legal nav { gap:10px 20px; }
}
@media(max-width:360px) {
  .auth-identity { padding:20px 24px; }
  .auth-identity-title { padding-right:0; }
  .auth-illustration { display:none; }
  .auth-page--split .auth-workspace { padding:30px 24px; }
}
@media(prefers-reduced-motion:reduce) { .auth-page * { scroll-behavior:auto; transition:none; } }
