* { box-sizing: border-box; }
body.portal-login-page {
    margin: 0; min-height: 100vh; min-height: 100svh; padding: 40px 20px;
    display: grid; place-items: center; color: #192940;
    background: radial-gradient(ellipse at 80% 15%, #284991 0, transparent 55%), linear-gradient(135deg, #0d1934, #172e66);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px; line-height: 1.5;
}
.portal-login { width: min(920px, 100%); min-width: 0; }
.portal-login-brand { margin-bottom: 26px; color: #fff; }
.portal-login-wordmark { font-size: 26px; font-weight: 800; letter-spacing: -.8px; }
.portal-login-wordmark span { font-weight: 400; }
.portal-login-brand h1 { margin: 6px 0 0; color: #c5d3ee; font-size: 17px; font-weight: 400; }
.portal-login-card {
    display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
    overflow: hidden; background: #fff; border: 1px solid #ffffff24; border-radius: 24px;
    box-shadow: 0 24px 72px #0004;
}
.portal-login-methods { min-width: 0; padding: 36px 28px; background: #f2f5fa; border-right: 1px solid #e3e9f2; }
.portal-login-eyebrow { color: #637a9d; text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.portal-login-methods h2 { margin: 9px 0 26px; font-size: 22px; line-height: 1.3; letter-spacing: -.4px; }
.portal-login-options { display: grid; gap: 12px; }
.portal-login-option {
    display: grid; grid-template-columns: 32px minmax(0, 1fr) 18px; gap: 10px; align-items: start;
    padding: 18px 14px; text-decoration: none; color: #283d5c; background: #fff;
    border: 1px solid #d6dfed; border-radius: 14px;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.portal-login-option:hover { border-color: #8da5cf; color: #16376e; }
.portal-login-option[aria-current="true"] { color: #133b7b; background: #e9f0ff; border-color: #477ad0; box-shadow: 0 0 0 1px #477ad0; }
.portal-login-option-icon { display: grid; place-items: center; width: 32px; height: 32px; color: #436495; background: #edf2f9; border-radius: 9px; }
.portal-login-option-icon svg { width: 21px; height: 21px; }
.portal-login-option strong { display: block; margin: 3px 0 5px; font-size: 15px; }
.portal-login-option small { display: block; font-size: 12px; line-height: 1.6; color: #5f7391; }
.portal-login-option-check { margin-top: 6px; color: #2355a4; opacity: 0; font-size: 15px; font-weight: 700; }
.portal-login-option[aria-current="true"] .portal-login-option-check { opacity: 1; }
.portal-login-method-note { margin: 24px 0 0; font-size: 12px; color: #6d7e96; }
.portal-login-fields { min-width: 0; padding: 38px 40px; align-self: center; }
.portal-login-fields h2 { margin: 0; font-size: 24px; line-height: 1.3; letter-spacing: -.6px; }
.portal-login-intro { margin: 10px 0 26px; color: #61748f; font-size: 14px; }
.portal-login-fields fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.portal-login-field { margin-bottom: 20px; }
.portal-login-field label { display: block; margin-bottom: 7px; color: #344963; font-weight: 600; font-size: 13px; }
.portal-login-field input { display: block; width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #c9d5e6; border-radius: 9px; color: #192940; background: #fff; font: inherit; }
.portal-login-remember { display: flex; align-items: center; gap: 9px; margin: 6px 0 24px; font-size: 13px; color: #526883; cursor: pointer; }
.portal-login-remember input { width: 16px; height: 16px; margin: 0; accent-color: #2355a4; flex-shrink: 0; }
.portal-login-submit { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px 17px; border: 1px solid #2456a5; border-radius: 9px; color: #fff; background: #2456a5; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.portal-login-submit:hover { background: #19478f; }
.portal-login-submit span { font-size: 20px; line-height: 1; }
.portal-login-hint { margin: 20px 0 0; font-size: 12px; line-height: 1.7; color: #61748f; }
.portal-login-notice { margin: 0 0 24px; padding: 13px 15px; border: 1px solid #c4d8f6; border-radius: 9px; background: #eff6ff; color: #254d82; font-size: 13px; overflow-wrap: anywhere; }
.portal-login-notice--error { color: #983e3e; border-color: #f0c8c8; background: #fff3f3; }
.portal-login-notice ul { margin: 0; padding-left: 17px; }
.portal-login-code-recipient { display: flex; align-items: flex-start; gap: 12px; padding: 18px 16px; background: #fff; border: 1px solid #d6dfed; border-radius: 14px; }
.portal-login-code-recipient .portal-login-option-icon { flex-shrink: 0; }
.portal-login-code-recipient > div { min-width: 0; }
.portal-login-code-recipient span:not(.portal-login-option-icon) { font-size: 12px; color: #61748f; }
.portal-login-code-recipient strong { display: block; margin-top: 4px; font-size: 14px; color: #283d5c; overflow-wrap: anywhere; }
.portal-login-code-help { margin: 20px 0; font-size: 13px; line-height: 1.7; color: #61748f; }
.portal-login-back { color: #2456a5; font-size: 13px; font-weight: 600; text-decoration: none; }
.portal-login-back:hover { text-decoration: underline; }
.portal-login-back:focus-visible { outline: 3px solid #79a9f5; outline-offset: 3px; border-radius: 3px; }
.portal-login-field .portal-login-code-input { font-size: clamp(24px, 6vw, 32px); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .3em; text-align: center; padding: 14px 8px 14px calc(8px + .3em); }
.portal-login-development-code { margin-bottom: 24px; padding: 14px 16px; border: 1px solid #edcf92; border-radius: 10px; background: #fff8e9; color: #865514; font-size: 12px; }
.portal-login-development-code strong { display: block; margin-top: 4px; font-size: 23px; font-variant-numeric: tabular-nums; letter-spacing: .2em; }
.portal-login-option:focus-visible, .portal-login-submit:focus-visible, .portal-login-field input:focus-visible, .portal-login-remember input:focus-visible { outline: 3px solid #79a9f5; outline-offset: 3px; }
.portal-login-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; }
.portal-login [hidden] { display: none !important; }
@media (max-width: 680px) {
    body.portal-login-page { padding: 24px 16px; }
    .portal-login-brand { margin-bottom: 20px; }
    .portal-login-card { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
    .portal-login-methods { padding: 24px; border-right: 0; border-bottom: 1px solid #e3e9f2; }
    .portal-login-methods h2 { margin-bottom: 18px; font-size: 20px; }
    .portal-login-option { padding: 14px; }
    .portal-login-method-note { display: none; }
    .portal-login-fields { padding: 28px 24px; }
    .portal-login-fields h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .portal-login-option { transition: none; } }
