/* =========================================================
RESET
========================================================= */

* {
    box-sizing: border-box;
}

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

button,
input {
    font: inherit;
}


/* =========================================================
PÁGINA
========================================================= */

.login-body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px;

    background:
        linear-gradient(
            135deg,
            #edf5fc 0%,
            #f7fafc 50%,
            #e9f2fa 100%
        );

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #0f172a;
}


/* =========================================================
CONTAINER PRINCIPAL
========================================================= */

.login-container {
    width: 100%;
    max-width: 1500px;

    min-height: 820px;

    display: grid;

    /* um pouco mais de espaço para o login */
    grid-template-columns:
        56% 44%;

    overflow: hidden;

    background: #ffffff;

    border-radius: 28px;

    box-shadow:
        0 24px 70px
        rgba(15, 23, 42, 0.12);
}


/* =========================================================
PAINEL ESQUERDO
========================================================= */

.login-apresentacao {
    position: relative;

    min-height: 820px;

    overflow: hidden;

    padding: 58px 64px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #ffffff 45%,
            #edf6ff 45%,
            #dceeff 72%,
            #c5e1fb 100%
        );
}


/* =========================================================
LOGO
========================================================= */

.login-logo {
    position: relative;

    z-index: 20;

    display: flex;
    align-items: center;

    gap: 14px;
}


.login-logo-icone {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 45px;

    color: #176fe8;
}


.login-logo-texto {
    display: flex;
    flex-direction: column;

    overflow: visible;
}


.login-logo-texto strong {
    margin: 0;

    font-size: 34px;
    line-height: 37px;

    font-weight: 800;

    letter-spacing: -1.4px;

    color: #0f172a;
}


.login-logo-texto strong span {
    color: #176fe8;
}


.login-logo-texto small {
    display: block;

    margin-top: 4px;

    font-size: 8px;
    line-height: 13px;

    font-weight: 700;

    letter-spacing: 2.8px;

    color: #475569;

    white-space: nowrap;
}


/* =========================================================
TEXTO PRINCIPAL
========================================================= */

.login-apresentacao-conteudo {
    position: relative;

    z-index: 20;

    width: 285px;

    margin-top: 92px;
}


.login-linha {
    width: 48px;
    height: 3px;

    margin-bottom: 27px;

    border-radius: 999px;

    background: #176fe8;
}


.login-apresentacao h1 {
    margin: 0;

    font-size: 55px;
    line-height: 0.98;

    font-weight: 800;

    letter-spacing: -2.6px;

    color: #0f172a;
}


.login-apresentacao h1 span {
    display: block;

    color: #176fe8;
}


.login-apresentacao-conteudo p {
    width: 250px;

    margin: 28px 0 0;

    font-size: 18px;
    line-height: 1.45;

    color: #425b78;
}


/* =========================================================
FAIXAS DECORATIVAS
========================================================= */

.login-faixa {
    position: absolute;

    z-index: 1;

    pointer-events: none;

    transform: skewX(-35deg);

    border-radius: 40px;

    background:
        linear-gradient(
            180deg,
            rgba(111, 180, 249, 0.32) 0%,
            rgba(54, 143, 234, 0.42) 55%,
            rgba(25, 111, 208, 0.48) 100%
        );
}


.login-faixa-1 {
    width: 165px;
    height: 1050px;

    top: -160px;
    left: 500px;

    opacity: 0.55;
}


.login-faixa-2 {
    width: 220px;
    height: 950px;

    top: 220px;
    left: 635px;

    opacity: 0.18;
}


/* =========================================================
BANNER / CARRO
========================================================= */

.login-carro {
    position: absolute;

    z-index: 4;

    right: 0;
    bottom: 0;

    width: 64%;
    height: 62%;

    background-image:
        url("/frontend/assets/login-banner2.png");

    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;

    /* IMPORTANTE */
    background-color: transparent;

    border-radius: 0;
    box-shadow: none;

    pointer-events: none;
}


/* =========================================================
PAINEL DIREITO
========================================================= */

.login-acesso {
    position: relative;

    z-index: 30;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        70px
        clamp(50px, 5vw, 90px);

    background: #ffffff;
}


/* =========================================================
FORM
========================================================= */

.login-form-wrapper {
    width: 100%;
    max-width: 500px;
}


/* =========================================================
CABEÇALHO
========================================================= */

.login-form-header {
    margin-bottom: 42px;
}


.login-form-header h2 {
    margin: 0;

    font-size: 38px;
    line-height: 1.15;

    letter-spacing: -1.3px;

    color: #0f172a;
}


.login-form-header p {
    max-width: 410px;

    margin: 14px 0 0;

    font-size: 17px;
    line-height: 1.45;

    color: #5c718c;
}


/* =========================================================
FORMULÁRIO
========================================================= */

.login-form {
    width: 100%;
}


/* =========================================================
CAMPO
========================================================= */

.login-campo {
    margin-bottom: 24px;
}


.login-campo label {
    display: block;

    margin-bottom: 9px;

    font-size: 15px;
    font-weight: 700;

    color: #0f172a;
}


/* =========================================================
INPUT
========================================================= */

.login-input-wrapper {
    position: relative;

    width: 100%;
}


.login-input-wrapper > i {
    position: absolute;

    top: 50%;
    left: 18px;

    transform:
        translateY(-50%);

    font-size: 19px;

    color: #334155;

    pointer-events: none;
}


.login-input-wrapper input {
    width: 100%;
    height: 58px;

    padding:
        0
        52px
        0
        52px;

    border:
        1px solid #bfd0e3;

    border-radius: 9px;

    outline: none;

    background: #ffffff;

    font-size: 15px;

    color: #0f172a;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.login-input-wrapper input::placeholder {
    color: #8ba0b8;
}


.login-input-wrapper input:focus {
    border-color: #176fe8;

    box-shadow:
        0 0 0 4px
        rgba(23, 111, 232, 0.10);
}


/* =========================================================
MOSTRAR SENHA
========================================================= */

.login-ver-senha {
    position: absolute;

    top: 50%;
    right: 12px;

    transform:
        translateY(-50%);

    width: 40px;
    height: 40px;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 8px;

    background: transparent;

    color: #334155;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


.login-ver-senha:hover {
    background: #edf6ff;

    color: #176fe8;
}


/* =========================================================
MENSAGEM
========================================================= */

.login-mensagem {
    display: none;

    margin:
        -5px
        0
        18px;

    padding:
        11px
        13px;

    border-radius: 8px;

    font-size: 13px;
    line-height: 1.4;
}


.login-mensagem-erro {
    display: block;

    border:
        1px solid #fecaca;

    background: #fef2f2;

    color: #b91c1c;
}


/* =========================================================
BOTÃO ENTRAR
========================================================= */

.login-btn-entrar {
    width: 100%;
    height: 60px;

    margin-top: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    border: none;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #2585f5 0%,
            #176fe8 55%,
            #0b5dce 100%
        );

    color: #ffffff;

    font-size: 17px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(23, 111, 232, 0.23);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.login-btn-entrar:hover {
    transform:
        translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #176fe8 0%,
            #0b5dce 100%
        );

    box-shadow:
        0 14px 30px
        rgba(23, 111, 232, 0.31);
}


.login-btn-entrar:disabled {
    opacity: 0.7;

    cursor: wait;

    transform: none;
}


/* =========================================================
RODAPÉ
========================================================= */

.login-rodape {
    margin-top: 70px;

    text-align: center;

    color: #64748b;
}


.login-rodape-titulo {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 20px;
}


.login-rodape-titulo span {
    width: 90px;
    height: 1px;

    background: #cbd8e6;
}


.login-rodape-titulo strong {
    font-size: 15px;

    color: #4b6380;
}


.login-rodape p {
    margin:
        12px
        0
        5px;

    font-size: 13px;
    font-weight: 600;

    color: #4b6380;
}


.login-rodape small {
    font-size: 12px;

    color: #71869e;
}


/* =========================================================
NOTEBOOK / TABLET GRANDE
========================================================= */

@media (max-width: 1200px) {

    .login-container {
        grid-template-columns:
            52% 48%;

        min-height: 720px;
    }


    .login-apresentacao {
        min-height: 720px;

        padding:
            42px
            40px;
    }


    .login-logo-icone {
        font-size: 36px;
    }


    .login-logo-texto strong {
        font-size: 28px;
        line-height: 31px;
    }


    .login-apresentacao-conteudo {
        width: 245px;

        margin-top: 75px;
    }


    .login-apresentacao h1 {
        font-size: 46px;
    }


    .login-apresentacao-conteudo p {
        width: 215px;

        font-size: 16px;
    }


    .login-carro {
        left: 260px;

        height: 510px;

        background-position:
            58% center;
    }


    .login-acesso {
        padding:
            50px
            45px;
    }

}


/* =========================================================
TABLET
========================================================= */

@media (max-width: 900px) {

    .login-body {
        padding: 16px;
    }


    .login-container {
        grid-template-columns:
            44% 56%;
    }


    .login-apresentacao {
        padding:
            35px
            28px;
    }


    .login-logo-texto strong {
        font-size: 24px;
    }


    .login-logo-texto small {
        font-size: 6px;

        letter-spacing: 1.7px;
    }


    .login-apresentacao-conteudo {
        width: 190px;

        margin-top: 75px;
    }


    .login-apresentacao h1 {
        font-size: 39px;

        letter-spacing: -1.8px;
    }


    .login-apresentacao-conteudo p {
        width: 180px;

        font-size: 14px;
    }


    .login-carro {
        left: 190px;

        height: 480px;
    }


    .login-acesso {
        padding:
            40px
            32px;
    }


    .login-form-header h2 {
        font-size: 31px;
    }

}


/* =========================================================
SMARTPHONE
========================================================= */

@media (max-width: 700px) {

    .login-body {
        display: block;

        padding: 0;

        background: #ffffff;
    }


    .login-container {
        display: block;

        min-height: 100vh;

        border-radius: 0;

        box-shadow: none;
    }


    /* =====================================================
    TOPO MOBILE
    ===================================================== */

    .login-apresentacao {
        min-height: auto;

        padding:
            28px
            22px
            35px;

        background:
            linear-gradient(
                135deg,
                #ffffff 0%,
                #edf6ff 100%
            );
    }


    .login-logo {
        gap: 9px;
    }


    .login-logo-icone {
        font-size: 31px;
    }


    .login-logo-texto strong {
        font-size: 25px;
        line-height: 27px;
    }


    .login-logo-texto small {
        margin-top: 3px;

        font-size: 6px;

        letter-spacing: 1.8px;
    }


    .login-apresentacao-conteudo {
        width: 100%;

        margin-top: 35px;
    }


    .login-linha {
        display: none;
    }


    .login-apresentacao h1 {
        font-size: 36px;

        letter-spacing: -1.5px;
    }


    .login-apresentacao-conteudo p {
        width: 100%;

        margin-top: 13px;

        font-size: 14px;
    }


    /*
    No smartphone não precisamos disputar espaço
    entre formulário e fotografia.
    */

    .login-carro,
    .login-faixa {
        display: none;
    }


    /* =====================================================
    FORM MOBILE
    ===================================================== */

    .login-acesso {
        padding:
            35px
            22px
            45px;
    }


    .login-form-wrapper {
        max-width: none;
    }


    .login-form-header {
        margin-bottom: 30px;
    }


    .login-form-header h2 {
        font-size: 28px;
    }


    .login-form-header p {
        margin-top: 8px;

        font-size: 14px;
    }


    .login-input-wrapper input {
        height: 56px;

        font-size: 16px;
    }


    .login-btn-entrar {
        height: 58px;
    }


    .login-rodape {
        margin-top: 50px;
    }


    .login-rodape-titulo span {
        width: 50px;
    }

}