/* Sign-in presentation. Authentication remains in the existing login form. */
body.portal-login,
html[data-theme="dark"] body.portal-login {
    min-height: 100vh; min-height: 100dvh; display: grid; place-items: center;
    position: relative; isolation: isolate; padding: 40px 24px;
    background: radial-gradient(ellipse at 12% 15%, #21476b55, transparent 55%), radial-gradient(ellipse at 90% 85%, #19556533, transparent 50%), #0b1c32;
}
.portal-login::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(#a4c4e00b 1px, transparent 1px), linear-gradient(90deg, #a4c4e00b 1px, transparent 1px);
    background-size: 28px 28px;
    animation: signin-grid-drift 48s linear infinite;
}
@keyframes signin-grid-drift { to { background-position: 28px 28px; } }
@media (prefers-reduced-motion: reduce) { .portal-login::before { animation: none; } }
.signin-shell { width: min(1080px, 100%); min-height: 640px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--workspace-line); border-radius: 20px; overflow: hidden; background: var(--workspace-surface); box-shadow: 0 26px 80px #020a164d; }
.signin-story { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 64px; overflow: hidden; padding: 46px; background: #143347; color: #fff; }
.signin-logo { width: fit-content; padding: 10px 15px; border-radius: 7px; background: #fff; }
.signin-logo img { display: block; width: 118px; height: 33px; object-fit: contain; }
.signin-eyebrow { display: block; color: #a4d5d8; font-size: 10px; font-weight: 650; letter-spacing: .14em; }
.signin-story h1 { margin: 18px 0; font-size: clamp(35px, 3.8vw, 48px); font-weight: 600; line-height: 1.16; letter-spacing: -.045em; }
.signin-story-copy > p { margin: 0; color: #c1d1dc; font-size: 14px; line-height: 1.85; }
.signin-workstreams { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.signin-workstreams span { padding: 7px 11px; border: 1px solid #ffffff2b; border-radius: 6px; font-size: 11px; color: #dfedf1; background: #ffffff05; }
.signin-story-footer { font-size: 11px; color: #adc3d1; }
.signin-orbit { position: absolute; right: -180px; bottom: -250px; z-index: -1; width: 480px; height: 480px; border: 1px solid #7ac6ce26; border-radius: 50%; box-shadow: 0 0 0 50px #7ac6ce06, 0 0 0 100px #7ac6ce04; }
.signin-panel { display: flex; flex-direction: column; justify-content: center; padding: 52px 46px 28px; min-width: 0; }
.signin-content { margin: auto 0; padding: 38px 0 60px; }
.signin-content > .workspace-eyebrow { font-size: 10px; letter-spacing: .11em; overflow-wrap: anywhere; }
.signin-content h2 { margin: 14px 0 12px; color: var(--workspace-ink); font-size: 31px; line-height: 1.2; letter-spacing: -.04em; font-weight: 650; }
.signin-intro { margin: 0 0 32px; font-size: 14px; color: var(--workspace-muted); line-height: 1.7; }
.signin-form { margin: 0; }
.workspace-actions .btn.signin-microsoft { display: flex; gap: 13px; width: 100%; padding: 15px 17px; min-height: 52px; font-size: 13px; font-weight: 600; justify-content: flex-start; cursor: pointer; }
.signin-microsoft-symbol { display: grid; grid-template-columns: repeat(2, 9px); grid-template-rows: repeat(2, 9px); gap: 2px; flex-shrink: 0; }
.signin-microsoft-symbol > span:nth-child(1) { background: #f25022; }
.signin-microsoft-symbol > span:nth-child(2) { background: #7fba00; }
.signin-microsoft-symbol > span:nth-child(3) { background: #00a4ef; }
.signin-microsoft-symbol > span:nth-child(4) { background: #ffb900; }
.signin-arrow { margin-left: auto; color: var(--workspace-muted); font-size: 19px; font-weight: 400; }
.signin-microsoft:focus-visible { outline: 3px solid var(--workspace-accent); outline-offset: 4px; }
.signin-account-note { display: flex; align-items: flex-start; gap: 10px; padding-top: 22px; margin-top: 24px; border-top: 1px solid var(--workspace-line); }
.signin-note-mark { display: grid; place-items: center; width: 21px; height: 21px; flex-shrink: 0; border-radius: 50%; color: var(--workspace-accent); background: var(--workspace-soft); font-size: 12px; }
.signin-account-note p { margin: 0; color: var(--workspace-muted); font-size: 12px; line-height: 1.6; }
.signin-account-note p span { display: block; margin-top: 4px; font-size: 11px; overflow-wrap: anywhere; }
.signin-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 9px; border-top: 1px solid var(--workspace-line); padding-top: 18px; font-size: 10px; color: var(--workspace-muted); }
.signin-error { border: 1px solid var(--trias-red, #b8485f); border-radius: 8px; padding: 14px; margin: 0 0 22px; background: var(--workspace-soft); color: var(--workspace-ink); }
.signin-error strong { font-size: 12px; color: var(--trias-red, #b8485f); }
.signin-error p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 850px) {
    body.portal-login, html[data-theme="dark"] body.portal-login { padding: 24px 18px; }
    .signin-shell { min-height: 560px; }
    .signin-story { padding: 30px; }
    .signin-panel { padding: 35px 28px 24px; }
    .signin-story-copy > p br { display: none; }
}
@media (max-width: 640px) {
    body.portal-login, html[data-theme="dark"] body.portal-login { display: block; padding: 16px; }
    .signin-shell { grid-template-columns: minmax(0, 1fr); min-height: calc(100dvh - 32px); border-radius: 14px; }
    .signin-story { padding: 24px; gap: 24px; }
    .signin-story h1 { font-size: 30px; margin: 12px 0; }
    .signin-story-copy > p, .signin-workstreams, .signin-story-footer { display: none; }
    .signin-panel { padding: 28px 24px 22px; }
    .signin-content { padding: 12px 0 38px; }
    .signin-content h2 { font-size: 27px; }
    .signin-intro { margin-bottom: 24px; }
}
