:root {
    --petroleo: #075aa8;
    --petroleo-escuro: #064884;
    --petroleo-profundo: #07366f;
    --ciano: #11bde3;
    --ciano-claro: #82e8f7;
    --azul-texto: #082d63;
    --fundo-claro: #f4f8fc;
    --fundo-input: #eaf2ff;
    --borda: #cbd9eb;
    --texto: #172c44;
    --texto-suave: #53677f;
    --branco: #ffffff;
    --sombra: 0 24px 60px rgba(7, 54, 111, 0.16);
}

* {
    box-sizing: border-box;
}

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

body.login-page {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Inter", Arial, sans-serif;
    color: var(--texto);
    background: var(--fundo-claro);
}

button,
input,
a {
    font: inherit;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 56%) minmax(420px, 44%);
    min-height: 100vh;
    width: 100%;
}

.login-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px clamp(52px, 7vw, 130px);
    color: var(--branco);
    background:
        radial-gradient(circle at 78% 15%, rgba(41, 185, 238, .55), transparent 34%),
        radial-gradient(circle at 28% 42%, rgba(20, 143, 211, .30), transparent 34%),
        linear-gradient(145deg, #07366f 0%, #0759a4 52%, #128bc8 100%);
}

.login-brand-content {
    position: relative;
    z-index: 2;
    width: min(100%, 650px);
}


.login-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin-bottom: 28px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    color: #087ca6;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 24px rgba(3, 42, 88, .16);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.login-brand-panel h1 {
    max-width: 650px;
    margin: 0;
    color: var(--branco);
    font-size: clamp(42px, 4.15vw, 72px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.login-brand-panel h1 span {
    display: block;
    color: var(--ciano);
}

.login-brand-panel p {
    max-width: 590px;
    margin: 34px 0 0;
    color: rgba(255, 255, 255, .94);
    font-size: 17px;
    line-height: 1.8;
}

.login-brand-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 42px;
}

.login-brand-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.login-brand-highlights svg {
    width: 24px;
    height: 24px;
    fill: #087dcc;
}

.shape,
.dot-grid {
    position: absolute;
    pointer-events: none;
}

.shape {
    border-radius: 50%;
    border: 22px solid rgba(34, 199, 214, .09);
}

.shape-one {
    width: 260px;
    height: 260px;
    right: -96px;
    top: 14%;
}

.shape-two {
    width: 230px;
    height: 230px;
    left: -115px;
    bottom: -70px;
}

.shape-three {
    width: 120px;
    height: 120px;
    right: 18%;
    top: 7%;
    border: 0;
    background: rgba(116, 226, 234, .08);
}

.dot-grid {
    width: 108px;
    height: 90px;
    opacity: .32;
    background-image: radial-gradient(var(--ciano) 2px, transparent 2.5px);
    background-size: 18px 18px;
}

.dot-grid-top {
    top: 7%;
    right: 9%;
}

.dot-grid-bottom {
    right: 5%;
    bottom: 6%;
}

.login-form-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 56px clamp(30px, 5vw, 85px);
    background:
        radial-gradient(circle at 85% 7%, rgba(31, 130, 211, .10), transparent 28%),
        linear-gradient(145deg, #fbfdff 0%, #f1f6fc 100%);
}

.login-form-panel::before,
.login-form-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-form-panel::before {
    width: 210px;
    height: 210px;
    right: -95px;
    top: -95px;
    border: 2px solid rgba(34, 199, 214, .12);
}

.login-form-panel::after {
    width: 110px;
    height: 110px;
    left: 8%;
    bottom: 8%;
    background: rgba(34, 199, 214, .035);
}

.login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    padding: clamp(32px, 4vw, 52px);
    border: 1px solid rgba(216, 231, 235, .82);
    border-radius: 24px;
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--sombra);
    backdrop-filter: blur(12px);
}

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

.login-lock-icon {
    display: grid;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 15px;
    background: rgba(34, 199, 214, .13);
}

.login-lock-icon svg {
    width: 25px;
    height: 25px;
    fill: var(--petroleo);
}

.login-welcome {
    display: block;
    margin-bottom: 5px;
    color: #087dcc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-card h2 {
    margin: 0;
    color: var(--azul-texto);
    font-size: clamp(24px, 2vw, 30px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.login-intro {
    margin: 32px 0 30px;
    color: #52677f;
    font-size: 14px;
    line-height: 1.6;
}

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

.login-field label,
.login-label-row label {
    color: var(--azul-texto);
    font-size: 13px;
    font-weight: 700;
}

.login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 9px;
}

.login-label-row a {
    color: #0071c9;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.login-label-row a:hover {
    color: var(--petroleo);
    text-decoration: underline;
}

.login-field > label {
    display: block;
    margin-bottom: 9px;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    border: 1px solid var(--borda);
    border-radius: 12px;
    background: var(--fundo-input);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-input-wrap:focus-within {
    border-color: var(--ciano);
    background: var(--branco);
    box-shadow: 0 0 0 4px rgba(34, 199, 214, .12);
}

.login-input-wrap > svg {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    margin-left: 16px;
    fill: #68839f;
}

.login-input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 12px;
    border: 0;
    outline: 0;
    color: var(--texto);
    background: transparent;
    font-size: 14px;
}

.login-input-wrap input::placeholder {
    color: #71869c;
}

.login-password-wrap input {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #7d9aa7;
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--petroleo);
    background: rgba(34, 199, 214, .10);
    outline: none;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    margin-top: 2px;
    border: 0;
    border-radius: 12px;
    color: var(--branco);
    background: linear-gradient(135deg, #083f82 0%, #0875c8 100%);
    box-shadow: 0 12px 25px rgba(7, 79, 153, .25);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.login-submit svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.login-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 16px 30px rgba(7, 79, 153, .32);
}

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

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #71869c;
    font-size: 11px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--borda);
}

.login-secondary-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.login-secondary-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 10px 12px;
    border: 1px solid var(--borda);
    border-radius: 11px;
    color: #075aa8;
    background: var(--branco);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.login-secondary-links a:hover {
    transform: translateY(-1px);
    border-color: var(--ciano);
    background: rgba(34, 199, 214, .06);
}

.login-secondary-links svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: #087dcc;
}


/* Ajustes de contraste da versão azul */
.login-brand-panel h1 {
    text-shadow: 0 3px 18px rgba(2, 35, 78, .28);
}

.login-brand-panel h1 span {
    color: #ffffff;
}

.login-brand-panel p {
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(2, 35, 78, .22);
}

.login-brand-highlights span {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 10px;
    color: #073b78;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 22px rgba(2, 35, 78, .14);
}

.login-card h2,
.login-field label,
.login-label-row label {
    color: #082d63;
}

.login-input-wrap input {
    color: #102a43;
    font-weight: 500;
}

.login-label-row a,
.login-secondary-links a {
    color: #006fc4;
}

.login-divider {
    color: #687d93;
}

@media (max-width: 1050px) {
    .login-shell {
        grid-template-columns: minmax(0, 50%) minmax(420px, 50%);
    }

    .login-brand-panel {
        padding-inline: 48px;
    }

    .login-brand-panel h1 {
        font-size: clamp(40px, 5vw, 58px);
    }
}

@media (max-width: 820px) {
    body.login-page {
        background: var(--fundo-claro);
    }

    .login-shell {
        display: block;
        min-height: 100vh;
    }

    .login-brand-panel {
        min-height: 390px;
        padding: 42px 28px 64px;
    }

    .login-brand-panel h1 {
        max-width: 600px;
        font-size: clamp(36px, 9vw, 54px);
    }

    .login-brand-panel p {
        margin-top: 24px;
    }

    .login-brand-highlights {
        gap: 18px;
        margin-top: 28px;
    }

    .login-form-panel {
        min-height: auto;
        margin-top: -28px;
        padding: 0 18px 36px;
        background: var(--fundo-claro);
    }

    .login-card {
        width: min(100%, 560px);
    }
}

@media (max-width: 520px) {
    .login-brand-panel {
        min-height: 350px;
        padding: 32px 22px 58px;
    }

    .login-eyebrow {
        min-height: 34px;
        margin-bottom: 20px;
        padding: 0 14px;
        font-size: 10px;
    }

    .login-brand-panel h1 {
        font-size: 36px;
    }

    .login-brand-panel p {
        font-size: 14px;
        line-height: 1.6;
    }

    .login-brand-highlights {
        display: none;
    }

    .login-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .login-card-header {
        align-items: flex-start;
    }

    .login-intro {
        margin: 26px 0 24px;
    }

    .login-secondary-links {
        grid-template-columns: 1fr;
    }
}
