@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@200;300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Mulish', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    background-image: url(../img/fondos/xd.png);
    height: 100%;
    background-size: cover; /* Asegura que cubra toda la pantalla */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita repeticiones */
    
}

.container {
    width: 1020px;
    display: flex;
    height: 650px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #949eff;
}

.btnregresar {
    top: 100px;
    left: 100px;
    background-color: #222;
}
/* .container .box {
    position: relative;
    height: 100%;
    width: 50%;
    transition: all 1.5s;
    transform: translateX(0);
    background-color: #fff;
    z-index: 1;
}

.container.active .box {
    transition: all 1.5s;
    transform: translateX(100%);
}

.container .box .form {
    position: absolute;
    top: 0;
    height: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.container .box .form.sign_up {
    opacity: 0;
    z-index: 2;
    background-color: #fff;
}


.container .box .form.sign_in {
    transition: all 0.5s;
    z-index: 5;
    background-color: #fff;
}

.container.active .box .form.sign_in {
    animation: Show 0.65s ease-in-out;
}

.container .overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #FF4167;
    width: calc(100% - 50%);
    height: 100%;
    transition: all 1.5s;
    transform: translateX(0);
    z-index: 5;
}

.container.active .overlay {
    transition: all 1.5s;
    transform: translateX(-100%);
}

.container .overlay .page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
}

.container .overlay .page.page_signIn {
    z-index: 2;
    background-color: #FF4167;
}

.container .overlay .page.page_signUp {
    z-index: 5;
    background-color: #FF4167;
}

.overlay .page h3 {
    color: #fff;
    font-size: 40px;
    margin-bottom: 15px;
}

.overlay .page p {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 17px;
}

.btn {
    display: inline-block;
    outline: none;
    color: #fff;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 550;
    background-color: transparent;
    padding: 12px 45px;
    border-radius: 22px;
    border: 1.5px solid #fff;
    cursor: pointer;
}

.form h3 {
    color: #222;
    font-size: 40px;
}

.form span {
    color: #3a3838;
}

#form_input .type {
    width: 330px;
    height: 48px;
    background-color: #EEEDEF;
    margin: 30px 0;
}

#form_input .type input {
    width: 100%;
    height: 100%;
    padding: 0 10px;
    font-size: 16px;
    border: none;
    outline: none;
    background-color: transparent;
}

#form_input .type input::placeholder {
    color: #A9A8A9;
}

#form_input .forgot {
    margin-bottom: 20px;
    font-weight: 500;
}

.bkg {
    background-color: #FF4167;
} */

@keyframes Show {
    0%, 49.999% {
        opacity: 0;
        z-index: 1;
    }
    100% {
        opacity: 1;
        z-index: 5;
    }
}

@keyframes Hidden {
    0%, 49.999% {
        opacity: 1;
        z-index: 5;
    }
    100% {
        opacity: 0;
        z-index: 1;
    }
}

.container .box {
    position: relative;
    display: flex;
    height: 100%;
    width: 50%;
    transition: all 0.8s;
    transform: translateX(0);
    background-color: #fff;
    z-index: 1;
    overflow: hidden;
    background-color: #222;
    flex-grow: 1;
    flex-basis: 200;
}


.container.active .box {
    transform: translateX(100%);
}

.container .box .form {
    position: absolute;
    height: 100%;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.container .box .form.sign_up {
    /* transition: all 0.5s;
    opacity: 0;
    transform: translateX(-100%); */
}

.container .box .form.sign_up {
    transition: all 1.15s;
    z-index: 1;
    opacity: 0;
    background-color: #fff;
}

.container .box .form.sign_in {
    opacity: 1;
    transition: all 1.15s;
    z-index: 5;
    background-color: #fff;
}

.container.active .box .form.sign_in {
    z-index: 1;
    opacity: 0;
}

.container.active .box .form.sign_up {
    z-index: 5;
    opacity: 1;
}

.container.active .box .form.sign_up {
    /* opacity: 1;
    transform: translateX(0%); */
}

.container .box .form.sign_in {
    /* transition: all 0.5s;
    opacity: 1;
    transform: translateX(0%); */
}

.container.active .box .form.sign_in {
    /* opacity: 0;
    transform: translateX(100%); */
}

.container .overlay {
    display: flex;
    height: 100%;
    width: 50%;
    transition: all 0.8s;
    transform: translateX(0);
    background-color: #949eff;
    background-image: url(../img/fondos/prueba2.gif);
    z-index: 1;
    overflow: hidden;
    z-index: 5;
    opacity: 1;
    flex-grow: 1;
}

.container.active .overlay {
    transform: translateX(-100%);
}

.container .overlay .page {
    height: 100%;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.5s;
    opacity: 1;
}

.container.active .overlay .page.page_signIn {
    opacity: 0;
    margin-left: -100%;
}

.container.active .overlay .page.page_signUp {
    margin-left: 0%;
}


.overlay .page h3 {
    color: #fff;
    font-size: 40px;
    margin-bottom: 15px;
}

.overlay .page p {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    top: 130px;
    font-size: 17px;
    
    position: relative;
}

.btn {
    display: inline-block;
    outline: none;
    color: #fff;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 550;
    background-color: transparent;
    padding: 12px 45px;
    border-radius: 22px;
    border: 1.5px solid #fff;
    cursor: pointer;
}

.form h3 {
    color: #222;
    font-size: 40px;
}

.form span {
    color: #3a3838;
}

#form_input .type {
    width: 330px;
    height: 48px;
    background-color: #EEEDEF;
    margin: 30px 0;
}

#form_input .type input {
    width: 100%;
    height: 100%;
    padding: 0 10px;
    font-size: 16px;
    border: none;
    outline: none;
    background-color: transparent;
}

#form_input .type input::placeholder {
    color: #A9A8A9;
}

#form_input .forgot {
    margin-bottom: 20px;
    font-weight: 500;
}

.bkg {
    background-color: #949eff;
}





.container {
    transition: all 0.8s ease-in-out;
}

.container.vertical .box {
    transform: translateY(0); /* Sin desplazamiento inicial */
}

.container.vertical.active .box {
    transform: translateY(100%); /* Desplazar hacia arriba */
}

.container.vertical .overlay {
    transform: translateY(0); /* Sin desplazamiento inicial */
}

.container.vertical.active .overlay {
    transform: translateY(-100%); /* Desplazar hacia abajo */
}




/* Por defecto: flecha hacia la derecha */
.btn .bi {
    transition: transform 0.3s ease-in-out;
}

/* Clase para flecha hacia arriba */
.vertical .btnSign-in .bi {
    transform: rotate(-90deg);
}

/* Clase para flecha hacia abajo */
.vertical .btnSign-up .bi {
    transform: rotate(90deg);
}


.btnregresar {
    top: 100px;
    left: 100px;
    background-color: #222;
}


@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .container .box,
    .container .overlay {
        width: 100%;
        min-height: 400px;
        height: auto;
    }
}

@media screen and (max-width: 768px) {
    .overlay .page h3 {
        font-size: 28px;
    }

    .overlay .page p {
        font-size: 14px;
    }

    .btn {
        font-size: 13px;
        padding: 10px 30px;
    }

    #form_input .type {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 10px;
    }

    #form_input .type {
        margin: 20px 0;
    }

    #form_input .type input {
        font-size: 14px;
    }

    .btn {
        font-size: 12px;
        padding: 8px 20px;
    }
}

@media screen and (max-width: 768px) {
    

    .container .overlay {
        background-color: #949eff;
        background-image: url(../img/fondos/hola\ amigo.png);
        align-items: center;
        background-position: center;
        background-position-x: center;
        background-position-y: 2000px;
    }
}
