:root {
    --unp-blue: #123bb8;
    --unp-deep: #0b246e;
    --unp-green: #167a49;
    --unp-gold: #f0ca53;
    --ink: #152347;
    --muted: #5d6b83;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background: #f5f7fc;
    font-family: "DM Sans", sans-serif;
}

h1, h2, .navbar-brand { font-family: "Outfit", sans-serif; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--unp-gold); outline-offset: 3px; }
.topline { height: 5px; background: linear-gradient(90deg, var(--unp-blue) 0 64%, var(--unp-green) 64% 86%, var(--unp-gold) 86%); }
.site-nav { background: #fff; border-bottom: 1px solid #e5eaf4; }
.brand-mark { width: 43px; height: 43px; object-fit: contain; }
.brand-name { font-size: 1rem; font-weight: 800; line-height: 1.05; color: var(--unp-deep); }
.brand-sub { display: block; margin-top: 3px; font: 600 .62rem "DM Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-nav .nav-link { color: #3a4965; font-weight: 700; }
.site-nav .nav-link:hover { color: var(--unp-blue); }
.login-shell { max-width: 1120px; margin-inline: auto; padding-block: clamp(1.5rem, 5vw, 4rem); }
.login-card { overflow: hidden; border: 1px solid #dce5f4; border-radius: 26px; background: #fff; box-shadow: 0 24px 65px rgba(13, 37, 103, .1); }
.story-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 590px; padding: clamp(2rem, 4vw, 3.5rem); color: #fff; background: radial-gradient(circle at 90% 12%, #238b61, transparent 35%), linear-gradient(140deg, #0a246f, #123bb8 70%, #2258c9); overflow: hidden; }
.story-panel::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; right: -155px; bottom: -160px; box-shadow: 0 0 0 75px rgba(255, 255, 255, .04), 0 0 0 150px rgba(255, 255, 255, .025); pointer-events: none; }
.story-panel > * { position: relative; z-index: 1; }
.story-kicker { display: inline-flex; align-items: center; gap: .55rem; color: var(--unp-gold); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.story-panel h1 { max-width: 490px; margin: 1rem 0; font-size: clamp(2.5rem, 4.3vw, 4.3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.story-panel h1 span { color: var(--unp-gold); }
.story-panel p { max-width: 420px; color: #dce7ff; line-height: 1.75; }
.story-seal { width: 82px; height: 82px; object-fit: contain; padding: 10px; background: #fff; border-radius: 20px; box-shadow: 0 14px 35px rgba(4, 20, 60, .18); }
.story-bottom { display: flex; align-items: center; gap: 1rem; font-size: .84rem; color: #e0e9ff; }
.form-panel { display: flex; flex-direction: column; justify-content: center; min-height: 590px; padding: clamp(2rem, 5vw, 4rem); }
.mobile-seal { width: 64px; height: 64px; object-fit: contain; margin-bottom: 1.25rem; }
.form-kicker { color: var(--unp-green); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.form-panel h2 { font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; }
.form-panel .intro { color: var(--muted); line-height: 1.7; }
.form-label { font-weight: 700; font-size: .89rem; }
.form-control { min-height: 49px; border-color: #cad5e8; border-radius: 11px; }
.form-control:focus { border-color: var(--unp-blue); box-shadow: 0 0 0 .2rem rgba(18, 59, 184, .12); }
.input-group .form-control { border-radius: 11px 0 0 11px; }
.password-toggle { border-color: #cad5e8; border-radius: 0 11px 11px 0; color: var(--unp-blue); min-width: 52px; }
.password-toggle:hover { background: #eaf0ff; color: var(--unp-deep); border-color: #cad5e8; }
.btn-unp { min-height: 50px; border: 1px solid var(--unp-blue); background: var(--unp-blue); color: #fff; font-weight: 800; border-radius: 11px; }
.btn-unp:hover, .btn-unp:focus { border-color: var(--unp-deep); background: var(--unp-deep); color: #fff; }
.form-links a { color: var(--unp-blue); font-weight: 700; text-decoration: none; }
.form-links a:hover { text-decoration: underline; }
.role-links { border-top: 1px solid #e5eaf4; padding-top: 1.25rem; }
.role-links a { display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .7rem; border: 1px solid #dce5f4; border-radius: 9px; color: #4a5a78; text-decoration: none; font-size: .84rem; font-weight: 700; }
.role-links a:hover { border-color: var(--unp-blue); color: var(--unp-blue); }
.site-footer { padding: 0 1rem 2rem; color: var(--muted); font-size: .82rem; text-align: center; }
@media (max-width: 767.98px) {
    .login-shell { padding-top: 1rem; }
    .form-panel { min-height: auto; }
    .brand-name { font-size: .88rem; }
    .brand-sub { font-size: .52rem; }
    .brand-mark { width: 38px; height: 38px; }
}
