.login-signoff { display: none; }
/* All composition overrides are scoped to the existing visible login section. */
body.session-pending { background:#f4f7fb; }
body.session-pending aside.sidebar,body.session-pending .environment,body.session-pending main > :not(#session-status){display:none}
body.session-pending:not(.session-status-visible) #session-status:not([hidden]){visibility:hidden}
#session-status:not([hidden]){position:fixed;inset:0;z-index:100;display:grid;place-items:center;overflow:auto;padding:24px;background:#f4f7fb;color:#334155}
.session-status-card{width:min(440px,100%);padding:30px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 4px 20px #14263f08;text-align:center;overflow-wrap:anywhere}
.session-status-card h2{margin:0 0 12px;color:#14263f;font-size:22px}.session-status-card p{font-size:14px;line-height:1.6;color:#64748b}.session-status-card button{min-height:44px;border-radius:9px;padding:10px 18px;background:#2563eb;color:#fff}.session-status-card button:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}
body:has(#login:not([hidden])) { background: #f4f7fb; color: #334155; min-height: 100svh; }
body:has(#login:not([hidden])) .shell { display: block; min-height: 100svh; position: relative; padding-top: 118px; background: transparent; }
body:has(#login:not([hidden])) .environment { position: absolute; top: 30px; right: 36px; z-index: 5; max-width: 390px; margin: 0; padding: 9px 14px; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 8px; color: #475569; font-size: 11px; line-height: 1.6; letter-spacing: 0; text-align: right; }
body:has(#login:not([hidden])) aside.sidebar { position: absolute; top: 27px; left: 36px; width: auto; height: auto; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; overflow: visible; z-index: 4; }
body:has(#login:not([hidden])) .sidebar-head { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; }
body:has(#login:not([hidden])) .sidebar-head .brand-icon,body:has(#login:not([hidden])) .sidebar-head .brand-logo { width: 42px; height: 42px; border-radius: 10px; }
body:has(#login:not([hidden])) .sidebar-foot,body:has(#login:not([hidden])) #menu-toggle { display: none; }
body:has(#login:not([hidden])) main { position: relative; z-index: 1; max-width: none; min-height: 0; width: 100%; padding: 22px 20px 38px; margin: 0; background: transparent; }
#login.login.panel { position: relative; isolation: isolate; width: min(480px,100%); max-width: 480px; margin: 0 auto; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
#login .login-card { position: relative; z-index: 1; width: 100%; margin: 0 auto; padding: 44px; background: #fff; color: #334155; border: 1px solid #e8eef6; border-radius: 24px; box-shadow: 0 12px 36px #14263f08; }
#login .login-card h2 { margin: 0 0 10px; font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.7px; color: #14263f; }
#login .login-description { margin: 0 0 30px; color: #64748b; font-size: 15px; line-height: 1.6; }
#login #login-form { display: grid; gap: 24px; margin: 0; }
#login #login-form label { display: grid; gap: 8px; color: #334155; font-size: 14px; font-weight: 600; line-height: 1.5; }
#login #login-form input { width: 100%; min-width: 0; height: 48px; margin: 0; padding: 11px 14px; border: 1px solid #b8c5d5; background: #fff; color: #14263f; border-radius: 9px; font-family: inherit; font-size: 16px; box-shadow: 0 1px 3px #14263f04; }
#login #login-form input:hover { border-color: #9cb5d3; }
#login #login-form input:focus-visible { outline: 3px solid #2563eb33; outline-offset: 1px; border-color: #2563eb; }
#login #login-factor-help { color: #64748b; font-size: 12px; font-weight: 400; line-height: 1.5; }
#login #login-form > button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; margin-top: 5px; padding: 12px 16px; border: 1px solid #2563eb; background: #2563eb; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.5; border-radius: 9px; box-shadow: 0 4px 10px #2563eb24; }
#login #login-form > button:hover:not(:disabled) { background: #1d4ed8; border-color: #1d4ed8; }
#login #login-form > button:focus-visible { outline: 3px solid #2563eb55; outline-offset: 3px; }
#login #login-form > button:disabled { background: #94add8; border-color: #94add8; color: #fff; box-shadow: none; opacity: 1; cursor: wait; }
#login #login-form > button span { font-size: 20px; line-height: 1; }
#login #notice { margin: 0 0 22px; padding: 12px 14px; width: 100%; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
#login #notice.error { color: #9f1239; background: #fff1f2; border-color: #fecdd3; }
body:has(#login:not([hidden])) .login-signoff { display: grid; gap: 6px; position: relative; z-index: 1; margin: 24px 0 0; text-align: center; color: #64748b; font-size: 14px; letter-spacing: .3px; }
@media(max-width:700px) {
  body:has(#login:not([hidden])) .shell { padding-top: 145px; }
  body:has(#login:not([hidden])) aside.sidebar { top: 22px; left: 20px; right: 20px; }
  body:has(#login:not([hidden])) .environment { top: 87px; left: 20px; right: 20px; max-width: none; padding: 8px 10px; text-align: left; font-size: 10px; }
  body:has(#login:not([hidden])) main { padding: 16px 20px 28px; }
  #login .login-card { padding: 30px 24px; border-radius: 20px; }
  #login .login-card h2 { font-size: 30px; }
}
body:has(#login:not([hidden])) .sidebar-head .brand-title { color: #14263f; font-size: 19px; }
body:has(#login:not([hidden])) .sidebar-head .brand-sub { color: #64748b; }
.login-signoff [data-login-brand] { color: #334155; font-weight: 600; }
.login-signoff .login-feature-icons { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 4px 0 10px; pointer-events: none; user-select: none; }
.login-feature-icon { display: inline-flex; width: 28px; height: 28px; flex: 0 0 28px; }
.login-feature-icon svg { display: block; width: 100%; height: 100%; }
.login-feature-icon.feature-mail { color: #2563eb; }
.login-feature-icon.feature-template { color: #5680e9; }
.login-feature-icon.feature-campaign { color: #0e9abe; }
.login-feature-icon.feature-team { color: #5376bc; }
.login-feature-icon.feature-report { color: #367ede; }
.login-signoff .login-footer-brand,.login-signoff .login-footer-tagline { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.login-signoff .login-footer-tagline { font-size: 13px; }
@media(max-width:360px) { #login .login-card { padding-inline: 20px; } }
