:root { color-scheme: light; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1f3247; background: #fff; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
.auth-layout { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
/* Match the local portal's login composition, including its responsive story. */
.auth-story { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 46px 60px 34px; background: radial-gradient(ellipse at 0% 100%, #123f78 0, transparent 62%), linear-gradient(140deg, #1f3247, #102c52); color: #fff; }
.auth-brand { display: flex; align-items: center; gap: 13px; font-size: 23px; font-weight: 800; letter-spacing: -.9px; position: relative; z-index: 1; }
.auth-brand img { width: 45px; height: 45px; flex-shrink: 0; }
.auth-brand-accent { color: #78a7ff; }
.auth-brand small { display: block; margin-top: 5px; color: #c2d3ef; font-size: 10px; letter-spacing: 1.6px; font-weight: 500; }
.auth-intro { position: relative; z-index: 1; margin: auto 0; padding: 85px 0 105px; }
.auth-eyebrow { color: #1b224d; text-transform: uppercase; font-size: 10px; line-height: 1.5; font-weight: 750; letter-spacing: 1.8px; margin: 0; }
.auth-intro .auth-eyebrow { color: #b2ceff; letter-spacing: 2px; }
.auth-intro h2 { font-size: clamp(40px, 4.2vw, 68px); font-weight: 550; line-height: 1.13; letter-spacing: -3px; margin: 26px 0 0; }
.auth-intro h2 em { font-style: normal; color: #91b7ff; }
.auth-intro > p:not(.auth-eyebrow) { color: #c4d2e7; font-size: 15px; max-width: 345px; margin: 28px 0 0; line-height: 1.85; }
.auth-story-line { margin-top: 35px; width: 42px; height: 2px; background: #52a5d3; }
.auth-features { display: grid; gap: 17px; margin-top: 30px; }
.auth-features span { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #cfdef1; }
.auth-features svg { color: #91b7ff; width: 18px; height: 18px; flex-shrink: 0; }
.auth-story-footer { display: flex; align-items: center; gap: 9px; position: relative; z-index: 1; font-size: 10px; color: #adc1dd; }
.auth-dot { width: 6px; height: 6px; border-radius: 50%; background: #0891b2; flex-shrink: 0; }
.auth-story-end { margin-left: auto; }
.auth-decoration { position: absolute; width: 580px; height: 580px; right: -380px; bottom: 3%; transform: rotate(-28deg); opacity: .5; pointer-events: none; }
.auth-decoration span { position: absolute; inset: 0; border: 1px solid #799ccb30; border-radius: 48%; }
.auth-decoration span:nth-child(2) { inset: 55px; }
.auth-decoration span:nth-child(3) { inset: 110px; background: linear-gradient(35deg, #2175af0b, #4599e717); }
.auth-form-side { min-width: 0; display: flex; flex-direction: column; padding: 55px 10%; }
.auth-card { width: 100%; max-width: 370px; margin: auto; padding: 75px 0; }
h1 { font-size: 29px; font-weight: 650; line-height: 1.25; letter-spacing: -1px; margin: 16px 0 0; }
.auth-description { color: #4e5e75; font-size: 13px; line-height: 1.8; margin: 13px 0 0; }
.auth-error-symbol { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 24px; color: #1b224d; background: #eff4ff; border: 1px solid #d3dff7; border-radius: 14px; }
.auth-error-symbol svg { width: 25px; height: 25px; }
.auth-error-actions { margin-top: 30px; }
.auth-corporate { color: #4e5e75; font-size: 11px; line-height: 1.7; margin: 30px 0 0; }
.auth-form { margin-top: 32px; }
.auth-primary { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: 9px; border: 1px solid #2175af; border-radius: 9px; padding: 12px 17px; background: #2175af; color: #fff; font: inherit; font-size: 13px; line-height: 1.4; font-weight: 650; text-decoration: none; cursor: pointer; box-shadow: 0 3px 8px #2175af12; }
.auth-primary svg { flex-shrink: 0; }
.auth-primary:hover { background: #1b224d; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #2175af; outline-offset: 4px; }
.auth-hint { display: flex; align-items: flex-start; gap: 8px; color: #4e5e75; font-size: 10px; line-height: 1.7; margin: 23px 0 0; }
.auth-hint svg { width: 14px; height: 14px; margin-top: 1px; flex-shrink: 0; }
.auth-back { display: block; margin-top: 18px; color: #1b224d; font-size: 13px; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.auth-alert { border: 1px solid #d91515; background: #fff7f7; border-radius: 10px; padding: 14px; margin: 22px 0 24px; font-size: 14px; }
.auth-alert strong { color: #8f1717; }
.auth-alert p { color: #631919; margin: 6px 0 0; font-size: 14px; line-height: 1.6; }
.auth-alert { line-height: 1.6; color: #8f1717; outline: none; }
.auth-notice { background: #eff8f3; border: 1px solid #b5d7c5; color: #23503b; border-radius: 10px; padding: 14px; margin: 22px 0 24px; font-size: 14px; line-height: 1.6; }
.auth-field { margin-bottom: 20px; }
.auth-field label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 650; }
.auth-field input { display: block; width: 100%; min-height: 48px; padding: 12px 15px; color: #1f3247; background: #fff; border: 1px solid #d3ddea; border-radius: 9px; font: inherit; font-size: 13px; }
.auth-field input:focus { outline: 2px solid #2175af; outline-offset: 1px; background: #fff; }
.auth-field input::placeholder { color: #64748b; }
.auth-password { position: relative; }
.auth-password input { padding-right: 76px; }
.password-toggle { position: absolute; right: 5px; top: 5px; min-height: 38px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: #1b224d; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.auth-recovery { display: block; color: #1b224d; margin: -2px 0 24px; font-size: 12px; text-align: right; text-decoration: underline; text-underline-offset: 3px; }
.auth-password-help { color: #4e5e75; font-size: 12px; line-height: 1.6; margin: -8px 0 18px; }
.auth-code { letter-spacing: .32em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-setup-steps { margin: 0 0 18px; padding-left: 22px; color: #4e5e75; font-size: 13px; line-height: 1.6; }
.auth-setup-steps li + li { margin-top: 8px; }
.auth-qr { width: 224px; max-width: 100%; background: #fff; margin: 0 auto 18px; border: 1px solid #dce4ef; border-radius: 12px; padding: 7px; }
.auth-qr img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.auth-manual { font-size: 12px; color: #4e5e75; margin-bottom: 24px; line-height: 1.6; }
.auth-manual summary { color: #1b224d; cursor: pointer; }
.auth-manual code { display: block; overflow-wrap: anywhere; padding: 10px; background: #f4f7fb; border-radius: 8px; user-select: all; }
.auth-footer { display: flex; justify-content: space-between; font-size: 10px; color: #4e5e75; gap: 16px; }
.auth-footer a:last-child { text-decoration: underline; text-underline-offset: 3px; }
.auth-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; }
.auth-skip { position: absolute; left: 24px; top: 12px; z-index: 10; padding: 12px 20px; border-radius: 10px; color: #fff; background: #1f3247; transform: translateY(-180%); }
.auth-skip:focus { transform: translateY(0); }
@media (max-width: 1199px) {
  .auth-story { padding: 35px 40px 30px; }
  .auth-form-side { padding: 40px 12%; }
  .auth-intro h2 { letter-spacing: -2px; }
  .auth-story-end { display: none; }
}
@media (max-width: 900px) {
  .auth-story { padding: 32px 30px; }
  .auth-intro h2 { font-size: 43px; }
  .auth-intro > p:not(.auth-eyebrow) { font-size: 13px; }
  .auth-form-side { padding: 40px 9%; }
  h1 { font-size: 25px; }
  .auth-footer { flex-direction: column; gap: 7px; }
}
@media (max-width: 700px) {
  .auth-layout { display: block; }
  .auth-story { padding: 23px 25px 30px; }
  .auth-brand { font-size: 22px; }
  .auth-brand img { width: 36px; height: 36px; }
  .auth-brand small { font-size: 8px; margin-top: 4px; }
  .auth-intro { padding: 42px 0 10px; }
  .auth-intro h2 { font-size: 40px; margin-top: 16px; line-height: 1.15; letter-spacing: -1.7px; }
  .auth-intro h2 br { display: none; }
  .auth-intro > p:not(.auth-eyebrow) { margin-top: 16px; font-size: 12px; max-width: 350px; }
  .auth-features, .auth-story-line, .auth-story-footer { display: none; }
  .auth-form-side { padding: 35px 25px 25px; }
  .auth-card { max-width: 450px; padding: 0; }
  h1 { font-size: 25px; margin-top: 10px; }
  .auth-form { margin-top: 25px; }
  .auth-field input { font-size: 16px; }
  .auth-footer { margin-top: 37px; flex-direction: row; gap: 15px; }
}

/* Identity from the approved Pulso presentation. */
:root { font-family: var(--pulso-font-body); color: var(--pulso-ink); background: var(--pulso-canvas); }
h1, h2, .auth-brand { font-family: var(--pulso-font-heading); }
.auth-brand { width: max-content; padding: 9px 13px; border-radius: 9px; color: var(--pulso-navy); background: #fff; }
.auth-brand-accent { color: var(--pulso-blue); }
.auth-brand small { color: var(--pulso-muted); }
.auth-intro h2 em, .auth-features svg { color: #96d0ea; }
.auth-intro .auth-eyebrow { color: #b4dff1; }
.auth-story-line, .auth-dot { background: var(--pulso-cyan); }
.auth-decoration { display: none; }
.auth-primary { background: var(--pulso-blue); border-color: var(--pulso-blue); }
.auth-primary:hover { background: var(--pulso-navy); }
.auth-form-side { background: var(--pulso-surface); }
.auth-error-symbol { color: var(--pulso-blue); background: var(--pulso-canvas); border-color: var(--pulso-border); }
