:root {
    color-scheme: light;
    --login-navy: #092c4e;
    --login-ink: #172f43;
    --login-muted: #65717b;
    --login-gold: #ffb64a;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    color: var(--login-ink);
    background: #f8f9f6;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: var(--login-navy); text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #307c85; outline-offset: 4px; }
[hidden] { display: none !important; }

.login-skip {
    position: fixed;
    top: 12px;
    left: 30px;
    z-index: 2;
    padding: 12px 20px;
    transform: translateY(-160%);
    border-radius: 2px;
    background: white;
}
.login-skip:focus { transform: translateY(0); }

.login-shell {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, .38fr) minmax(0, .62fr);
    padding: 0 20px 0 0;
}

/* Background photo by Maksim Tarasov (https://unsplash.com/@awsmsky) on Unsplash.
   Source: https://unsplash.com/photos/red-hatchback-vehicle-on-asphalt-road-bFTVxTo266E
   License: https://unsplash.com/license (attribution optional). */
.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 780px;
    overflow: hidden;
    padding: 44px clamp(28px, 3.4vw, 64px);
    border-radius: 2px;
    background-color: var(--login-navy);
    background-image: linear-gradient(180deg, #092c4ee8 0%, #092c4ed6 38%, #092c4e66 76%, #092c4e99 100%), url("../images/login-road-maksim-tarasov.jpg");
    background-position: 72% center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    isolation: isolate;
}
.login-logo { width: 340px; max-width: 100%; height: auto; filter: brightness(0) invert(1); }
.login-brand-copy { position: relative; z-index: 1; margin-top: clamp(20px, 3vh, 40px); }
.login-brand-copy h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4.4vw, 76px);
    font-weight: 400;
    letter-spacing: -3px;
    line-height: 1.04;
}
.login-brand-copy h2 em {
    color: var(--login-gold);
    font-weight: 400;
    text-decoration: underline;
    text-decoration-thickness: .025em;
    text-underline-offset: .14em;
}

.login-content-panel { display: flex; flex-direction: column; min-width: 0; padding: 27px clamp(28px, 4.5vw, 86px) 9px; }
.login-header { display: none; }
.login-mobile-logo { display: none; }
.login-main { width: 100%; max-width: 400px; margin: auto 0; padding: 62px 0; }
.login-intro { margin-bottom: 34px; }
.login-intro h1 { margin: 0; font-size: clamp(32px, 3vw, 40px); font-weight: 600; letter-spacing: -1.5px; line-height: 1.2; }
.login-intro p { margin: 12px 0 0; color: var(--login-muted); font-size: 15px; line-height: 1.6; }

.login-field { margin-bottom: 23px; }
.login-field > label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 600; }
.login-field input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #cbd3d5;
    border-radius: 2px;
    background: #fff;
    color: var(--login-ink);
    font-size: 16px;
    transition: border-color .15s, box-shadow .15s;
}
.login-field input::placeholder { color: #7d878e; font-size: 14px; }
.login-field input:focus { border-color: #477c82; outline: none; box-shadow: 0 0 0 3px #477c8226; }
.login-password { position: relative; }
.login-password input { padding-right: 58px; }
.login-password-toggle {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: #657782;
    cursor: pointer;
}
.login-password-toggle:hover { background: #eff4f2; }
.login-password-toggle svg { width: 21px; height: 21px; }
.login-eye-slash { display: none; }
.login-password-toggle[aria-pressed="true"] .login-eye-slash { display: block; }
.login-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 1px 0 28px; font-size: 12px; }
.login-remember { display: inline-flex; align-items: center; gap: 9px; min-height: 24px; color: #53616c; cursor: pointer; }
.login-remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--login-navy); cursor: pointer; }
.login-options a { font-weight: 600; text-decoration: none; }
.login-options a:hover { text-decoration: underline; }

.login-submit {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    border: 1px solid var(--login-navy);
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}
.login-submit { background: var(--login-navy); color: #fff; }
.login-submit:hover { background: #16466b; }
.login-divider { display: flex; align-items: center; gap: 16px; margin: 32px 0 24px; color: #6d787e; font-size: 9px; font-weight: 600; letter-spacing: 1.3px; white-space: nowrap; }
.login-divider::before, .login-divider::after { flex: 1; height: 1px; background: #dce1df; content: ""; }
.login-sso {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #8c8c8c;
    background: #fff;
    color: #5e5e5e;
    font-family: "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}
.login-sso:hover { color: #5e5e5e; text-decoration: none; }
.login-sso img { display: block; flex: 0 0 21px; width: 21px; height: 21px; }
.login-sso-hint { margin: 13px 0 0; color: var(--login-muted); font-size: 11px; line-height: 1.5; text-align: center; }
.login-footer { padding: 18px 28px; background: var(--login-navy); color: #e1e9ee; font-size: 11px; line-height: 1.6; text-align: center; }

.login-error { display: block; margin-top: 7px; color: #ad3030; font-size: 12px; line-height: 1.5; }
.login-error:empty, .validation-summary-valid { display: none; }
.login-field input.input-validation-error { border-color: #ad3030; }
.login-alert.validation-summary-errors { margin-bottom: 24px; padding: 14px 16px; border: 1px solid #e7bcbc; border-radius: 2px; background: #fff3f1; color: #922727; font-size: 13px; line-height: 1.5; }
.login-alert ul { margin: 0; padding-left: 18px; }

.login-verification-icon { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 24px; border: 1px solid #dce3e3; border-radius: 2px; background: #edf2f1; color: var(--login-navy); }
.login-verification-icon svg { width: 26px; height: 26px; }
.login-verification-methods { display: grid; gap: 14px; }
.login-verification-method { display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 20px; border: 1px solid #cbd3d5; border-radius: 2px; background: #fff; text-decoration: none; transition: border-color .15s, background .15s; }
.login-verification-method:hover { border-color: #477c82; background: #f0f5f3; text-decoration: none; }
.login-method-icon { flex: 0 0 24px; width: 24px; height: 24px; }
.login-method-copy { display: grid; gap: 5px; min-width: 0; }
.login-method-copy strong { font-size: 14px; font-weight: 600; line-height: 1.5; }
.login-method-copy > span { color: var(--login-muted); font-size: 12px; line-height: 1.5; }
.login-method-arrow { flex: 0 0 16px; width: 16px; height: 16px; margin-left: auto; }
.login-field .login-code { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: .25em; text-align: center; }
.login-field .login-code::placeholder { letter-spacing: normal; }
.login-code-help { margin: 22px 0 0; color: var(--login-muted); font-size: 13px; line-height: 1.8; text-align: center; }
.login-code-help a { display: inline-block; font-weight: 600; }
.login-back { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; min-height: 44px; margin: 24px auto 0; font-size: 13px; text-decoration: none; }
.login-password-hint { margin: -3px 0 24px; color: var(--login-muted); font-size: 12px; line-height: 1.6; }
.login-dealer-options { display: grid; gap: 12px; min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.login-dealer-options legend { margin-bottom: 12px; padding: 0; font-size: 13px; font-weight: 600; }
.login-dealer-choice { display: flex; align-items: center; gap: 14px; min-height: 78px; padding: 18px; border: 1px solid #cbd3d5; border-radius: 2px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.login-dealer-choice:hover { border-color: #477c82; background: #f0f5f3; }
.login-dealer-choice:has(input:checked) { border-color: var(--login-navy); background: #edf2f1; box-shadow: inset 0 0 0 1px var(--login-navy); }
.login-dealer-choice:focus-within { outline: 3px solid #307c85; outline-offset: 3px; }
.login-dealer-choice input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--login-navy); }
.login-dealer-choice .login-method-copy { overflow-wrap: anywhere; }
.login-dealer-choice.is-disabled, .login-dealer-choice.is-disabled:hover { border-color: #d6dadd; background: #eef0f1; color: #626d75; cursor: not-allowed; }
.login-dealer-choice.is-disabled .login-method-copy strong { color: #626d75; }
.login-dealer-choice.is-disabled input { cursor: not-allowed; }
.login-dealer-choice .login-dealer-status { color: #79581f; font-size: 12px; line-height: 1.6; }
.login-dealer-notice { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #e4d3ad; border-radius: 2px; background: #fff8e8; color: #79581f; font-size: 13px; line-height: 1.6; }
.login-dealer-submit:disabled { border-color: #d6dadd; background: #dfe3e5; color: #626d75; cursor: not-allowed; }
#dealer-error:not(:empty) { margin: -10px 0 20px; }

@media (min-width: 1700px) {
    .login-shell { padding: 0 28px 0 0; }
}

@media (max-width: 1050px) {
    .login-brand-panel { padding: 36px 24px; background-position: 80% center; }
    .login-content-panel { padding-right: 30px; padding-left: 42px; }
}

@media (max-width: 760px) {
    .login-shell { display: flex; flex-direction: column; padding: 0; }
    .login-brand-panel { display: none; }
    .login-content-panel { flex: 1; padding: 28px 28px 22px; border-top: 5px solid var(--login-navy); }
    .login-header { display: flex; align-items: center; }
    .login-mobile-logo { display: block; width: 170px; max-width: 52%; height: auto; }
    .login-main { padding: 64px 0 48px; }
}

@media (max-width: 380px) {
    .login-content-panel { padding-right: 20px; padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
