@import "helpers";

#pagina-cadastro{
    position: relative;
    display: block;
    width: 100%;

    .pagina-content{
        display: flex;
        align-items: stretch;
        justify-content: center;
        width: 100%;
        height: 100vh;

        .bn-page{
            position: relative;
            display: block;
            outline: 0px;
            width: 100%;
            height: 100%;
            max-width: 740px;

            @media(max-width:1199px){
                max-width: 440px;    
            }

            @media(max-width:991px){
                display: none;
            }

            img{
                position: absolute;
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }

        .box-forms{
            display: block;
            width: calc(100% - 740px);

            @media(max-width:1199px){
                width: calc(100% - 440px);
            }

            @media(max-width:991px){
                width: 100%;
            }

            .frmCadastro{
                display: block;
                width: 100%;

                .conteudo{
                    display: block;
                    width: 100%;
                    padding: 40px 15px;

                    .box-controls{
                        display: block;
                        width: 100%;
                    }

                    .content-campos{
                        display: block;
                        width: 100%;
                        max-width: 545px;
                        margin: 0 auto;

                        .btn-voltar{
                            display: flex;
                            align-items: center;
                            gap: 15px;
                            margin: 0px;
                            margin-bottom: 70px;
                            padding: 10px;

                            span{
                                display: block;
                                margin: 0px;
                                color: $textoDark;
                                font: normal 12px $fontRegular;
                                line-height: 18px;
                            }
                        }

                        .logo{
                            display: none;
                            width: 100%;
                            max-width: 211px;
                            margin-bottom: 30px;

                            img{
                                display: block;
                                width: 100%;
                            }

                            @media(max-width:991px){
                                display: block;
                            }
                        }

                        .box-titulo{
                            display: block;
                            margin: 0px;
                            margin-bottom: 60px;
                            color: $textoDark;
                            font: normal 25px $fontBold;
                            line-height: 30px;
                            text-transform: uppercase;
                        }

                        .alert{
                            margin-bottom: 30px;
                        }

                        .box-controls-B2B{
                            display: flex;
                            width: 100%;
                            margin-bottom: 30px;
                            align-items: center;
                            justify-content: flex-start;

                            @media(max-width:575px){
                                flex-direction: column;
                                align-items: flex-start;
                            }

                            .item{
                                display: block;
                                outline: 0px;
                                margin-right: 30px;
                                color: $textoDark;
                                font: normal 12px $fontSemibold;
                                line-height: 18px;
                                letter-spacing: 0.04em;

                                @media(max-width:575px){
                                    margin-right: 0px;
                                    margin-bottom: 15px;
                                }

                                &:before{
                                    @include sprite();
                                    content: "";
                                    width: 24px;
                                    height: 24px;
                                    margin-top: -5px;
                                    margin-right: 15px;
                                    vertical-align: middle;
                                    background-position: -155px -156px;
                                }

                                &.ativo{
                                    &:before{
                                        background-position: -194px -156px;
                                    }
                                }

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

                                    @media(max-width:575px){
                                        margin-bottom: 0px;
                                    }
                                }
                            }
                        }

                        .box{
                            display: none;
                            width: 100%;

                            &.ativo{
                                display: block;
                            }

                            .campos{
                                display: block;
                                width: 100%;
                                margin-bottom: 30px;

                                .ctrl-ie{
                                    display: flex;
                                    outline: 0px;
                                    margin-bottom: 15px;
                                    color: $textoDark;
                                    font: normal 12px $fontSemibold;
                                    line-height: 18px;
                                    letter-spacing: 0.04em;
                                    align-items: center;
                                    justify-content: flex-start;

                                    &:before{
                                        display: block;
                                        content: "";
                                        width: 15px;
                                        height: 15px;
                                        margin-right: 10px;
                                        border: solid 1px $highlight;
                                        background-color: #EEE;
                                        @include transicao(0.4s ease-in-out);
                                    }

                                    &.ativo{
                                        &:before{
                                            background-color: $highlight;
                                        }
                                    }
                                }

                                label {
                                    position: relative;
                                    margin-bottom: 15px;
                                    color: $textoDark;
                                    font: normal 12px $fontSemibold;
                                    line-height: 18px;
                                    letter-spacing: 0.04em;
                                    text-indent: 0px;

                                    .form-control{
                                        display: block;
                                        outline: 0px;
                                        width: 100%;
                                        height: auto;
                                        padding: 13px 15px;
                                        margin-top: 5px;
                                        color: $textoDark;
                                        font: normal 12px $fontRegular;
                                        line-height: 18px;
                                        letter-spacing: 0.04em;
                                        border-radius: 0px;
                                        border: solid 1px #E5E5E5;
                                        box-shadow: none;
                                        background-color: $light;

                                        &:hover,&:focus{
                                            outline: 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 $borders;
                                        background-color: $light;
                                        -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 $borders;
                                            border-left: solid 1px $borders;
                                            background-color: $light;
                                        }
                                    }
                                }
                            }

                            .g-recaptcha{
                                display: flex;
                                align-items: center;
                                justify-content: center;
                            }

                            .btn-next, #btCadastro {
                                display: block;
                                outline: 0px;
                                width: 100%;
                                padding: 15px 10px;
                                margin-bottom: 15px;
                                color: $textoLight;
                                font: normal 12px $fontSemibold;
                                line-height: 18px;
                                letter-spacing: 0.04em;
                                text-align: center;
                                border: none;
                                box-shadow: none;
                                background-color: $highlight;
                                @include transicao(0.4s ease-in-out);

                                &:hover,&:focus{
                                    outline: 0px;
                                    background-color: $success;
                                }
                            }

                            .form-steps{
                                display: flex;
                                width: 100%;
                                align-items: center;
                                justify-content: flex-start;

                                p{
                                    display: block;
                                    margin: 0px;
                                    color: $textoDark;
                                    font: normal 12px $fontLight;
                                    line-height: 18px;

                                    &.atual{
                                        font-family: $fontSemibold;
                                    }

                                    &.divider{
                                        margin: 0px 3px;
                                    }
                                }
                            }

                            .como-comprar{
                                display: block;
                                width: 100%;
                                padding-top: 30px;

                                @media(max-width:1199px){
                                    padding-top: 0px;
                                }
                                
                                .logo{
                                    display: block;
                                    outline: 0px;
                                    width: 100%;
                                    max-width: $logoWidth;
                                    margin-bottom: 30px;
                                    
                                    img{
                                        display: block;
                                        width: 100%;
                                    }
                                }

                                .titulo{
                                    display: block;
                                    margin: 0px;
                                    margin-bottom: 30px;
                                    color: $textoDark;
                                    font: normal 25px $fontBold;
                                    line-height: 30px;
                                }

                                .texto{
                                    display: block;
                                    margin: 0px;
                                    margin-bottom: 40px;
                                    color: $textoDark;
                                    font: normal 15px $fontRegular;
                                    line-height: 22px;
                                }

                                .como-funciona{
                                    display: block;
                                    width: 100%;
                                    margin-bottom: 50px;

                                    .subtitulo{
                                        display: block;
                                        margin: 0px;
                                        margin-bottom: 30px;
                                        color: $textoDark;
                                        font: normal 20px $fontBold;
                                        line-height: 30px;
                                    }

                                    .box-list{
                                        display: block;
                                        width: 100%;

                                        .list-item{
                                            display: flex;
                                            width: 100%;
                                            margin-bottom: 30px;
                                            align-items: center;
                                            justify-content: flex-start;

                                            .list-icone{
                                                @include sprite();
                                                display: block;
                                                content: "";
                                                width: 62px;
                                                height: 62px;

                                                &.ic-1{
                                                    background-position: -82px -285px;
                                                }
                                                &.ic-2{
                                                    background-position: -159px -285px;
                                                }
                                                &.ic-3{
                                                    background-position: -236px -285px;
                                                }
                                                &.ic-4{
                                                    background-position: -313px -285px;
                                                }
                                            }

                                            .list-texto{
                                                display: block;
                                                width: calc(100% - 62px);
                                                padding-left: 20px;
                                                color: $textoDark;
                                                font: normal 15px $fontLight;
                                                line-height: 22px;

                                                strong{
                                                    font-family: $fontSemibold;
                                                }
                                            }

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

                                .btn-login,
                                .btn-comprar{
                                    display: block;
                                    outline: 0px;
                                    width: 100%;
                                    padding: 15px 10px;
                                    font: normal 12px $fontSemibold;
                                    line-height: 18px;
                                    letter-spacing: 0.04em;
                                    text-align: center;
                                    border: solid 1px $highlight;
                                    @include transicao(0.4s ease-in-out);

                                    &:hover,&:focus{
                                        color: $textoLight;
                                        border-color: $success;
                                        background-color: $success;
                                    }
                                }

                                .btn-login{
                                    margin-bottom: 15px;
                                    color: $textoDark;
                                    background-color: $light;
                                }

                                .btn-comprar{
                                    color: $textoLight;
                                    background-color: $highlight;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

#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 $medium;
        }

        .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: $textoMedium;
                font: normal 16px $fontRegular;
                text-align: center;

                strong{
                    font-family: $fontBold;
                }
            }

            .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: $textoMedium;
                    font: normal 13px $fontRegular;
                    align-items: center;
                    margin-right: 15px;

                    &:before{
                        @include sprite();
                        content: '';
                        width: 20px;
                        height: 12px;
                        margin-right: 10px;
                        background-position: -280px -86px;
                    }
                }

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

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

                    &:hover, &:focus{
                        color: #FFFFFF;
                        background-color: $success;
                    }
                }
            }
        }
    }

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