@use "sass:map";
@use "helpers";

$colors: (
primaria: #333333,
texto: #707070,
titulos: #CCCCCC,
backgrounds: #333333,
);

$primary: helpers.$highlight;
$titulosColor: map.get($colors, titulos);
$txtColor: map.get($colors, texto);
$backgrounds: map.get($colors, backgrounds);

$fontOne: helpers.$fontRegular;
$fontTwo: helpers.$fontLight;
$fontThree: helpers.$fontMedium;
$fontFour: helpers.$fontBold;

body{
    background-color:#fff;
}

#he-login {
    display: block;
    height: 60px;
    padding-top: 4px;
    text-align: center;
    border-bottom: solid 1px $primary;
    background-color: #F9F9F9;

    img{
        display: block;
        width:100%;
        max-width: 150px;
        margin: 0 auto;
    }
}

#con-titulo {
    h1 {
        display: block;
        margin: 0px;
        margin-bottom: 5px;
        color: #000000;
        font: normal 30px $fontOne;
        text-align: center;
        text-transform: uppercase;
    }

    p {
        display: block;
        margin: 0px;
        margin-bottom: 15px;
        color: #000000;
        font: normal 13px $fontOne;
        text-align: center;
    }
    
    .msgCaptcha{
        display: block;
        margin: 0px;
        margin-bottom: 15px;
        font: normal 13px $fontOne;
        text-align: center;
    }
}

#cad-content {
    padding-top: 50px;
    padding-bottom: 50px;

    @media(max-width:767px){
        padding-top: 30px;
        padding-bottom: 30px;
    }

    #cad-tipo{
        margin-bottom: 10px;

        .box{
            display: flex;
            width: 100%;
            align-items: center;
            justify-content: center;

            label{
                display: block;
                width: 100%;
                max-width: 250px;
                padding: 10px;
                margin-right: 15px;
                color: $primary;
                font: normal 15px $fontTwo;
                text-align: center;
                border: solid 1px $primary;
                background-color: #FFFFFF;
                @include helpers.transicao(0.4s ease-in-out);

                input{
                    display: none;
                }

                &.ativo{
                    color: #FFFFFF;
                    background-color: $primary;
                }

                &:last-of-type{
                    margin-right: 0px;
                }
            }
        }
    }

    .content-campos {
        font-family: $fontFour;

        &:first-of-type {
            margin-bottom: 60px;
        }

        .box {
            background-color: #F3F3F3;
            border: none;
            border-radius: 4px;
            padding: 20px;
            color: $txtColor;

            header {
                height: 80px;

                h2 {
                    font-family: $fontThree;
                    font-size: 20px;
                    text-transform: uppercase;
                    color: #000000;
                }

                #titulo-login {
                    text-align: center;
                }

                span {
                    font-family: Arial;
                    color: #000000;
                    font-size: 14px;
                }
            }

            label {
                position: relative;
                margin-bottom: 20px;
                color: #000000;
                font-family: $fontOne;
                font-size: 14px;
                font-weight: normal;
                text-indent: 0px;

                .msgError{
                    position: absolute;
                    z-index: 100;
                    display: block;
                    width: 100%;
                    max-width: 275px;
                    top: 100%;
                    left: 15px;
                    padding: 10px;
                    text-transform: initial;
                    border: solid 1px #ddd;
                    background-color: #FFFFFF;
                    -webkit-box-shadow: 0px 0px 32px -5px rgba(0,0,0,0.1);
                    -moz-box-shadow: 0px 0px 32px -5px rgba(0,0,0,0.1);
                    box-shadow: 0px 0px 32px -5px rgba(0,0,0,0.1);

                    &:before{
                        display: block;
                        content: "";
                        width: 20px;
                        height: 20px;
                        margin-top: -20px;
                        transform: rotate(45deg);
                        border-top: solid 1px #ddd;
                        border-left: solid 1px #ddd;
                        background-color: #FFFFFF;
                    }
                }
            }
        }

        #btCadastro {
            display: block;
            width: 100%;
            padding: 15px;
            max-width: 270px;
            margin: 0 auto;
            margin-top: 40px;
            color: #FFFFFF;
            font-size: 14px;
            font-family: $fontOne;
            font-weight: normal;
            text-transform: uppercase;
            border: none;
            background-color: $primary;
            @include helpers.transicao(0.4s ease-in-out);

            &:hover,&:focus {
                background-color: #00D86C;
            }
        }
    }
}

#modal-exists{
    position: fixed;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    padding: 15px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s linear;

    .box-overlay{
        position: absolute;
        z-index: 1;
        cursor: pointer;
        width: 100%;
        height: 100%;
        top: 0px;
        left: 0px;
        background-color: rgba(0,0,0,0.7);
    }

    .box-conteudo{
        position: relative;
        z-index: 2;
        display: block;
        width: 100%;
        height: auto;
        max-width: 600px;
        background-color: #FFF;
        overflow-y: auto;
        overflow-x: hidden;

        .box-header{
            display: block;
            width: 100%;
            padding: 20px 15px;
            border-bottom: 1px solid #F5F5F5;
        }

        .conteudo{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            width: 100%;
            max-width: 420px;
            margin: 0 auto;
            padding: 50px 15px;
            background-size: cover; 
            background-position: center;
            background-repeat: no-repeat;

            @media(max-width:575px){
                padding-top: 30px;
                padding-bottom: 30px;
            }

            .texto{
                display: block;
                margin: 0px;
                color: #5F5F5F;
                font: normal 16px $fontOne;
                text-align: center;

                strong{
                    font-family: $fontTwo;
                }
            }

            .modal-rodape{
                display: flex;
                width: 100%;
                margin-top: 30px;
                flex-wrap: wrap;
                align-items: center;
                justify-content: space-between;

                .btn-voltar{
                    display: flex;
                    cursor: pointer;
                    color: #5F5F5F;
                    font: normal 13px $fontOne;
                    align-items: center;
                    margin-right: 15px;
                }

                .btnConfirmar{
                    display: block;
                    outline: 0px;
                    width: 100%;
                    max-width: 200px;
                    padding: 15px 10px;
                    color: #FFFFFF;
                    font: normal 13px $fontOne;
                    text-align: center;
                    text-transform: uppercase;
                    background-color: #333333;
                    border-radius: 0px;
                    border: none;
                    box-shadow: none;
                    @include helpers.transicao(0.4s ease-in-out);

                    @media(max-width:575px){
                        max-width: 180px;
                    }

                    &:hover, &:focus{
                        color: #FFFFFF;
                        background-color: #0EAF78;
                    }
                }
            }
        }
    }

    &.ativo{
        visibility: visible;
        opacity: 1;
        transition: opacity 0.3s linear;
    }
}