:root {
    --auth-navy: #071a2f;
    --auth-blue: #155eef;
    --auth-blue-dark: #0c4fc7;
    --auth-cyan: #37b7c3;
    --auth-gold: #f5b942;
    --auth-ink: #10243e;
    --auth-muted: #52657a;
    --auth-line: #dce5ef;
    --auth-surface: #f5f8fc;
}

html,
body.auth-body { min-height: 100%; }

body.auth-body {
    margin: 0;
    color: var(--auth-ink);
    background: #fff;
    overflow-x: hidden;
}

.auth-experience {
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(23rem, 46%) minmax(0, 54%);
    background: #fff;
}

.auth-brand-pane {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(2.25rem, 4.8vw, 4.75rem) clamp(2.25rem, 5.8vw, 6rem);
    color: #fff;
    background: var(--auth-navy);
}

.auth-brand-pane::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 34rem;
    height: 34rem;
    inset-inline-end: -19rem;
    inset-block-start: -21rem;
    border: 7rem solid rgba(55, 183, 195, .045);
    border-radius: 50%;
}

.auth-brand-link,
.auth-form-brand {
    display: inline-flex;
    align-items: center;
    gap: .78rem;
    width: fit-content;
    color: inherit;
    text-decoration: none;
    font-size: 1.48rem;
    font-weight: 800;
    letter-spacing: -.045em;
}

.auth-brand-link:hover,
.auth-brand-link:focus,
.auth-form-brand:hover,
.auth-form-brand:focus { color: inherit; }

.auth-brand-link > span:last-child > span,
.auth-form-brand > span:last-child > span { color: #63a0ff; }

.auth-brand-mark {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    flex: 0 0 auto;
    border-radius: .75rem;
    color: var(--auth-navy);
    background: var(--auth-gold);
    font-size: 1.45rem;
    box-shadow: 0 .5rem 1.6rem rgba(0, 0, 0, .14);
}

.auth-brand-copy {
    position: relative;
    z-index: 2;
    max-width: 38rem;
    margin-block: auto 1.5rem;
    padding-block-start: 3rem;
}

.auth-brand-copy h2 {
    max-width: 12ch;
    margin: 0 0 1.4rem;
    color: #fff;
    font-size: clamp(2.75rem, 4.7vw, 4.6rem);
    font-weight: 760;
    line-height: .99;
    letter-spacing: -.062em;
}

.auth-brand-copy p {
    max-width: 38rem;
    margin: 0;
    color: #b9cbe0;
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.72;
}

.auth-route-art {
    position: relative;
    z-index: 1;
    width: min(48rem, 118%);
    margin: 1.5rem -7% -1.25rem;
    opacity: .96;
}

.auth-route-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.auth-route-map { fill: none; stroke: rgba(99, 160, 255, .22); stroke-width: 3; }
.auth-route-line { fill: none; stroke: var(--auth-cyan); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.auth-route-point { fill: var(--auth-navy); stroke: #8ee8ef; stroke-width: 4; }
.auth-route-point--gold { stroke: var(--auth-gold); }

.auth-route-truck {
    position: absolute;
    inset-inline-start: 52%;
    inset-block-start: 42%;
    display: grid;
    width: 3.7rem;
    height: 3.7rem;
    translate: 0 -50%;
    place-items: center;
    color: var(--auth-navy);
    background: #fff;
    border: 4px solid var(--auth-cyan);
    border-radius: 50%;
    font-size: 1.75rem;
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .22);
}

.auth-form-pane {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 100svh;
    grid-template-rows: auto 1fr auto;
    background: #fff;
}

.auth-toolbar {
    display: flex;
    min-height: 5.75rem;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem clamp(1.5rem, 5vw, 5rem);
}

.auth-toolbar .language-selector { min-width: 8.25rem; }
.auth-toolbar .language-selector::before { content: "\edcf"; color: var(--auth-muted); font-family: "remixicon"; font-size: 1.1rem; }

.auth-toolbar .form-select {
    min-height: 2.55rem;
    color: var(--auth-ink);
    background-color: #fff;
    border-color: var(--auth-line);
    border-radius: .65rem;
    font-size: .875rem;
    font-weight: 650;
}

.auth-form-shell {
    width: min(100% - 3rem, 32rem);
    align-self: center;
    justify-self: center;
    padding-block: 1rem 3rem;
}

.auth-form-brand {
    margin-bottom: 2.15rem;
    color: var(--auth-ink);
    font-size: 1.38rem;
}

.auth-form-brand .auth-brand-mark { width: 2.45rem; height: 2.45rem; border-radius: .68rem; font-size: 1.25rem; }
.auth-heading { margin-bottom: 2.15rem; }

.auth-heading h1 {
    margin: 0 0 .5rem;
    color: var(--auth-ink);
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.auth-heading p { margin: 0; color: var(--auth-muted); font-size: 1.02rem; line-height: 1.6; }
.auth-alert:empty, .auth-alert.validation-summary-valid { display: none; }
.auth-alert { margin-bottom: 1.25rem; border: 1px solid currentColor; border-radius: .75rem; }
.auth-field { margin-bottom: 1.3rem; }

.auth-field .form-label {
    margin-bottom: .55rem;
    color: var(--auth-ink);
    font-size: .9rem;
    font-weight: 700;
}

.auth-control-wrap { position: relative; }

.auth-control-icon {
    position: absolute;
    z-index: 2;
    inset-inline-start: 1rem;
    top: 50%;
    translate: 0 -50%;
    color: #6d8095;
    font-size: 1.22rem;
    pointer-events: none;
}

.auth-control.form-control {
    min-height: 3.45rem;
    padding-inline: 3rem 1rem;
    color: var(--auth-ink);
    background: #fff;
    border: 1px solid #c9d5e2;
    border-radius: .72rem;
    box-shadow: none;
    font-size: 1rem;
    font-weight: 520;
}

.auth-control.form-control::placeholder { color: #8797a9; opacity: 1; }
.auth-control.form-control:hover { border-color: #9eb0c3; }
.auth-control.form-control:focus { border-color: var(--auth-blue); box-shadow: 0 0 0 .22rem rgba(21, 94, 239, .14); }
.auth-control-wrap--password .auth-control.form-control { padding-inline-end: 3.2rem; }

.auth-password-toggle {
    position: absolute;
    z-index: 3;
    inset-inline-end: .55rem;
    top: 50%;
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    translate: 0 -50%;
    place-items: center;
    padding: 0;
    color: #5f7389;
    background: transparent;
    border: 0;
    border-radius: .5rem;
    font-size: 1.15rem;
}

.auth-password-toggle:hover { color: var(--auth-blue-dark); background: var(--auth-surface); }
.auth-options { display: flex; align-items: center; justify-content: space-between; margin: .1rem 0 1.5rem; }
.auth-options .form-check { min-height: 1.35rem; margin: 0; }
.auth-options .form-check-input { width: 1.15rem; height: 1.15rem; margin-top: .12rem; border-color: #9eafc1; }
.auth-options .form-check-input:checked { background-color: var(--auth-blue); border-color: var(--auth-blue); }
.auth-options .form-check-label { padding-inline-start: .18rem; color: #334a62; font-size: .93rem; }

.auth-submit.btn {
    min-height: 3.45rem;
    color: #fff;
    background: var(--auth-blue);
    border: 1px solid var(--auth-blue);
    border-radius: .72rem;
    box-shadow: 0 .7rem 1.6rem rgba(21, 94, 239, .2);
    font-size: 1rem;
    font-weight: 750;
}

.auth-submit.btn:hover, .auth-submit.btn:focus { color: #fff; background: var(--auth-blue-dark); border-color: var(--auth-blue-dark); }
.auth-submit.btn:focus-visible { box-shadow: 0 0 0 .25rem rgba(21, 94, 239, .25); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 1.35rem 0;
    color: var(--auth-muted);
    font-size: .82rem;
    font-weight: 650;
    text-align: center;
}

.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--auth-line); }
.auth-divider span { white-space: nowrap; }

.auth-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--auth-line);
}

.auth-home-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--auth-blue-dark); font-weight: 700; text-decoration: none; }
.auth-home-link:hover { color: var(--auth-blue); text-decoration: underline; }
.auth-portal-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .55rem .85rem; margin-top: 1.15rem; color: #9aa8b7; }
.auth-portal-links a { color: var(--auth-muted); font-size: .88rem; font-weight: 650; text-decoration: none; }
.auth-portal-links a:hover { color: var(--auth-blue-dark); text-decoration: underline; }
.auth-footer { padding: 1.25rem clamp(1.5rem, 5vw, 5rem) 1.75rem; color: #7c8da0; font-size: .78rem; text-align: center; }
.auth-form-pane .field-validation-error { display: block; margin-top: .38rem; font-size: .82rem; font-weight: 600; }

[dir="rtl"] .auth-brand-copy h2 { letter-spacing: -.035em; }
[dir="rtl"] .auth-brand-copy, [dir="rtl"] .auth-heading, [dir="rtl"] .auth-field, [dir="rtl"] .auth-options { text-align: right; }
[dir="rtl"] .auth-route-art { transform: scaleX(-1); }
[dir="rtl"] .auth-route-truck i { transform: scaleX(-1); }

@media (max-width: 991.98px) {
    .auth-experience { grid-template-columns: minmax(19rem, 42%) minmax(0, 58%); }
    .auth-brand-pane { padding-inline: 2.4rem; }
    .auth-brand-copy h2 { font-size: clamp(2.45rem, 5vw, 3.5rem); }
}

@media (max-width: 767.98px) {
    body.auth-body { overflow-y: auto; }
    .auth-experience { min-height: 100svh; grid-template-columns: 1fr; grid-template-rows: 12.75rem auto; }
    .auth-brand-pane { min-height: 0; padding: 1.25rem 1.5rem 1.1rem; }
    .auth-brand-link { font-size: 1.28rem; }
    .auth-brand-mark { width: 2.35rem; height: 2.35rem; border-radius: .65rem; font-size: 1.2rem; }
    .auth-brand-copy { max-width: 22rem; margin: auto 0 0; padding: 1rem 0 0; }
    .auth-brand-copy h2 { max-width: 17ch; margin-bottom: .45rem; font-size: clamp(1.75rem, 7.8vw, 2.35rem); line-height: 1.04; }
    .auth-brand-copy p { display: none; }
    .auth-route-art { position: absolute; width: 19rem; inset-inline-end: -2rem; inset-block-end: -.9rem; margin: 0; opacity: .5; }
    .auth-route-truck { width: 2.7rem; height: 2.7rem; border-width: 3px; font-size: 1.2rem; }
    .auth-form-pane { min-height: calc(100svh - 12.75rem); grid-template-rows: auto 1fr auto; }
    .auth-toolbar { min-height: 4.2rem; padding: .9rem 1.25rem .25rem; }
    .auth-form-shell { width: min(100% - 2.5rem, 32rem); align-self: start; padding: 1.1rem 0 2rem; }
    .auth-form-brand { display: none; }
    .auth-heading { margin-bottom: 1.6rem; }
    .auth-heading h1 { font-size: 2rem; }
    .auth-heading p { font-size: .95rem; }
    .auth-footer { padding: .5rem 1.25rem 1.25rem; }
}

@media (max-width: 420px) {
    .auth-experience { grid-template-rows: 11.75rem auto; }
    .auth-brand-pane { padding-inline: 1.15rem; }
    .auth-brand-copy h2 { font-size: 1.72rem; }
    .auth-form-pane { min-height: calc(100svh - 11.75rem); }
    .auth-toolbar { padding-inline: 1.1rem; }
    .auth-form-shell { width: calc(100% - 2.2rem); }
    .auth-control.form-control, .auth-submit.btn { min-height: 3.25rem; }
    .auth-links { margin-top: 1.6rem; padding-top: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-control.form-control, .auth-submit.btn, .auth-password-toggle { transition: none; }
}
