:root {
    color-scheme: light;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #22263a;
    background: #f5f6fb;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    --login-purple: #6256d5;
    --login-ink: #252940;
    --login-muted: #858ba0;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input { font: inherit; }
.login-page { display: grid; place-items: center; padding: 36px; }
.login-shell { width: min(1040px, 100%); min-height: 620px; display: grid; grid-template-columns: .92fr 1.08fr; overflow: hidden; border: 1px solid #e9eaf1; border-radius: 22px; background: #fff; box-shadow: 0 26px 80px rgb(35 39 75 / 10%); }
.login-brand-panel { position: relative; min-height: 620px; display: flex; flex-direction: column; overflow: hidden; padding: 38px 40px 28px; background: linear-gradient(145deg, #25264b 0%, #39366f 55%, #5146a5 100%); color: #fff; }
.login-brand { position: relative; z-index: 1; width: fit-content; display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.login-brand img { width: 53px; height: 53px; padding: 3px; border-radius: 12px; background: #fff; object-fit: contain; }
.tenant-login-monogram { width: 53px; height: 53px; display: grid !important; flex: 0 0 auto; place-items: center; border: 1px solid rgb(255 255 255 / 25%); border-radius: 12px; background: rgb(255 255 255 / 12%); color: #fff; font-size: 20px; font-weight: 800; }
.login-brand-copy, .mobile-brand span { display: grid; gap: 4px; }
.login-brand-copy strong { max-width: 250px; overflow: hidden; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-overflow: ellipsis; white-space: nowrap; }
.login-brand-copy span { color: #c6c4e8; font-size: 9px; font-weight: 700; letter-spacing: 2.4px; }
.brand-message { position: relative; z-index: 1; max-width: 365px; margin: auto 0; padding: 48px 0 65px; }
.brand-eyebrow, .login-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #cfccf5; font-size: 9px; font-weight: 800; letter-spacing: 1.45px; }
.brand-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #7ce0b1; box-shadow: 0 0 0 4px rgb(124 224 177 / 12%); }
.brand-message h2 { margin: 20px 0 13px; font-size: clamp(29px, 3.5vw, 39px); line-height: 1.19; letter-spacing: -1.3px; }
.brand-message p { max-width: 340px; margin: 0; color: #d0cfea; font-size: 13px; line-height: 1.8; }
.brand-panel-footer { position: relative; z-index: 1; color: #c3c1df; font-size: 10px; }
.brand-decoration { position: absolute; right: -220px; bottom: -220px; width: 510px; height: 510px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 50%; }
.brand-decoration-two { right: -170px; bottom: -170px; width: 410px; height: 410px; }
.login-form-panel { display: flex; flex-direction: column; justify-content: center; padding: 57px clamp(36px, 6vw, 72px) 0; }
.login-form-content { width: min(360px, 100%); margin: auto; }
.login-heading { margin-bottom: 30px; }
.login-eyebrow { color: #8178df; font-size: 9px; }
.login-heading h1 { margin: 11px 0 9px; color: var(--login-ink); font-size: 27px; font-weight: 800; letter-spacing: -.8px; }
.login-heading p { margin: 0; color: var(--login-muted); font-size: 12px; line-height: 1.7; }
.login-error { display: flex; align-items: flex-start; gap: 10px; margin: -12px 0 20px; padding: 12px 13px; border: 1px solid #f0cfcb; border-radius: 9px; background: #fff5f4; color: #9d4540; }
.login-error svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }
.login-error strong { display: block; margin: 1px 0 4px; font-size: 10px; }
.login-error p { margin: 2px 0 0; font-size: 10px; line-height: 1.5; }
.login-form { display: grid; gap: 19px; }
.login-field label { display: block; margin-bottom: 8px; color: #44495d; font-size: 10px; font-weight: 700; }
.login-input-wrap { min-height: 47px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #e2e4ed; border-radius: 9px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.login-input-wrap:focus-within { border-color: #9990e9; box-shadow: 0 0 0 3px rgb(98 86 213 / 10%); }
.login-input-wrap > svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: #a0a5b4; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.login-input-wrap input { width: 100%; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; color: #30354a; font-size: 11px; }
.login-input-wrap input::placeholder { color: #b1b5c1; }
.password-toggle { width: 30px; height: 32px; display: grid; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #8f95a8; cursor: pointer; }
.password-toggle:hover { background: #f3f2fc; color: var(--login-purple); }
.password-toggle:focus-visible { outline: 2px solid #8e85e4; outline-offset: 2px; }
.password-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.password-toggle .eye-off-icon, .password-toggle[aria-pressed="true"] .eye-icon { display: none; }
.password-toggle[aria-pressed="true"] .eye-off-icon { display: block; }
.login-submit { min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 3px; padding: 0 16px; border: 0; border-radius: 9px; background: linear-gradient(100deg, #6559d9, #5448c4); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; box-shadow: 0 7px 16px rgb(91 78 204 / 18%); transition: transform .15s ease, box-shadow .15s ease; }
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 21px rgb(91 78 204 / 25%); }
.login-submit:focus-visible { outline: 3px solid rgb(98 86 213 / 28%); outline-offset: 3px; }
.login-submit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.login-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 24px; color: #969bad; font-size: 9px; }
.login-security svg { width: 15px; height: 15px; fill: none; stroke: #53a980; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.login-footer { padding: 20px 0 24px; color: #a0a4b2; font-size: 8px; text-align: center; }
.login-footer span { padding: 0 4px; color: #c8cad3; }
.mobile-brand { display: none; }

@media (max-width: 760px) {
    .login-page { padding: 22px; }
    .login-shell { min-height: 0; grid-template-columns: 1fr; }
    .login-brand-panel { display: none; }
    .login-form-panel { min-height: 590px; padding: 32px 30px 0; }
    .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 41px; }
    .mobile-brand img { width: 43px; height: 43px; padding: 2px; border: 1px solid #eeedf4; border-radius: 10px; object-fit: contain; }
    .mobile-brand .tenant-login-monogram { width: 43px; height: 43px; border-color: #eeedf4; background: #f0efff; color: var(--login-purple); font-size: 16px; }
    .mobile-brand strong { color: #38345f; font-size: 11px; letter-spacing: .8px; }
    .mobile-brand small { color: #9599a8; font-size: 8px; font-weight: 700; letter-spacing: 1.8px; }
    .login-form-content { margin: 0 auto auto; }
    .login-heading h1 { font-size: 25px; }
}

@media (max-width: 420px) {
    .login-page { padding: 12px; }
    .login-shell { border-radius: 16px; }
    .login-form-panel { min-height: 560px; padding: 24px 22px 0; }
    .mobile-brand { margin-bottom: 33px; }
    .login-heading { margin-bottom: 26px; }
    .login-footer { font-size: 7px; }
}
