:root {
    --verde: #18a84a;
    --verde-escuro: #087a32;
    --vermelho: #ed1c24;
    --vermelho-escuro: #c9131a;
    --texto: #101828;
    --texto-suave: #667085;
    --borda: #e4e7ec;
    --fundo: #f7f8fa;
    --erro: #b42318;
    --erro-fundo: #fff1f0;
    --erro-borda: #ffc9c4;
    --sombra: 0 24px 70px rgba(16, 24, 40, .12);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--fundo);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--texto);
    background:
        radial-gradient(circle at 16% 18%, rgba(237, 28, 36, .12), transparent 26%),
        radial-gradient(circle at 86% 82%, rgba(24, 168, 74, .13), transparent 28%),
        var(--fundo);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.pagina-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, .88fr) minmax(460px, 1.12fr);
}

.painel-institucional {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 70px);
    background:
        radial-gradient(circle at 26% 28%, rgba(255, 255, 255, .26), transparent 18%),
        linear-gradient(145deg, var(--vermelho), var(--vermelho-escuro) 48%, var(--verde-escuro));
}

.painel-institucional::before,
.painel-institucional::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
}

.painel-institucional::before {
    width: 520px;
    height: 520px;
    right: -250px;
    top: -130px;
}

.painel-institucional::after {
    width: 360px;
    height: 360px;
    left: -190px;
    bottom: -110px;
}

.painel-conteudo {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}

.marca {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.marca img {
    display: block;
    height: auto;
}

.marca-desktop {
    padding: clamp(22px, 3vw, 34px);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 80px rgba(16, 24, 40, .22);
}

.marca-desktop img {
    width: min(330px, 70vw);
}

.painel-rodape {
    position: relative;
    z-index: 1;
    margin-top: auto;
    color: rgba(255, 255, 255, .72);
    font-size: .74rem;
    text-align: center;
}

.painel-acesso {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(24px, 5vw, 72px);
}

.cartao-acesso {
    width: min(100%, 410px);
    padding: clamp(28px, 4vw, 40px);
    border: 1px solid rgba(228, 231, 236, .92);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--sombra);
}

.cabecalho-acesso {
    margin-bottom: 32px;
}

.marca-login {
    width: 100%;
    justify-content: center;
}

.marca-login img {
    width: min(245px, 82%);
}

.alerta {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 13px;
    border: 1px solid var(--erro-borda);
    border-radius: 13px;
    color: var(--erro);
    background: var(--erro-fundo);
    font-size: .82rem;
    line-height: 1.45;
}

.alerta svg,
.botao-entrar svg,
.controle-campo > svg,
.alternar-senha svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.alerta svg {
    width: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
}

.formulario-login {
    display: grid;
    gap: 15px;
}

.grupo-campo {
    display: grid;
    gap: 8px;
}

.controle-campo {
    position: relative;
    display: flex;
    align-items: center;
}

.controle-campo > svg {
    position: absolute;
    left: 15px;
    width: 19px;
    color: #98a2b3;
    pointer-events: none;
}

.controle-campo input,
.controle-campo select {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--borda);
    border-radius: 15px;
    outline: none;
    color: var(--texto);
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.controle-campo input {
    padding: 0 48px 0 46px;
}

.controle-campo select {
    appearance: none;
    padding: 0 46px;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #667085 50%), linear-gradient(135deg, #667085 50%, transparent 50%);
    background-position: calc(100% - 19px) 23px, calc(100% - 14px) 23px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.controle-campo input::placeholder {
    color: #98a2b3;
}

.controle-campo input:focus,
.controle-campo select:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 4px rgba(24, 168, 74, .13);
    transform: translateY(-1px);
}

.controle-campo:focus-within > svg {
    color: var(--verde-escuro);
}

.alternar-senha {
    position: absolute;
    right: 9px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    color: #667085;
    background: transparent;
    cursor: pointer;
}

.alternar-senha:hover {
    color: var(--texto);
    background: #f2f4f7;
}

.alternar-senha:focus-visible,
.botao-entrar:focus-visible,
.marca:focus-visible {
    outline: 3px solid rgba(24, 168, 74, .22);
    outline-offset: 3px;
}

.alternar-senha svg {
    width: 19px;
}

.icone-ocultar {
    display: none;
}

.alternar-senha[aria-pressed="true"] .icone-mostrar {
    display: none;
}

.alternar-senha[aria-pressed="true"] .icone-ocultar {
    display: block;
}

.bloco-loja {
    padding: 12px;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: #f0fdf4;
}

.botao-entrar {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 3px;
    border: 0;
    border-radius: 15px;
    color: white;
    background: linear-gradient(135deg, var(--verde), var(--verde-escuro));
    box-shadow: 0 16px 30px rgba(24, 168, 74, .25);
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.botao-entrar:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(24, 168, 74, .3);
    filter: saturate(1.05);
}

.botao-entrar:active {
    transform: translateY(0);
}

.botao-entrar svg {
    width: 19px;
    transition: transform .18s ease;
}

.botao-entrar:hover svg {
    transform: translateX(3px);
}

.rodape-mobile {
    display: none;
}

@media (max-width: 820px) {
    .pagina-login {
        min-height: 100svh;
        display: block;
    }

    .painel-institucional {
        display: none;
    }

    .painel-acesso {
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: max(24px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
    }

    .cartao-acesso {
        margin: 0 auto;
        padding: 28px 22px;
        border-radius: 22px;
        box-shadow: 0 18px 50px rgba(16, 24, 40, .1);
    }

    .rodape-mobile {
        display: block;
        margin-top: 24px;
        color: #98a2b3;
        font-size: .7rem;
        text-align: center;
    }
}

@media (max-width: 430px) {
    .painel-acesso {
        justify-content: flex-start;
        padding-left: 14px;
        padding-right: 14px;
    }

    .cartao-acesso {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .cabecalho-acesso {
        margin-bottom: 28px;
    }

    .marca-login img {
        width: min(222px, 86%);
    }

    .controle-campo input,
    .controle-campo select,
    .botao-entrar {
        min-height: 52px;
    }
}

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