:root {
    --brand: #176b68;
    --brand-dark: #104d4b;
    --brand-soft: #dcebea;
    --accent: #e7473d;
    --ink: #172326;
    --muted: #637174;
    --line: #d6dfde;
    --surface: #ffffff;
    --canvas: #eef3f2;
    --danger: #a92d28;
    --danger-bg: #fff1f0;
    --focus: rgba(23, 107, 104, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--canvas);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--canvas);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 44%) minmax(440px, 56%);
}

.fleet-brand {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 46px clamp(36px, 5vw, 76px) 34px;
    color: #ffffff;
    background: var(--brand);
}

.fleet-brand::before {
    position: absolute;
    top: 0;
    right: 34px;
    width: 1px;
    height: 38%;
    background: rgba(255, 255, 255, 0.24);
    content: "";
}

.fleet-brand__content,
.fleet-brand__footer {
    position: relative;
    z-index: 1;
}

.fleet-brand__logo {
    display: block;
    width: 135px;
    height: 84px;
    object-fit: contain;
    margin: 0 0 clamp(64px, 11vh, 116px);
    background: #ffffff;
}

.fleet-brand__copy {
    min-width: 0;
    max-width: 520px;
}

.fleet-brand__eyebrow,
.login-heading__overline {
    display: block;
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fleet-brand__eyebrow {
    color: #cce2e0;
}

.fleet-brand h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.02;
    font-weight: 750;
    letter-spacing: 0;
}

.fleet-brand__copy p {
    max-width: 430px;
    margin: 24px 0 0;
    color: #dcecea;
    font-size: 19px;
    line-height: 1.5;
}

.fleet-visual {
    position: relative;
    width: min(100%, 520px);
    height: 150px;
    margin-top: clamp(44px, 8vh, 90px);
}

.fleet-visual__car {
    position: absolute;
    right: 12%;
    bottom: 36px;
    color: #ffffff;
    font-size: 92px;
}

.fleet-visual__road {
    position: absolute;
    right: 0;
    bottom: 26px;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.92);
}

.fleet-visual__road::after {
    position: absolute;
    right: 0;
    bottom: -14px;
    width: 66%;
    height: 3px;
    background: rgba(255, 255, 255, 0.36);
    content: "";
}

.fleet-visual__marker {
    position: absolute;
    right: 2%;
    bottom: 30px;
    width: 10px;
    height: 64px;
    border-radius: 3px 3px 0 0;
    background: var(--accent);
}

.fleet-brand__footer {
    margin: 24px 0 0;
    color: #cce2e0;
    font-size: 13px;
}

.login-access {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px clamp(28px, 7vw, 110px);
    background: var(--surface);
}

.login-access__inner {
    width: 100%;
    max-width: 470px;
}

.login-heading {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-heading__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bdd5d3;
    border-radius: 8px;
    color: var(--brand);
    background: var(--brand-soft);
    font-size: 19px;
}

.login-heading__overline {
    margin-bottom: 3px;
    color: var(--brand);
}

.login-heading h2 {
    margin: 0;
    font-size: 31px;
    line-height: 1.15;
    font-weight: 720;
    letter-spacing: 0;
}

.login-intro {
    margin: 20px 0 30px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid #efbbb7;
    border-radius: 6px;
    color: var(--danger);
    background: var(--danger-bg);
    font-size: 14px;
    line-height: 1.45;
}

.login-alert i {
    margin-top: 3px;
}

.login-form {
    display: grid;
    gap: 19px;
}

.field-group label {
    display: block;
    margin: 0 0 8px;
    color: #344346;
    font-size: 14px;
    font-weight: 650;
}

.field-control {
    position: relative;
}

.field-control input,
.field-control select {
    width: 100%;
    height: 50px;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: 0;
    color: var(--ink);
    background: #ffffff;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field-control input {
    padding: 0 46px;
}

.field-control select {
    appearance: none;
    padding: 0 44px 0 46px;
    cursor: pointer;
}

.field-control input::placeholder {
    color: #8b9698;
}

.field-control input:focus,
.field-control select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--focus);
}

.field-control__icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 17px;
    width: 17px;
    color: #758487;
    font-size: 16px;
    text-align: center;
    transform: translateY(-50%);
    pointer-events: none;
}

.field-control__select-arrow {
    position: absolute;
    top: 50%;
    right: 17px;
    color: #758487;
    font-size: 11px;
    transform: translateY(-50%);
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    color: #68777a;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.password-toggle:focus-visible {
    outline: 3px solid var(--focus);
}

.login-submit {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 5px;
    padding: 0 22px;
    border: 1px solid var(--brand-dark);
    border-radius: 6px;
    color: #ffffff;
    background: var(--brand);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.login-submit:hover {
    background: var(--brand-dark);
}

.login-submit:active {
    transform: translateY(1px);
}

.login-submit:focus-visible {
    outline: 4px solid var(--focus);
    outline-offset: 2px;
}

.login-submit[disabled] {
    cursor: wait;
    opacity: 0.72;
}

.login-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 26px 0 0;
    color: #718083;
    font-size: 13px;
}

.login-help i {
    color: var(--brand);
}

@media (max-width: 900px) {
    .login-page {
        grid-template-columns: minmax(280px, 38%) minmax(420px, 62%);
    }

    .fleet-brand {
        padding-right: 30px;
        padding-left: 30px;
    }

    .fleet-brand h1 {
        font-size: 44px;
    }

    .fleet-visual__car {
        font-size: 72px;
    }
}

@media (max-width: 720px) {
    .login-page {
        min-height: 100vh;
        display: block;
    }

    .fleet-brand {
        min-height: 220px;
        padding: 24px 22px 30px;
    }

    .fleet-brand::before,
    .fleet-visual,
    .fleet-brand__footer {
        display: none;
    }

    .fleet-brand__content {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: center;
        gap: 22px;
    }

    .fleet-brand__logo {
        width: 92px;
        height: 58px;
        margin: 0;
    }

    .fleet-brand__eyebrow {
        margin-bottom: 5px;
    }

    .fleet-brand h1 {
        font-size: 32px;
        line-height: 1.08;
    }

    .fleet-brand__copy p {
        margin-top: 8px;
        font-size: 15px;
    }

    .login-access {
        min-height: calc(100vh - 220px);
        align-items: flex-start;
        padding: 34px 22px 42px;
    }

    .login-access__inner {
        max-width: 520px;
    }
}

@media (max-width: 420px) {
    .fleet-brand {
        min-height: 196px;
    }

    .fleet-brand__content {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 16px;
    }

    .fleet-brand__logo {
        width: 74px;
        height: 46px;
    }

    .fleet-brand h1 {
        max-width: 190px;
        font-size: 27px;
    }

    .fleet-brand__copy p {
        font-size: 14px;
    }

    .login-access {
        min-height: calc(100vh - 196px);
        padding: 28px 18px 36px;
    }

    .login-heading__icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .login-heading h2 {
        font-size: 27px;
    }

    .login-intro {
        margin-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
