/* ==================================================
   GERAL
================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-escuro: #073d89;
    --azul: #086bdc;
    --azul-claro: #0a82f4;

    --verde: #08a64d;
    --amarelo: #ffc51b;

    --texto: #17345f;
    --cinza: #65758b;
    --borda: #d5dde8;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #ffffff;
    color: var(--texto);
}


/* ==================================================
   ESTRUTURA
================================================== */

.login-container {
    width: 100%;
    height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(420px, 44%)
        1fr;

    overflow: hidden;
}


/* ==================================================
   CAMPANHA
================================================== */

.painel-campanha {
    width: 100%;
    height: 100vh;

    background: #06439a;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.imagem-campanha {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center center;
}


/* ==================================================
   PAINEL LOGIN
================================================== */

.painel-login {
    width: 100%;
    height: 100vh;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 55px;

    overflow-y: auto;
}

.login-box {
    width: 100%;
    max-width: 520px;

    margin: auto;
}


/* ==================================================
   ÍCONE ADMIN
================================================== */

.icone-admin {
    width: 65px;
    height: 55px;

    margin: 0 auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.icone-admin svg {
    width: 55px;
    height: 55px;

    fill: var(--azul);
}


/* ==================================================
   CABEÇALHO
================================================== */

.cabecalho-login {
    text-align: center;
}

.cabecalho-login h1 {
    color: var(--azul-escuro);

    font-size: 48px;
    font-weight: 900;

    line-height: 1;
}

.cabecalho-login h2 {
    color: var(--azul-escuro);

    font-size: 27px;
    font-weight: 900;

    margin-top: 6px;
}

.cabecalho-login h3 {
    color: var(--azul);

    font-size: 19px;
    font-weight: 800;

    margin-top: 5px;
}

.sistema {
    color: #576c89;

    font-size: 16px;

    margin-top: 19px;
}

.descricao {
    max-width: 340px;

    margin: 14px auto 30px;

    color: var(--cinza);

    font-size: 15px;

    line-height: 1.45;
}


/* ==================================================
   FORMULÁRIO
================================================== */

.form-login {
    width: 100%;
}

.campo {
    margin-bottom: 14px;
}

.input-wrapper {
    position: relative;

    width: 100%;
}

.input-wrapper input {
    width: 100%;
    height: 58px;

    border:
        1px solid
        var(--borda);

    border-radius: 9px;

    outline: none;

    background: #ffffff;

    padding:
        0
        55px
        0
        57px;

    font-size: 16px;

    color: #243b5a;

    transition:
        border-color .2s,
        box-shadow .2s;
}

.input-wrapper input::placeholder {
    color: #77869a;
}

.input-wrapper input:focus {
    border-color: var(--azul);

    box-shadow:
        0 0 0 4px
        rgba(8, 107, 220, .08);
}

.input-wrapper input:disabled {
    background: #f5f7fa;

    cursor: wait;
}


/* ==================================================
   ÍCONES
================================================== */

.input-icon {
    position: absolute;

    left: 19px;
    top: 50%;

    transform: translateY(-50%);

    z-index: 2;

    display: flex;
}

.input-icon svg {
    width: 22px;
    height: 22px;

    fill: #687a91;
}


/* ==================================================
   MOSTRAR SENHA
================================================== */

.mostrar-senha {
    position: absolute;

    right: 17px;
    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    cursor: pointer;

    display: flex;

    padding: 4px;
}

.mostrar-senha svg {
    width: 24px;
    height: 24px;

    fill: #66778e;
}

.mostrar-senha:hover svg {
    fill: var(--azul);
}


/* ==================================================
   BOTÃO ENTRAR
================================================== */

.btn-entrar {
    width: 100%;
    height: 58px;

    margin-top: 7px;

    border: none;
    border-radius: 30px;

    background:
        linear-gradient(
            90deg,
            #0985f4,
            #076be5
        );

    color: #ffffff;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    position: relative;

    transition:
        transform .2s,
        box-shadow .2s;
}

.btn-entrar:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 25px
        rgba(7, 107, 229, .23);
}

.btn-entrar:disabled {
    cursor: wait;

    opacity: .88;

    transform: none;
}

.btn-entrar .seta {
    width: 28px;
    height: 28px;

    fill: #ffffff;

    position: absolute;

    right: 28px;
}


/* ==================================================
   PROCESSANDO
================================================== */

.loading {
    display: none;

    width: 20px;
    height: 20px;

    margin-left: 12px;

    border:
        3px solid
        rgba(255, 255, 255, .38);

    border-top-color:
        #ffffff;

    border-radius: 50%;

    animation:
        girar .65s
        linear
        infinite;
}

.loading.ativo {
    display: block;
}

@keyframes girar {
    to {
        transform: rotate(360deg);
    }
}


/* ==================================================
   OPÇÕES
================================================== */

.opcoes-login {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-top: 18px;

    font-size: 12px;

    color: #3c526f;
}

.lembrar {
    display: flex;

    align-items: center;

    gap: 7px;

    cursor: pointer;
}

.lembrar input {
    width: 16px;
    height: 16px;

    accent-color: var(--azul);
}

.acesso-restrito {
    color: var(--azul);
}


/* ==================================================
   DIVISOR
================================================== */

.divisor {
    width: 100%;
    height: 1px;

    background: #e1e7ef;

    margin: 28px 0 23px;
}


/* ==================================================
   RECURSOS
================================================== */

.recursos {
    width: 100%;

    display: flex;

    align-items: flex-start;
    justify-content: space-around;

    text-align: center;
}

.recurso {
    min-width: 90px;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 8px;

    color: #17345f;

    font-size: 13px;
}

.icone-recurso {
    width: 55px;
    height: 55px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;
}

.icone-recurso svg {
    width: 28px;
    height: 28px;

    fill: #ffffff;
}

.icone-recurso.verde {
    background: var(--verde);
}

.icone-recurso.amarelo {
    background: var(--amarelo);
}

.icone-recurso.azul {
    background: var(--azul-claro);
}


/* ==================================================
   SEGURANÇA
================================================== */

.seguranca {
    margin-top: 27px;

    padding: 18px 22px;

    border-radius: 11px;

    background:
        linear-gradient(
            90deg,
            #edf6ff,
            #e3f0ff
        );

    display: flex;

    align-items: center;

    gap: 17px;
}

.seguranca-icon {
    flex-shrink: 0;
}

.seguranca-icon svg {
    width: 28px;
    height: 28px;

    fill: var(--azul);
}

.seguranca p {
    color: #4c6381;

    font-size: 13px;

    line-height: 1.45;
}


/* ==================================================
   MODAL
================================================== */

.modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 9999;

    background:
        rgba(22, 42, 53, .52);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .20s ease,
        visibility .20s ease;
}

.modal-overlay.ativo {
    opacity: 1;

    visibility: visible;
}


/* ==================================================
   CAIXA MODAL
================================================== */

.modal-aviso {
    width: 100%;

    max-width: 390px;

    background: #ffffff;

    border-radius: 13px;

    padding: 27px 35px 24px;

    text-align: center;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, .25);

    transform:
        translateY(-10px)
        scale(.97);

    transition:
        transform .20s ease;
}

.modal-overlay.ativo
.modal-aviso {
    transform:
        translateY(0)
        scale(1);
}


/* ==================================================
   ÍCONE MODAL
================================================== */

.modal-icone {
    width: 62px;
    height: 62px;

    margin: 0 auto 20px;

    border:
        3px solid
        #ffb273;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #ff9f50;

    font-size: 39px;
    font-weight: 300;

    line-height: 1;
}

.modal-aviso h2 {
    color: #4c4c4c;

    font-size: 18px;
    font-weight: 700;
}

.modal-aviso p {
    max-width: 300px;

    margin: 27px auto 28px;

    color: #666666;

    font-size: 14px;

    line-height: 1.45;
}


/* ==================================================
   BOTÃO MODAL
================================================== */

.btn-modal {
    min-width: 60px;

    height: 38px;

    padding: 0 18px;

    border: none;

    border-radius: 5px;

    background: #083c8c;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.btn-modal:hover {
    background: #062f70;
}

body.modal-aberto {
    overflow: hidden;
}


/* ==================================================
   NOTEBOOK
================================================== */

@media (max-width: 1200px) {

    .login-container {
        grid-template-columns:
            43%
            57%;
    }

    .painel-login {
        padding: 25px 40px;
    }

    .cabecalho-login h1 {
        font-size: 42px;
    }

    .cabecalho-login h2 {
        font-size: 24px;
    }
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 850px) {

    .login-container {
        height: auto;

        min-height: 100vh;

        display: block;

        overflow: visible;
    }

    .painel-campanha {
        display: none;
    }

    .painel-login {
        width: 100%;

        min-height: 100vh;

        height: auto;

        padding: 40px 25px;
    }

    .login-box {
        max-width: 480px;
    }
}


/* ==================================================
   CELULAR
================================================== */

@media (max-width: 480px) {

    .painel-login {
        padding: 30px 20px;
    }

    .cabecalho-login h1 {
        font-size: 37px;
    }

    .cabecalho-login h2 {
        font-size: 20px;
    }

    .cabecalho-login h3 {
        font-size: 16px;
    }

    .input-wrapper input {
        height: 55px;
    }

    .btn-entrar {
        height: 55px;
    }

    .icone-recurso {
        width: 48px;
        height: 48px;
    }

    .modal-aviso {
        max-width: 340px;

        padding:
            25px
            25px
            22px;
    }
}


/* =====================================
   SAIR DO SISTEMA
===================================== */

.menu-grupo-sair {
    margin-top: 28px;

    padding-top: 18px;

    border-top:
        1px solid rgba(255,255,255,.10);
}

.menu-sair {
    color:
        rgba(255,255,255,.75);
}

.menu-sair:hover {
    background:
        rgba(231,76,76,.15);

    color: #ffffff;
}

.menu-sair .menu-icone {
    color: #ff8b8b;
}