:root{color-scheme:light}.auth-body{margin:0;background:#f6f8f0;color:#193f31;font:16px/1.55 system-ui,sans-serif;min-height:100vh;display:grid;place-items:center}.auth-card{box-sizing:border-box;width:min(94vw,540px);padding:40px;margin:30px 0;background:white;border:1px solid #dfe7d7;border-radius:18px;box-shadow:0 18px 60px #203b3010}.auth-brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font-size:28px;font-weight:700}.auth-brand span{font-size:19px}.auth-brand small{display:block;font-size:9px;letter-spacing:2px}.auth-tag{font-size:11px;letter-spacing:2px;margin-top:36px}.auth-card h1{font-size:32px;line-height:1.15;font-weight:600}.auth-card p{color:#617468}.auth-card label{display:block;margin-top:18px;font-size:14px}.auth-card input{box-sizing:border-box;width:100%;padding:13px;margin-top:5px;border:1px solid #bccdbd;border-radius:7px;font:inherit}.auth-card button{width:100%;margin-top:25px;background:#176344;color:white;padding:14px;border:0;border-radius:7px;font:600 16px system-ui;cursor:pointer}.auth-card button:disabled{opacity:.5}.auth-small{font-size:12px}.auth-card #authError{color:#a32b21}.railway-staging-banner{padding:12px 24px;background:#fff0cc;color:#4f451f;font:600 11px/1.5 system-ui,sans-serif;letter-spacing:.8px}[hidden]{display:none!important}

.login-portals{display:flex;gap:7px;margin:22px 0 12px}.login-portals a{flex:1;text-align:center;padding:10px 7px;border:1px solid #bccfbd;border-radius:6px;color:#1b543d;font-size:12px;text-decoration:none}.login-portals a[aria-current="page"]{background:#145d46;color:white}

.auth-body{background:radial-gradient(ellipse at 10% 0%,#dceaff,transparent 55%),#f4f7fd;color:#18304f}.auth-card{border-color:#dce5f2;box-shadow:0 25px 85px #153f7910}.auth-card button{background:#255dde}.auth-card p{color:#647792}.auth-card input{border-color:#c4d2e6}.auth-card input:focus{outline:3px solid #aacbff}.auth-brand small{color:#5f7591}.login-portals a{color:#25549a;border-color:#c3d4ec}.login-portals a[aria-current="page"]{background:#245cda}.auth-tag{color:#3568ae!important}

.test-access-bar{position:fixed;bottom:14px;left:14px;z-index:80;max-width:310px;background:#fff;border:1px solid #cbd5e1;border-radius:12px;box-shadow:0 8px 30px #142d4020;padding:12px;font:13px/1.5 system-ui;color:#173b35}.test-access-bar summary{cursor:pointer;font-weight:700}.test-access-bar button{display:block;margin:7px 0;padding:8px 12px;width:100%;cursor:pointer}#backupPanel{margin-bottom:20px}#backupPanel .feed{padding:14px 0;border-bottom:1px solid #dbe4dc}
.railway-global-nav{max-width:1280px;margin:0 auto;padding:14px 24px;font:600 14px/1.5 system-ui}.railway-global-nav a{color:#137c68;text-decoration:none}.railway-global-nav a:hover{text-decoration:underline}

/* Role selection shares the PMS account-access visual system. */
.portal-body{display:block;background:#f4f7fb;color:#153342}
.portal-page{width:min(1120px,100%);margin:0 auto;padding:28px 24px 48px;border:0;border-radius:0;box-shadow:none;background:transparent}
.portal-page .auth-brand{width:max-content;margin-bottom:32px}.portal-page .auth-brand small{color:#167c70}
.portal-heading{text-align:center;max-width:680px;margin:0 auto 30px}.portal-heading .auth-tag{margin:0 0 12px;color:#167c70!important;font-size:11px;font-weight:700;letter-spacing:.14em}
.portal-heading h1{font-size:clamp(28px,3vw,40px);font-weight:700;letter-spacing:-.035em;margin:0 0 12px}.portal-heading>p:last-child{margin:0;color:#617482}
.portal-layout{max-width:920px;margin:auto}.portal-layout.has-selection{max-width:none;display:grid;grid-template-columns:1.12fr 1fr;gap:28px;align-items:start}
.portal-page .login-portals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0}
.portal-page .has-selection .login-portals{grid-template-columns:repeat(2,minmax(0,1fr))}
.portal-page .portal-card{position:relative;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:22px;min-height:220px;border:1px solid #d8e4e7;border-radius:16px;background:white;box-shadow:0 4px 16px #15334204;color:#153342;text-decoration:none;transition:border-color .15s,transform .15s}
.portal-page .portal-card:hover{border-color:#167c70;transform:translateY(-2px)}.portal-page .portal-card[aria-current=page]{background:#f5fbf9;border-color:#167c70;box-shadow:0 0 0 1px #167c70;color:#153342}
.portal-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#eaf4f1;color:#167c70;margin-bottom:16px}.portal-label{font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:#697d87;margin-bottom:7px}.portal-card strong{font-size:19px;line-height:1.25;margin-bottom:10px}.portal-description{font-size:13px;line-height:1.6;color:#617482}.portal-arrow{position:absolute;right:20px;top:22px;color:#167c70;font-size:20px}
.portal-page .portal-permissions{text-align:center;color:#738590;font-size:12px;margin:20px 0 0;line-height:1.7}.portal-panel{box-sizing:border-box;border:1px solid #d8e4e7;border-radius:18px;padding:28px;background:white;scroll-margin-top:28px;box-shadow:0 8px 30px #15334206}.portal-panel .auth-tag{margin:0 0 12px;color:#167c70!important;font-size:11px;font-weight:700;letter-spacing:.12em}.portal-panel h2{font-size:25px;line-height:1.25;letter-spacing:-.02em;margin:0 0 18px}.portal-page .portal-policy{padding:14px;background:#eaf5f0;border-radius:12px;font-size:14px;color:#276b5b;margin:0 0 20px}.portal-page label{font-weight:600;color:#153342}.portal-page input{background:#fff;border-color:#cbd9df;border-radius:9px;font-weight:400}.portal-page button{background:#167c70;border-radius:10px}.portal-page .portal-recover{font-size:13px;text-align:center}.portal-page a:focus-visible,.portal-page input:focus-visible,.portal-page button:focus-visible{outline:3px solid #167c70;outline-offset:4px}.portal-recover a,.portal-footer a{color:#167c70;text-decoration:none;font-weight:600}.portal-page .auth-small{font-size:12px;color:#738590}.portal-footer{text-align:center;font-size:12px;line-height:1.7;margin:30px auto 0;padding-top:20px;border-top:1px solid #d8e4e7}.portal-footer p{color:#738590;margin:0 0 8px}
@media(max-width:760px){.portal-page{padding:24px 18px 36px}.portal-page .auth-brand{margin-bottom:26px}.portal-layout.has-selection{grid-template-columns:1fr}.portal-page .login-portals{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-page .portal-card{padding:18px;min-height:220px}.portal-panel{padding:24px}.portal-card strong{font-size:18px}}
@media(max-width:380px){.portal-page .login-portals{gap:10px}.portal-page .portal-card{padding:14px}.portal-label{font-size:8px}.portal-arrow{right:12px;top:16px}}
@media(prefers-reduced-motion:reduce){.portal-page .portal-card{transition:none}.portal-page .portal-card:hover{transform:none}}

.auth-card,.portal-page{overflow-wrap:anywhere;min-width:0}.auth-card input{min-width:0}.auth-card :is(a,button,input):focus-visible{outline:3px solid #176344;outline-offset:3px}@media(max-width:440px){.auth-card{padding:24px}.auth-brand{flex-wrap:wrap;font-size:22px}.auth-card h1{font-size:28px}}

.official-fng-logo{display:block;width:156px!important;height:104px!important;max-width:100%;object-fit:contain;background:#fff}.auth-brand,.portal-header .brand{flex-shrink:0}header:has(.official-fng-logo){height:auto;min-height:120px;padding-block:8px}@media(max-width:650px){.official-fng-logo{width:120px!important;height:80px!important}header:has(.official-fng-logo){min-height:96px;padding-block:8px}}
@media(max-width:520px){.portal-page .login-portals,.portal-page .has-selection .login-portals{grid-template-columns:minmax(0,1fr);gap:14px}.portal-page .portal-card{min-height:0;padding:22px}.portal-card strong{font-size:20px}.portal-label{font-size:10px}}

/* Approved horizontal ForNextGen identity. */
.official-fng-logo{width:230px!important;height:64px!important;object-fit:cover!important;object-position:center!important;background:#fff}header:has(.official-fng-logo){min-height:96px}@media(max-width:650px){.official-fng-logo{width:170px!important;height:47px!important}header:has(.official-fng-logo){min-height:82px}}

/* Shared approved identity, with Legal product context. */
.auth-brand,.brand:has(.official-fng-logo){display:inline-flex;align-items:center;gap:14px;text-decoration:none;max-width:100%;flex-wrap:wrap}.official-fng-logo{width:190px!important;height:52px!important;object-fit:contain!important;background:transparent}.product-label{font-size:18px;font-weight:700;border-left:1px solid #ccd8ce;padding-left:14px;line-height:1.2;color:#183c30}.product-label small{display:block;font-size:11px;margin-top:5px}header:has(.official-fng-logo){min-height:88px}footer a{display:inline-flex;align-items:center;min-height:36px}@media(max-width:650px){.official-fng-logo{width:150px!important;height:41px!important}.product-label{font-size:16px}header:has(.official-fng-logo){min-height:80px}}
