/* Nexa Frotas — P7.R2.3.2 | Ajuste fino responsivo do login institucional */
:root {
    --auth-blue-950: #06275f;
    --auth-blue-900: #073b91;
    --auth-blue-800: #0c4fc2;
    --auth-blue-700: #1764e5;
    --auth-cyan: #39d7ff;
    --auth-ink: #172033;
    --auth-muted: #667085;
    --auth-line: #dce3ed;
    --auth-soft: #f4f7fb;
}

* { box-sizing: border-box; }

html,
body {
    width: 100%;
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body.nexa-auth-body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: #edf2f8;
    color: var(--auth-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input { font: inherit; }

.nexa-login {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(520px, 55%) minmax(440px, 45%);
    background: #fff;
}

.nexa-login-brand {
    position: relative;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(34px, 4.1vh, 58px) clamp(44px, 5.8vw, 92px) 22px;
    color: #fff;
    background:
        radial-gradient(circle at 10% 12%, rgba(57,215,255,.14), transparent 20%),
        radial-gradient(circle at 82% 20%, rgba(65,136,255,.26), transparent 28%),
        linear-gradient(145deg, var(--auth-blue-950) 0%, var(--auth-blue-800) 55%, #0f63d4 100%);
}

.nexa-login-brand::before,
.nexa-login-brand::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    pointer-events: none;
}

.nexa-login-brand::before {
    width: 620px;
    height: 620px;
    top: -330px;
    right: -160px;
}

.nexa-login-brand::after {
    width: 500px;
    height: 500px;
    bottom: -355px;
    left: -165px;
}

.nexa-login-brand__content,
.nexa-login-brand__footer {
    position: relative;
    z-index: 2;
}

.nexa-login-brand__content { max-width: 660px; }

.nexa-login-kicker {
    margin: 0 0 9px;
    color: var(--auth-cyan);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.nexa-login-brand h1 {
    margin: 0;
    font-size: clamp(68px, 6.1vw, 100px);
    line-height: .88;
    letter-spacing: -.068em;
}

.nexa-login-accent {
    width: 44px;
    height: 4px;
    display: block;
    margin: 22px 0 18px;
    border-radius: 99px;
    background: var(--auth-cyan);
}

.nexa-login-lead {
    max-width: 510px;
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: clamp(15px, 1.2vw, 19px);
    line-height: 1.52;
}

.nexa-login-benefits {
    max-width: 680px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 30px;
    margin-top: clamp(24px, 3.2vh, 34px);
}

.nexa-login-benefits article {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.nexa-login-benefits article > span {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(57,215,255,.58);
    border-radius: 11px;
    background: rgba(3,32,85,.25);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.nexa-login-benefits strong,
.nexa-login-benefits small { display: block; }

.nexa-login-benefits strong { font-size: 13px; }

.nexa-login-benefits small {
    margin-top: 2px;
    color: rgba(255,255,255,.75);
    font-size: 11px;
    line-height: 1.32;
}

.nexa-login-fleet {
    position: absolute;
    z-index: 1;
    right: -16px;
    bottom: 56px;
    width: min(63%, 650px);
    opacity: .98;
    pointer-events: none;
}

.nexa-login-fleet svg {
    width: 100%;
    height: auto;
    display: block;
}

.nexa-login-brand__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 13px;
    padding: 11px 14px;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.84);
    font-size: 10px;
    backdrop-filter: blur(8px);
}

.nexa-login-brand__footer span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.nexa-login-access {
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 3.4vh, 46px) clamp(30px, 4vw, 64px) 20px;
    background:
        radial-gradient(circle at 90% 10%, rgba(23,100,229,.06), transparent 23%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.nexa-login-card {
    width: min(100%, 610px);
    margin: auto;
    border: 1px solid #e4e9f1;
    border-radius: 22px;
    padding: clamp(27px, 3.1vh, 40px) clamp(28px, 3.1vw, 42px);
    background: rgba(255,255,255,.97);
    box-shadow: 0 24px 70px rgba(16,24,40,.11);
}

.nexa-login-card__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: clamp(20px, 2.5vh, 26px);
    border-bottom: 1px solid #e8ecf2;
}

.nexa-login-lock {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #1d69ed, #0f4fc2);
    color: #fff;
    box-shadow: 0 10px 24px rgba(23,100,229,.24);
}

.nexa-login-lock svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nexa-login-card__header .nexa-login-kicker {
    margin-bottom: 4px;
    color: var(--auth-blue-700);
}

.nexa-login-card__header h2 {
    margin: 0;
    font-size: clamp(30px, 2.7vw, 40px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.nexa-login-card__header p:last-child {
    margin: 7px 0 0;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.45;
}

.nexa-login-alert {
    display: grid;
    gap: 3px;
    margin-top: 18px;
    border: 1px solid #f4c7c3;
    border-radius: 11px;
    padding: 11px 13px;
    background: #fff5f4;
    color: #b42318;
    font-size: 13px;
}

.nexa-login-form {
    display: grid;
    gap: 17px;
    padding-top: clamp(20px, 2.6vh, 27px);
}

.nexa-login-field {
    display: grid;
    gap: 7px;
}

.nexa-login-field label {
    color: #253044;
    font-size: 13px;
    font-weight: 850;
}

.nexa-login-control {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    overflow: hidden;
    border: 1px solid #cad5e4;
    border-radius: 12px;
    background: #f4f7fb;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.nexa-login-control:focus-within {
    border-color: var(--auth-blue-700);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23,100,229,.11);
}

.nexa-login-control__icon {
    flex: 0 0 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-right: 1px solid #e1e7f0;
    color: #667892;
}

.nexa-login-control__icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nexa-login-control input {
    flex: 1;
    min-width: 0;
    height: 50px;
    border: 0;
    padding: 0 14px;
    background: transparent;
    color: var(--auth-ink);
    outline: 0;
}

.nexa-login-password {
    flex: 0 0 auto;
    align-self: stretch;
    border: 0;
    border-left: 1px solid #d9e1ec;
    padding: 0 16px;
    background: rgba(255,255,255,.62);
    color: #19345d;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.nexa-login-password:hover,
.nexa-login-password:focus-visible { background: #eaf1fb; }

.nexa-login-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475467;
    font-size: 13px;
    cursor: pointer;
}

.nexa-login-remember input {
    width: 17px;
    height: 17px;
    accent-color: var(--auth-blue-700);
}

.nexa-login-submit {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 0;
    border-radius: 12px;
    padding: 0 20px;
    background: linear-gradient(90deg, #246ce8, #1457d3);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 11px 24px rgba(20,87,211,.24);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.nexa-login-submit:hover {
    transform: translateY(-1px);
    filter: brightness(.98);
    box-shadow: 0 14px 30px rgba(20,87,211,.31);
}

.nexa-login-security {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: clamp(18px, 2.2vh, 24px);
    border: 1px solid #dce5f2;
    border-radius: 12px;
    padding: 13px;
    background: #f4f7fb;
}

.nexa-login-security > span {
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #e3edff;
    color: var(--auth-blue-700);
}

.nexa-login-security > span svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nexa-login-security strong,
.nexa-login-security small { display: block; }

.nexa-login-security strong {
    color: #2357ad;
    font-size: 12px;
}

.nexa-login-security small {
    margin-top: 3px;
    color: var(--auth-muted);
    font-size: 11px;
}

.nexa-login-access__footer {
    width: min(100%, 610px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px auto 0;
    color: #98a2b3;
    font-size: 10px;
}

.nexa-login-environment {
    border-radius: 999px;
    padding: 5px 9px;
    background: #dcfae6;
    color: #087a55;
    font-weight: 800;
}

/* Notebooks e telas desktop de pouca altura: tudo cabe sem rolagem. */
@media (min-width: 861px) {
    body.nexa-auth-body { overflow-y: hidden; }
}

@media (min-width: 861px) and (max-height: 820px) {
    .nexa-login-brand {
        padding-top: 26px;
        padding-bottom: 16px;
    }

    .nexa-login-brand h1 { font-size: clamp(62px, 5.5vw, 84px); }
    .nexa-login-accent { margin: 16px 0 14px; }
    .nexa-login-lead { font-size: 15px; line-height: 1.42; }
    .nexa-login-benefits { margin-top: 20px; gap: 10px 24px; }
    .nexa-login-benefits article > span { width: 34px; height: 34px; }
    .nexa-login-fleet { width: min(54%, 560px); bottom: 44px; }

    .nexa-login-access { padding-top: 18px; padding-bottom: 12px; }
    .nexa-login-card { padding-top: 25px; padding-bottom: 25px; }
    .nexa-login-card__header { padding-bottom: 18px; }
    .nexa-login-card__header h2 { font-size: 33px; }
    .nexa-login-card__header p:last-child { font-size: 13px; }
    .nexa-login-form { gap: 14px; padding-top: 19px; }
    .nexa-login-control,
    .nexa-login-submit { min-height: 48px; }
    .nexa-login-control input,
    .nexa-login-control__icon { height: 46px; }
    .nexa-login-security { margin-top: 17px; padding: 11px; }
    .nexa-login-access__footer { margin-top: 10px; }
}

@media (max-width: 1100px) {
    .nexa-login {
        grid-template-columns: minmax(390px, 48%) minmax(420px, 52%);
    }

    .nexa-login-brand {
        padding-left: 44px;
        padding-right: 44px;
    }

    .nexa-login-brand h1 {
        font-size: clamp(60px, 7.2vw, 82px);
    }

    .nexa-login-fleet {
        width: 76%;
        right: -68px;
    }
}

@media (max-width: 860px) {
    body.nexa-auth-body { overflow-y: auto; }

    .nexa-login {
        display: block;
        min-height: 100vh;
        background: #f4f7fb;
    }

    .nexa-login-brand {
        min-height: 390px;
        padding: 36px 30px 28px;
    }

    .nexa-login-brand h1 { font-size: 66px; }
    .nexa-login-lead { max-width: 520px; }
    .nexa-login-benefits { display: none; }

    .nexa-login-fleet {
        width: 58%;
        right: -25px;
        bottom: 35px;
    }

    .nexa-login-brand__footer { display: none; }

    .nexa-login-access {
        min-height: auto;
        padding: 24px 18px 32px;
    }

    .nexa-login-card {
        position: relative;
        z-index: 5;
        margin-top: -58px;
    }
}

@media (max-width: 560px) {
    .nexa-login-brand {
        min-height: 320px;
        padding: 30px 22px;
    }

    .nexa-login-brand h1 { font-size: 55px; }

    .nexa-login-lead {
        max-width: 310px;
        font-size: 14px;
    }

    .nexa-login-fleet {
        width: 72%;
        right: -55px;
        bottom: 20px;
        opacity: .72;
    }

    .nexa-login-card {
        border-radius: 17px;
        padding: 24px 20px;
    }

    .nexa-login-card__header { gap: 11px; }

    .nexa-login-lock {
        width: 44px;
        height: 44px;
    }

    .nexa-login-card__header h2 { font-size: 29px; }

    .nexa-login-access__footer {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nexa-login-control,
    .nexa-login-submit { transition: none; }
}
