:root {
    --auth-page: #070809;
    --auth-panel: #1a1d21;
    --auth-control: #111316;
    --auth-control-hover: #15181c;
    --auth-text: #f7f8f9;
    --auth-secondary: #c3c7cd;
    --auth-muted: #9298a1;
    --auth-line: rgba(255, 255, 255, .13);
    --auth-line-strong: rgba(255, 255, 255, .24);
    --auth-focus: #8eb0ff;
    --auth-success: #67d6a4;
    --auth-warning: #f1bd6b;
    --auth-danger: #ff8d8d;
    --auth-radius: 20px;
    --auth-control-radius: 14px;
    --auth-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--auth-page); }
body { background: var(--auth-page); color: var(--auth-text); font: 16px/1.55 var(--auth-font); margin: 0; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
a, button, input { letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--auth-focus); outline-offset: 3px; }

.auth-page { align-items: center; display: flex; justify-content: center; min-height: 100vh; padding: 40px 24px; }
.auth-shell { width: min(100%, 520px); }
.auth-brand { align-items: center; display: flex; flex-direction: column; margin: 0 auto 24px; text-align: center; }
.auth-logo { display: block; height: 112px; max-width: 180px; object-fit: contain; width: auto; }
.auth-brand-fallback { color: var(--auth-text); font-size: 20px; font-weight: 750; }
.auth-brand-tagline { color: var(--auth-muted); font-size: 14px; margin-top: 10px; }

.auth-panel { background: var(--auth-panel); border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--auth-radius); box-shadow: 0 28px 80px rgba(0, 0, 0, .38); padding: 44px; }
.auth-panel h1 { color: var(--auth-text); font-size: 38px; font-weight: 720; line-height: 1.12; margin: 0; }
.auth-intro { color: var(--auth-secondary); font-size: 17px; line-height: 1.65; margin: 14px 0 28px; }
.auth-context { display: block; margin-bottom: 10px; color: var(--auth-secondary); font-size: 14px; font-weight: 700; }
.auth-language { align-items: center; display: flex; gap: 8px; justify-content: flex-end; margin: -18px -18px 20px 0; }
.auth-language label { color: var(--auth-muted); font-size: 13px; font-weight: 650; }
.auth-language select { background: var(--auth-control); border: 1px solid var(--auth-line); border-radius: 999px; color: var(--auth-secondary); cursor: pointer; min-height: 40px; padding: 8px 12px; }
.auth-language button { background: transparent; border: 0; color: var(--auth-secondary); cursor: pointer; font-size: 13px; font-weight: 700; min-height: 40px; padding: 6px 8px; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.auth-language button:hover { color: var(--auth-text); text-decoration-color: currentColor; }
.auth-panel > :last-child { margin-bottom: 0; }

.auth-form { display: grid; gap: 20px; }
.auth-field { display: grid; gap: 8px; }
.auth-field > span { color: var(--auth-secondary); font-size: 15px; font-weight: 650; }
.auth-input { background: var(--auth-control); border: 1px solid var(--auth-line-strong); border-radius: var(--auth-control-radius); color: var(--auth-text); font-size: 16px; min-height: 56px; padding: 14px 16px; width: 100%; }
.auth-input:hover { background: var(--auth-control-hover); border-color: rgba(255, 255, 255, .32); }
.auth-input:focus { border-color: var(--auth-focus); box-shadow: 0 0 0 3px rgba(142, 176, 255, .18); outline: 0; }
.auth-input::placeholder { color: #777e87; opacity: 1; }
.auth-input:disabled { cursor: not-allowed; opacity: .58; }

.auth-check { align-items: center; color: var(--auth-secondary); display: flex; font-size: 14px; gap: 10px; }
.auth-check input { accent-color: #fff; height: 18px; width: 18px; }
.auth-button { align-items: center; background: #fff; border: 1px solid #fff; border-radius: 999px; color: #090a0c; cursor: pointer; display: inline-flex; font-size: 16px; font-weight: 720; justify-content: center; min-height: 56px; padding: 14px 24px; width: 100%; }
.auth-button:hover { background: #e9ebee; border-color: #e9ebee; }
.auth-button:disabled { cursor: wait; opacity: .62; }
.auth-button-secondary { background: transparent; border-color: var(--auth-line-strong); color: var(--auth-text); }
.auth-button-secondary:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .34); }

.auth-links { color: var(--auth-muted); font-size: 14px; margin: 24px 0 0; text-align: center; }
.auth-links a, .auth-text-link { color: var(--auth-text); font-weight: 680; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .32); text-underline-offset: 4px; }
.auth-links a:hover, .auth-text-link:hover { text-decoration-color: currentColor; }
.auth-recovery { border-top: 1px solid var(--auth-line); margin-top: 28px; padding-top: 24px; text-align: center; }
.auth-recovery strong { color: var(--auth-secondary); display: block; font-size: 15px; }
.auth-recovery p { color: var(--auth-muted); font-size: 14px; margin: 9px auto 0; max-width: 360px; }
.auth-recovery a { display: inline-block; margin-top: 14px; }
.auth-recovery .auth-recovery-primary { margin-top: 0; }
.auth-helper { color: var(--auth-muted); font-size: 14px; margin-top: -12px; }
.auth-password-control { display: block; position: relative; }
.auth-password-control .auth-input { padding-right: 112px; }
.auth-password-toggle { background: transparent; border: 0; color: var(--auth-secondary); cursor: pointer; font-size: 14px; font-weight: 680; min-height: 44px; padding: 0 14px; position: absolute; right: 6px; top: 6px; }
.auth-password-toggle:hover { color: var(--auth-text); }
.auth-state-actions { display: grid; gap: 12px; margin-top: 8px; }

.auth-notice { align-items: flex-start; border: 1px solid var(--auth-line); border-radius: 12px; color: var(--auth-secondary); display: flex; font-size: 14px; gap: 11px; margin: 0 0 24px; padding: 13px 14px; }
.auth-notice::before { align-items: center; border: 1px solid currentColor; border-radius: 50%; content: "i"; display: inline-flex; flex: 0 0 20px; font-size: 12px; font-weight: 800; height: 20px; justify-content: center; margin-top: 1px; width: 20px; }
.auth-notice-success { background: rgba(103, 214, 164, .08); color: var(--auth-success); }
.auth-notice-success::before { content: "✓"; }
.auth-notice-warning { background: rgba(241, 189, 107, .08); color: var(--auth-warning); }
.auth-notice-warning::before { content: "!"; }
.auth-notice-error { background: rgba(255, 141, 141, .08); color: var(--auth-danger); }
.auth-notice-error::before { content: "!"; }
.auth-notice span { color: inherit; }

.auth-state { text-align: center; }
.auth-state .auth-intro { margin-inline: auto; max-width: 390px; }
.auth-state-mark { align-items: center; background: #111316; border: 1px solid var(--auth-line); border-radius: 18px; color: var(--auth-secondary); display: inline-flex; font-size: 24px; height: 64px; justify-content: center; margin-bottom: 24px; width: 64px; }
.auth-state .auth-button { margin-top: 8px; }
.auth-meta { border-top: 1px solid var(--auth-line); color: var(--auth-muted); font-size: 14px; margin-top: 26px; padding-top: 22px; }
.auth-footer { color: var(--auth-muted); font-size: 14px; margin: 22px auto 0; text-align: center; }
.auth-footer a { color: var(--auth-secondary); font-weight: 650; }
.auth-sr-only {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* The Fleet Workspace entrance has its own product-grade authentication shell. */
.auth-myfleet-login {
    --auth-panel: #14171a;
    --auth-control: #0e1114;
    --auth-control-hover: #12161a;
    --auth-line: rgba(255, 255, 255, .1);
    --auth-line-strong: rgba(255, 255, 255, .17);
    background: #090b0d;
}
.auth-myfleet-login .auth-page {
    padding: clamp(24px, 4vw, 64px);
}
.auth-myfleet-login .auth-shell {
    width: min(100%, 1180px);
}
.auth-myfleet-login .auth-shell > .auth-brand {
    display: none;
}
.myfleet-auth-composition {
    background: #111417;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 28px;
    box-shadow: 0 36px 110px rgba(0, 0, 0, .48);
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr);
    min-height: min(760px, calc(100vh - 128px));
    overflow: hidden;
}
.myfleet-auth-visual {
    background: #080a0c;
    min-height: 650px;
    overflow: hidden;
    position: relative;
}
.myfleet-auth-visual::after {
    background: rgba(2, 4, 6, .16);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}
.myfleet-auth-visual > img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: 62% center;
    position: absolute;
    width: 100%;
}
.myfleet-auth-visual-copy {
    left: clamp(32px, 4vw, 60px);
    max-width: 390px;
    position: absolute;
    top: clamp(38px, 5vw, 68px);
    z-index: 1;
}
.myfleet-auth-visual-copy > span {
    color: rgba(255, 255, 255, .72);
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 14px;
}
.myfleet-auth-visual-copy p {
    color: #f7f8f9;
    font-size: clamp(28px, 2.7vw, 42px);
    font-weight: 710;
    line-height: 1.13;
    margin: 0;
    max-width: 360px;
}
.myfleet-auth-panel {
    background: #14171a;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(42px, 5vw, 72px);
}
.myfleet-auth-chrome {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: clamp(44px, 6vh, 72px);
}
.myfleet-auth-brand {
    align-items: center;
    color: var(--auth-text);
    display: flex;
    font-size: 16px;
    font-weight: 740;
    gap: 12px;
    min-width: 0;
}
.myfleet-auth-brand picture {
    display: block;
    flex: 0 0 auto;
}
.myfleet-auth-brand img {
    display: block;
    height: 42px;
    object-fit: contain;
    width: 36px;
}
.myfleet-auth-language {
    gap: 6px;
    margin: 0;
}
.myfleet-language-pill {
    align-items: center;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--auth-line);
    border-radius: 999px;
    display: inline-flex;
    min-height: 42px;
    padding: 0 10px 0 12px;
    position: relative;
}
.myfleet-language-pill:hover {
    background: rgba(255, 255, 255, .075);
    border-color: rgba(255, 255, 255, .18);
}
.myfleet-language-pill > svg {
    fill: none;
    flex: 0 0 auto;
    height: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 17px;
}
.myfleet-language-pill select {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--auth-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 650;
    min-height: 40px;
    max-width: 112px;
    outline: 0;
    padding: 0 24px 0 8px;
}
.myfleet-language-pill select option {
    background: #171a1e;
    color: var(--auth-text);
}
.myfleet-language-chevron {
    pointer-events: none;
    position: absolute;
    right: 9px;
    width: 15px !important;
}
.myfleet-language-submit {
    align-items: center;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--auth-line);
    border-radius: 50%;
    color: var(--auth-secondary);
    cursor: pointer;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 42px;
}
.myfleet-language-submit:hover {
    background: rgba(255, 255, 255, .09);
    color: var(--auth-text);
}
.auth-js .myfleet-language-submit {
    display: none;
}
.myfleet-language-submit svg {
    fill: none;
    height: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 17px;
}
.myfleet-auth-heading {
    margin-bottom: 30px;
}
.myfleet-auth-heading .auth-context {
    color: #9da4ad;
    font-size: 13px;
    margin-bottom: 13px;
}
.myfleet-auth-heading h1 {
    font-size: clamp(38px, 4vw, 48px);
    letter-spacing: 0;
}
.myfleet-auth-heading .auth-intro {
    color: #aeb4bc;
    margin-bottom: 0;
    max-width: 440px;
}
.myfleet-auth-panel .auth-form {
    gap: 18px;
}
.myfleet-auth-panel .auth-field {
    gap: 9px;
}
.myfleet-auth-panel .auth-field > label {
    color: #d8dbe0;
    font-size: 14px;
    font-weight: 650;
}
.myfleet-auth-panel .auth-input {
    background: #0d1013;
    border-color: rgba(255, 255, 255, .15);
    border-radius: 13px;
    min-height: 58px;
    padding-inline: 17px;
}
.myfleet-auth-panel .auth-input:hover {
    background: #101418;
    border-color: rgba(255, 255, 255, .25);
}
.myfleet-auth-panel .auth-input:focus {
    border-color: #91adf5;
    box-shadow: 0 0 0 3px rgba(145, 173, 245, .15);
}
.myfleet-auth-panel .auth-check {
    margin: 1px 0 3px;
    min-height: 44px;
}
.myfleet-auth-panel .auth-check input {
    cursor: pointer;
    height: 20px;
    width: 20px;
}
.myfleet-auth-panel .auth-button {
    box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
    margin-top: 2px;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.myfleet-auth-panel .auth-button:hover {
    transform: translateY(-1px);
}
.myfleet-password-toggle {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    justify-content: center;
    min-width: 46px;
    padding: 0;
}
.myfleet-auth-panel .auth-password-control .auth-input {
    padding-right: 62px;
}
.password-icon {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 20px;
}
.password-icon-hide,
.myfleet-password-toggle.is-revealed .password-icon-show {
    display: none;
}
.myfleet-password-toggle.is-revealed .password-icon-hide {
    display: block;
}
.myfleet-auth-recovery {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr auto 1fr;
    margin-top: 30px;
    padding-top: 25px;
    text-align: left;
}
.myfleet-auth-recovery .auth-text-link {
    color: #dfe2e6;
    display: inline;
    font-size: 14px;
    margin: 0;
    text-decoration: none;
}
.myfleet-auth-recovery .auth-text-link:hover {
    color: #fff;
}
.myfleet-auth-recovery p {
    margin: 0 0 4px;
}
.myfleet-recovery-separator {
    background: var(--auth-line);
    height: 38px;
    width: 1px;
}
.auth-myfleet-login .auth-footer {
    margin-top: 18px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--auth-text);
    caret-color: var(--auth-text);
    box-shadow: 0 0 0 1000px var(--auth-control) inset;
    transition: background-color 9999s ease-out 0s;
}
input:autofill { background: var(--auth-control); color: var(--auth-text); }

@media (max-width: 620px) {
    .auth-page { align-items: flex-start; padding: 24px 16px; }
    .auth-brand { margin-bottom: 18px; }
    .auth-logo { height: 92px; }
    .auth-panel { border-radius: 16px; padding: 32px 24px; }
    .auth-panel h1 { font-size: 34px; }
    .auth-intro { font-size: 16px; }
    .auth-language { margin-right: -8px; }
}

@media (max-width: 900px) {
    .auth-myfleet-login .auth-page {
        align-items: flex-start;
        padding: 20px;
    }
    .myfleet-auth-composition {
        display: block;
        min-height: 0;
    }
    .myfleet-auth-visual {
        display: none;
    }
    .myfleet-auth-panel {
        min-height: calc(100vh - 80px);
        padding: clamp(30px, 8vw, 54px);
    }
}

@media (max-width: 620px) {
    .auth-myfleet-login .auth-page {
        padding: 0;
    }
    .auth-myfleet-login .auth-shell {
        width: 100%;
    }
    .myfleet-auth-composition {
        background: #111417;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .myfleet-auth-panel {
        background: #111417;
        min-height: calc(100vh - 48px);
        padding: 24px clamp(20px, 6vw, 32px) 36px;
    }
    .myfleet-auth-chrome {
        margin-bottom: 48px;
    }
    .myfleet-auth-brand span {
        display: none;
    }
    .myfleet-auth-brand img {
        height: 38px;
        width: 33px;
    }
    .myfleet-auth-heading {
        margin-bottom: 26px;
    }
    .myfleet-auth-heading h1 {
        font-size: 38px;
    }
    .myfleet-auth-heading .auth-intro {
        font-size: 16px;
    }
    .myfleet-auth-recovery {
        align-items: start;
        gap: 14px;
        grid-template-columns: 1fr;
    }
    .myfleet-recovery-separator {
        height: 1px;
        width: 100%;
    }
    .auth-myfleet-login .auth-footer {
        padding: 0 20px 24px;
    }
}

@media (max-width: 360px) {
    .auth-panel { padding-inline: 20px; }
    .auth-panel h1 { font-size: 32px; }
    .myfleet-auth-panel {
        padding-inline: 18px;
    }
    .myfleet-language-pill select {
        max-width: 94px;
    }
    .myfleet-auth-heading h1 {
        font-size: 35px;
    }
}

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