@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    font-family: "Roboto", sans-serif;

}

body {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(01, 02, 03, .8);
    transition: .5s ease-in-out;

}
.load{
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    
}
.load.hide{
    display: none;
}
.load .spinner{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid #fff;
    animation: rotation 1s linear infinite;
}
.load .spinner::after{
    content: '';
    width: 20px;
    height: 20px;
    position: absolute;
    top: 7px;
    left: 7px;
    border-radius: 50%;
    border: 2px solid #2fa001;

}
@keyframes rotation {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  } 

.container {
    width: 800px;
    height: 450px;
    position: relative;
}

.bgBranco {
    background-color: rgba(255, 255, 255, .1);
    width: 100%;
    height: 400px;
    position: absolute;
    top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 45px rgba(0, 0, 0, .1),
        0 10px 45px rgba(0, 0, 0, .1);


}

.caixaForm {
    width: 50%;
    height: 100%;
    position: absolute;
    background-color: #fff;
    display: flex;
    overflow: hidden;


}

.caixaForm.active {
    left: 50%;
}

.caixaForm form {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 30px;
}
.caixaForm form label{
    position: absolute;
}
.caixaForm form.logar h3,
.caixaForm form.logar input[type="password"] {
    margin-bottom: 25px;
}

.caixaForm form.logar p {
    text-align: center;
    margin: 10px 0;
}

.caixaForm form input {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border-radius: 10px;
    outline: none;
    border: 1px solid red;
}

.caixaForm form input[type="submit"] {
    background-color: red;
}

.caixaForm form.cadastrar {
    transform: translate3d(100%, 0, 0);
}

.caixaForm.active form.logar {
    transition-delay: .25s;
    transition: .5s;
    transform: translate3d(-100%, 0, 0);
}

.caixaForm.active form.cadastrar {
    transition-delay: .25s;
    transition: .5s;
    transform: translate3d(0, 0, 0);
}

.btn {
    padding: 30px;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn button {
    padding: 15px;
    background-color: red;
    outline: none;
    border: none;
    border-radius: 15px;
    color: #fff;
    font-size: 1em;
    font-weight: 600;

}

.none {
    display: none;
}

.ok {
    border: 1px solid green !important;
}

.anima {
    animation-name: Anima;
    animation-duration: 1s;
    animation-iteration-count: 2;
    /* Optional: how many times the animation repeats */
    animation-timing-function: ease-in-out;
}


@media screen and (max-width: 700px) {
    .container {
        height: 650px;
    }

    .bgBranco {
        position: absolute;
        top: 0;
        height: 100% !important;
        flex-direction: column !important;
    }

    .caixaForm {
        width: 100%;
        height: 500px;
        transition: .5s;
    }

    .caixaForm.active {
        left: 0;
        top: 150px;
        transition: 1s;
    }

}

@keyframes Anima {
    0%{
        rotate: -2deg;
    }
    15%{
        rotate: 2deg;
    }
    25%{
        rotate: -2deg;
    }
    50%{
        rotate: 2deg;
    }
    75%{
        rotate: -2deg;
    }
    100%{
        rotate: 2deg;
    }
}