/* RESET BASICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

/* BODY PADRÃO + FONTE */
body {
    font-family: 'Plus Jakarta Sans',sans-serif
}

/* CLASSES ESPECÍFICAS PARA DIFERENTES TELAS */
.login-body {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh
}

.forgot-body {
    background: url("css/fundo_contel.png") no-repeat center center;
    background-size: 100% auto
}

.reset-body {
    background: url("css/fundo_contel.png") no-repeat center center;
    background-size: 100% auto
}

/* ESTRUTURA PRINCIPAL (BASEADO NO LOGIN ORIGINAL) */
.login-container {
    display: flex;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    border-radius: 10px;
    overflow: hidden
}

.login-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 auto;
    width: 100%;
    height: 100dvh;
}

.top-block {
    padding-top: 1rem;
    padding-inline: 2rem
}

    .top-block div {
        border-radius: 5px;
        padding: 5px;
    }

.middle-block {
    padding-inline: 2rem;
    color: #989898
}

    .middle-block h3 {
        color: #505050
    }

    .middle-block a {
        color: #9B9B9B !important;
        font-size: .8rem
    }

.footer-block {
    padding-inline: 2rem;
    padding-bottom: 1rem
}

.login-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: 100dvh
}

.banner-image-container {
    width: 95%;
    max-height: 95%;
    border: 1px solid transparent;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center
}

    .banner-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

/* FORM CONTROLS */
.form-control {
    border-radius: .5rem;
    height: 3rem
}

.btn-primary {
    background-color: #00d66b;
    border: none;
    padding: .75rem;
    border-radius: .5rem
}

    .btn-primary:hover {
        background-color: #00c05c
    }

.input-group-container {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: rgba(0,0,0,.04);
    border: 1px solid transparent;
    border-radius: .5rem;
    transition: border-color .3s ease;
    margin-bottom: 1rem
}

    .input-group-container:focus-within {
        border-color: #02EA75
    }

    .input-group-container:has(.input-text:not(:placeholder-shown)):not(:focus-within) {
        border-color: #000
    }

.input-text {
    width: 80%;
    border: none;
    outline: none;
    height: 3rem;
    margin-left: .5rem;
    padding: .5rem;
    font-family: inherit;
    font-size: .8rem !important;
    color: #000;
    background-color: transparent
}

.icon-box {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center
}

    .icon-box img {
        width: 1rem;
        height: 1rem;
        transition: all .3s ease;
        filter: none
    }

/* BOTÃO ESPECIAL DE LOGIN */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #02EA75;
    border: none;
    padding: .75rem 0 .75rem .75rem;
    border-radius: .5rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .3s ease
}

    .btn-login .text {
        width: 80%;
        text-align: left;
        font-size: 1rem;
        color: #000 !important;
        transition: transform .3s ease
    }

    .btn-login .icon {
        width: 20%;
        display: flex;
        align-items: center;
        justify-content: center
    }

        .btn-login .icon img {
            width: 1rem;
            height: 1rem
        }

    .btn-login:hover .text {
        transform: translateX(20px)
    }

.logo {
    width: 8.375rem
}

.footer-text {
    font-size: .6rem;
    color: #989898;
    text-align: justify;
    margin-top: 30px
}

.footer-img {
    width: 30px
}

/* LAYOUT RESPONSIVO */
@media (max-width:768px) {
    .login-container {
        flex-direction: column-reverse;
        height: 100dvh;
        position: relative
    }

    .login-banner {
        flex: 0 0 40%;
        height: auto
    }

    .login-form {
        flex: 0 0 60%;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        padding: 1rem
    }

    .top-block {
        position: static;
        transform: none;
        background-color: #02EA75;
        border-radius: 0.7rem;
        box-shadow: 0 4px 8px rgba(0,0,0,.2);
        padding: 1.2rem;
        z-index: 5;
        margin: -2rem auto;
    }

        .top-block .logo {
            content: url('/Content/Account/assets/images/brand-white.svg');
            width: 2.8rem
        }

        .top-block.no-nogle {
            background-color: transparent !important
        }

            .top-block.no-nogle img {
                margin: auto
            }

    .middle-block p {
        max-width: 65%
    }

        .middle-block p.mb-2 {
            display: none !important
        }

    .footer-block {
        display: none !important
    }

    .middle-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding-inline: 0;
        width: 100%
    }

        .middle-block form {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
            width: 100%
        }

            .middle-block form .btn-login {
                margin-top: auto
            }

    .d-flex.justify-content-end.mb-3 {
        justify-content: center !important
    }
}

/* DEFINIÇÃO PADRÃO P/ LARGURA >= 769px */
@media (min-width:769px) {
    .login-form {
        flex: 0 0 35%;
        max-width: 35%;
        height: 100dvh
    }

    .login-banner {
        flex: 0 0 65%;
        max-width: 65%;
        height: 100dvh
    }
}

/* CORRIGE BUG DO AUTOFILL */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s
}

/* ESTILOS ORIGINAIS DO FORGOT & RESET (BOTÕES ETC.) */
.voltar:hover {
    cursor: pointer;
    color: #fff;
    background-color: #17a3af
}

.voltar {
    color: #082746;
    font-weight: bold;
    width: 50%
}

    .voltar.loginMarca {
        background-color: #fff;
        -webkit-transition-duration: .7s;
        transition-duration: .7s;
        color: #144ace !important
    }

.loginMarca:hover {
    background-color: #00d66a !important;
    border: 1px solid #00d66a !important
}

input.loginMarca {
    background-color: #fff;
    -webkit-transition-duration: .7s;
    transition-duration: .7s;
    color: #144ace !important
}

@media (max-width:800px) {
    body {
        background-size: cover;
        background-position: bottom;
        overflow: hidden
    }
}

/* PARA A TELA DE RESET (password-new.aspx) */
.voltar.reset {
    color: #144ace !important;
    background-color: #fff;
    font-weight: bold;
    border: none;
    width: 200px;
    height: 30px;
    border-radius: 25px !important;
    transition: all ease .7s
}

    .voltar.reset:hover {
        color: #fff;
        background-color: #00d66a
    }

.criarSenha {
    background-color: #fff !important;
    transition: all ease .7s;
    color: #144ace !important
}

    .criarSenha:hover {
        background-color: #00d66a !important
    }
