:root {
    color-scheme: light;
    --login-blue: #0060a6;
    --login-blue-hover: #004f89;
    --login-ink: #152d43;
    --login-muted: #536779;
    --login-border: #d3dfe8;
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    color: var(--login-ink);
    background: #f5f8fb;
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
a { color: var(--login-blue); text-underline-offset: 3px; }
a:hover { color: var(--login-blue-hover); }
button, input[type="submit"] { cursor: pointer; }
button:disabled, input:disabled { cursor: default; }
:focus-visible { outline: 3px solid #0088cf; outline-offset: 4px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 2; padding: 12px 20px; border-radius: 6px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.login-shell { display: grid; grid-template-columns: minmax(340px, 46%) 1fr; min-height: 100vh; min-height: 100svh; }
.brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 38px clamp(32px, 5vw, 80px) 32px;
    color: white;
    background: radial-gradient(ellipse at 95% 40%, #096797 0, transparent 65%), #073452;
    overflow: hidden;
}
.tracerco-logo { display: inline-flex; align-self: flex-start; }
.tracerco-logo img { display: block; max-width: 100%; }
.brand-content { max-width: 480px; margin: auto 0; }
.brand-product { display: flex; align-items: baseline; margin: 0 0 28px; font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.brand-product > span:first-child { color: #86d0f4; }
.cloud-label { margin-left: 12px; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #b5d5e9; }
.brand-content h2 { margin: 0; font-size: clamp(32px, 3.3vw, 48px); font-weight: 700; letter-spacing: -1.4px; line-height: 1.18; }
.brand-description { max-width: 390px; margin: 22px 0 0; color: #c4dcea; font-size: 16px; line-height: 1.75; }
.dose-illustration { margin: 30px -20px 28px; }
.dose-illustration svg { display: block; width: 100%; max-width: 440px; }
.dose-illustration circle { stroke: #9dd0ed; stroke-opacity: .18; }
.dose-wave { stroke: #83d0f7; stroke-width: 2.5; stroke-linejoin: round; }
.dose-wave-secondary { stroke: #b9deed; stroke-opacity: .22; stroke-width: 1.5; }
.dose-illustration .dose-point { fill: #f3fbff; stroke: #64bfe9; stroke-width: 4; stroke-opacity: 1; }
.illustration-caption { display: block; margin-top: 4px; text-align: center; color: #a8cee3; font-size: 11px; letter-spacing: 1.4px; }
.brand-features { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; color: #e3eff6; font-size: 14px; }
.brand-features li { display: flex; align-items: center; gap: 12px; }
.brand-features li span { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border: 1px solid #6296b2; border-radius: 50%; color: #a7d9f2; font-size: 12px; }
.brand-footer { margin: 0; color: #a8c7d9; font-size: 12px; letter-spacing: .2px; }

.login-panel { display: grid; align-items: center; padding: 48px 32px; }
.login-panel-content { width: 100%; max-width: 448px; margin: 0 auto; }
.login-card { padding: 36px; border: 1px solid #e3eaf0; border-radius: 16px; background: white; box-shadow: 0 10px 40px #153b5e06; }
.login-heading { margin-bottom: 28px; }
.login-heading .login-eyebrow { margin: 0 0 10px; color: var(--login-blue); font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.login-heading h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.8px; line-height: 1.25; }
.login-heading p { margin: 0; color: var(--login-muted); font-size: 14px; line-height: 1.6; }
.login-form { display: grid; gap: 20px; }
.login-field { display: grid; gap: 8px; }
.login-field > label { font-size: 14px; font-weight: 700; }
.login-input { display: block; width: 100%; height: 50px; padding: 12px 14px; border: 1px solid var(--login-border); border-radius: 7px; color: var(--login-ink); background: white; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.login-input::placeholder { color: #5f7283; opacity: 1; }
.login-input:hover { border-color: #93acbf; }
.login-input:focus { border-color: var(--login-blue); outline: none; box-shadow: 0 0 0 3px #0060a61f; }
.login-input.input-validation-error { border-color: #b32a36; }
.password-field { position: relative; }
.password-field .login-input { padding-right: 52px; }
.password-toggle { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 5px; color: var(--login-muted); background: transparent; }
.password-toggle:hover { color: var(--login-blue); background: #edf5fb; }
.password-eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .password-eye-slash { display: block; }
.field-error { color: #a32430; font-size: 12px; line-height: 1.5; }
.field-validation-valid { display: none; }
.login-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; font-size: 13px; }
.remember-option { display: flex; align-items: center; min-height: 44px; gap: 8px; }
.remember-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--login-blue); }
.remember-option label { display: flex; align-items: center; min-height: 44px; cursor: pointer; }
.login-options > a { display: flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.login-options > a:hover { text-decoration: underline; }
.login-submit { width: 100%; min-height: 50px; border: 1px solid var(--login-blue); border-radius: 7px; background: var(--login-blue); color: white; font-weight: 700; font-size: 15px; transition: background .15s; }
.login-submit:hover:not(:disabled) { background: var(--login-blue-hover); }
.login-submit:disabled { border-color: #ccdbe6; background: #e3edf4; color: #536c80; }
.login-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 20px; color: #5f7283; font-size: 12px; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: #e2e9ef; }
.external-login-form { display: grid; gap: 12px; }
.provider-button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--login-border); border-radius: 7px; background: white; color: var(--login-ink); text-align: left; font-weight: 700; font-size: 14px; transition: background .15s, border-color .15s; }
.provider-button:hover { border-color: #80aac7; background: #f2f7fb; }
.provider-icon { flex-shrink: 0; }
.idp-Azure-button .provider-icon { color: var(--login-blue); }
.provider-arrow { margin-left: auto; flex-shrink: 0; color: #71899b; }
.provider-hint { margin: 12px 0 0; color: var(--login-muted); font-size: 12px; line-height: 1.5; }
.registration-prompt { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid #e2e9ef; color: var(--login-muted); text-align: center; font-size: 13px; line-height: 1.8; }
.registration-prompt a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.registration-prompt a:hover { text-decoration: underline; }
.login-alert { margin: 0 0 24px; padding: 14px 16px; border: 1px solid #f1cbd0; border-radius: 7px; background: #fff4f5; color: #9c2531; font-size: 13px; line-height: 1.6; }
.login-alert > p { margin: 0 0 4px; font-weight: 800; }
.login-alert ul { margin: 0; padding-left: 18px; }
.login-footer { margin-top: 24px; text-align: center; color: var(--login-muted); font-size: 12px; line-height: 1.7; }
.login-footer p { margin: 0; }
.login-footer a { font-weight: 700; text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }
.login-footer .copyright { margin-top: 12px; color: #5f7283; font-size: 11px; }
input::-ms-reveal, input::-ms-clear { display: none; }

@media (min-width: 1600px) {
    .brand-panel { align-items: center; }
    .tracerco-logo, .brand-footer { align-self: flex-start; }
    .brand-content { width: 100%; }
}
@media (max-width: 1000px) {
    .login-shell { grid-template-columns: minmax(280px, 40%) 1fr; }
    .brand-panel { padding: 28px; }
    .brand-content h2 { font-size: 34px; }
    .brand-description { font-size: 14px; }
    .login-panel { padding: 32px 24px; }
    .login-card { padding: 28px; }
}
@media (max-width: 760px) {
    .login-shell { display: block; }
    .brand-panel { flex-direction: row; align-items: center; gap: 20px; padding: 18px 24px; }
    .tracerco-logo img { width: 104px; height: 40px; }
    .brand-content { margin: 0; }
    .brand-product { margin: 0; font-size: 24px; }
    .cloud-label { font-size: 10px; letter-spacing: 1px; margin-left: 8px; }
    .brand-content h2, .brand-description, .dose-illustration, .brand-features, .brand-footer { display: none; }
    .login-panel { padding: 32px 20px; }
    .login-card { padding: 28px; }
}
@media (max-width: 380px) {
    .brand-panel { gap: 12px; padding: 16px; }
    .brand-product { font-size: 21px; }
    .cloud-label { margin-left: 6px; font-size: 9px; }
    .tracerco-logo img { width: 91px; height: 35px; }
    .login-panel { padding: 24px 12px; }
    .login-card { padding: 24px 20px; }
    .login-heading h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
