/* Isolated sign-in styles: honour the saved theme without inheriting dashboard overrides. */
:root { color-scheme: dark; font-family: "Segoe UI", system-ui, sans-serif; --page: #0b1421; --panel: #101e2e; --text: #f1f5fa; --muted: #a8b8cb; --border: #52647b; --input: #0c1827; --accent: #58c3f2; }
html.light { color-scheme: light; --page: #edf2f6; --panel: #ffffff; --text: #01234b; --muted: #52677b; --border: #a3b2c1; --input: #f8fafc; --accent: #066c9e; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); }
button, input { font: inherit; }
[hidden] { display: none !important; }
.login-shell { width: min(1120px, calc(100% - 96px)); min-height: 690px; margin: max(48px, calc((100svh - 690px) / 2)) auto; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: 0 28px 90px #00000026; }
.login-brand { background: #01234b; color: #f1f5fa; padding: 48px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.brand-logo { width: min(100%, 300px); height: auto; object-fit: contain; object-position: left center; }
.brand-message { margin: 65px 0 76px; position: relative; z-index: 1; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; line-height: 1.6; }
.brand-message .eyebrow { color: #58c3f2; }
h1 { font-size: clamp(48px, 5.4vw, 72px); font-weight: 650; line-height: 1.07; letter-spacing: -.055em; margin: 23px 0; }
h1 span { color: #2fa6de; }
.brand-description { color: #c0d3e7; font-size: 16px; line-height: 1.8; max-width: 310px; margin: 0; }
.brand-footer { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #c0d3e7; z-index: 1; }
.brand-line { height: 2px; width: 28px; background: #2fa6de; }
.brand-grid { position: absolute; z-index: -1; width: 440px; height: 440px; right: -210px; bottom: -160px; border: 1px solid #2fa6de40; transform: rotate(-35deg); border-radius: 56px; box-shadow: 0 0 0 40px #2fa6de0b, 0 0 0 80px #2fa6de0a, 0 0 0 120px #2fa6de08; }
.login-panel { background: var(--panel); padding: 48px 56px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.login-form-wrap { width: 100%; max-width: 360px; margin: 0 auto; }
.product-name { display: flex; align-items: center; min-height: 32px; }
.tenant-logo { width: auto; max-width: 100%; height: 36px; object-fit: contain; object-position: left center; }
.logo-on-light, html.light .logo-on-dark { display: none; }
html.light .logo-on-light { display: block; }
.form-heading { margin: 42px 0 30px; }
.form-heading .eyebrow { color: var(--accent); margin: 0 0 10px; }
h2 { font-size: 32px; line-height: 1.2; letter-spacing: -1px; margin: 0 0 10px; font-weight: 650; }
.form-heading > p:last-child { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.6; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.form-field input { width: 100%; min-height: 50px; border: 1px solid var(--border); border-radius: 9px; background: var(--input); color: var(--text); padding: 12px 14px; font-size: 16px; }
.password-field { position: relative; }
.password-field input { padding-right: 74px; }
.password-toggle { position: absolute; top: 3px; right: 4px; height: 44px; min-width: 60px; color: var(--accent); border: 0; background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; border-radius: 6px; }
:where(input, button):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.remember-label { display: flex; gap: 10px; align-items: center; min-height: 44px; margin: -4px 0 18px; font-size: 13px; color: var(--muted); cursor: pointer; }
.remember-label input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.sign-in-button { width: 100%; min-height: 50px; border: 1px solid #59bfea; border-radius: 9px; background: #2fa6de; color: #00213e; font-weight: 700; font-size: 14px; padding: 12px 18px; display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; transition: background .15s ease; }
.sign-in-button:hover { background: #68c6ef; }
.sign-in-button svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-help { margin: 26px 0 24px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.9; }
.login-help strong { font-weight: 500; color: var(--text); }
.panel-footer { color: var(--muted); text-align: center; font-size: 10px; margin-top: 20px; letter-spacing: .035em; }
.panel-footer span { margin: 0 9px; opacity: .6; }
.login-error { background: #3a202a; color: #ffd2d5; border: 1px solid #b2606f; border-radius: 9px; padding: 14px 16px; margin-bottom: 22px; font-size: 13px; line-height: 1.6; }
.login-error p { margin: 4px 0 0; }
.login-error:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
html.light .login-error { background: #fff1f2; color: #982438; }
.caps-warning { color: var(--muted); margin: 9px 0 0; font-size: 12px; }
@media (max-width: 900px) { .login-shell { width: calc(100% - 48px); } .login-brand { padding: 36px; } .login-panel { padding: 40px 32px 24px; } }
@media (max-width: 680px) {
    .login-shell { width: 100%; margin: 0; min-height: 100svh; grid-template-columns: 1fr; grid-template-rows: auto 1fr; border: 0; border-radius: 0; box-shadow: none; }
    .login-brand { padding: 24px; flex-direction: row; align-items: center; gap: 20px; }
    .brand-logo { width: 140px; height: auto; }
    .brand-message { margin: 0; max-width: 145px; text-align: right; }
    .brand-message .eyebrow, .brand-description, .brand-footer { display: none; }
    h1 { font-size: 19px; line-height: 1.2; margin: 0; letter-spacing: -.7px; }
    h1 br { display: initial; }
    .login-panel { padding: 32px 24px 24px; }
    .form-heading { margin: 30px 0 26px; }
    h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
