﻿*, *:before, *:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    background: #ededed;
    padding-top:100px;
}

input, button {
    border: none;
    outline: none;
    background: none;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

.tip {
    font-size: 20px;
    margin: 40px auto 50px;
    text-align: center;
}

.cont {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 100%;
    margin: auto;
    background: #fff;
}


.form {
    position: relative;
    width: 640px;
    height: 100%;
    transition: transform 1.2s ease-in-out;
    padding: 50px 30px 0;
}

.sub-cont {
    display: block;
    overflow: hidden;
    position: absolute;
    left: 640px;
    top: 0;
    width: 900px;
    height: 100%;
    padding-left: 260px;
    background: #fff;
    transition: transform 1.2s ease-in-out;
}

.cont.s--signup .sub-cont {
    transform: translate3d(-640px, 0, 0);
}

button {
    display: block;
    margin: 0 auto;
    width: 260px;
    height: 36px;
    border-radius: 30px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.img {
    overflow: hidden;
    z-index: 2;
    position: absolute;
    left: 0;
    top: 0;
    width: 260px;
    height: 100%;
    padding-top: 360px;
}

    .img:before {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        width: 900px;
        height: 100%;
        background-image: url(../imagenes/trucks.jpg);
        background-size: cover;
        transition: transform 1.2s ease-in-out;
    }

    .img:after {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
    }

.cont.s--signup .img:before {
    transform: translate3d(640px, 0, 0);
}

.img__text {
    z-index: 2;
    position: absolute;
    left: 0;
    top: 50px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    color: #fff;
    transition: transform 1.2s ease-in-out;
}

    .img__text h2 {
        margin-bottom: 10px;
        font-weight: normal;
    }

    .img__text p {
        font-size: 14px;
        line-height: 1.5;
    }

.cont.s--signup .img__text.m--up {
    transform: translateX(520px);
}

.img__text.m--in {
    transform: translateX(-520px);
    min-width: 200px;
}

.cont.s--signup .img__text.m--in {
    transform: translateX(0);
}

.img__btn {
    overflow: hidden;
    z-index: 2;
    position: relative;
    width: 100px;
    height: 36px;
    margin: 0 auto;
    background: transparent;
    color: #fff;
    text-transform: uppercase;
    font-size: 15px;
    cursor: pointer;
}

    .img__btn:after {
        content: "";
        z-index: 2;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        border: 2px solid #fff;
        border-radius: 30px;
    }

    .img__btn span {
        position: absolute;
        left: 0;
        top: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        transition: transform 1.2s;
    }

        .img__btn span.m--in {
            transform: translateY(-72px);
        }

.cont.s--signup .img__btn span.m--in {
    transform: translateY(0);
}

.cont.s--signup .img__btn span.m--up {
    transform: translateY(72px);
}

h2 {
    width: 100%;
    font-size: 26px;
    text-align: center;
}

label {
    display: block;
    width: 260px;
    margin: 25px auto 0;
    text-align: center;
}

    label span {
        font-size: 12px;
        color: #cfcfcf;
        text-transform: uppercase;
    }

input {
    display: block;
    width: 100%;
    padding-bottom: 2px;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    text-align: center;
}

.forgot-pass {
    display: flex;
    justify-content: center;
    margin-top: 5px;
    text-align: center;
    font-size: 12px;
    color: #cfcfcf;
}

.submit {
    margin-top: 40px;
    margin-bottom: 20px;
    background: #d4af7a;
    text-transform: uppercase;
}

.fb-btn {
    border: 2px solid #d3dae9;
    color: #8fa1c7;
    margin-bottom: 20px;
}

    .fb-btn span {
        font-weight: bold;
        color: #455a81;
    }

.sign-in {
    transition-timing-function: ease-out;
}

.cont.s--signup .sign-in {
    transition-timing-function: ease-in-out;
    transition-duration: 1.2s;
    transform: translate3d(640px, 0, 0);
}

.sign-up {
    transform: translate3d(-900px, 0, 0);
}

.cont.s--signup .sign-up {
    transform: translate3d(0, 0, 0);
}

.icon-link {
    position: absolute;
    left: 5px;
    bottom: 5px;
    width: 32px;
}

    .icon-link img {
        width: 100%;
        vertical-align: top;
    }

.icon-link--twitter {
    left: auto;
    right: 5px;
}

.link-footer {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.btn-sing-up-mobile {
    display: none;
}
/* Estilos base como los que ya tienes aquí */

@media (max-width: 768px) {

    .cont {
        width: 100%;
        height: auto;
        margin: 20px;
    }

    .form, .sub-cont {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
       
    }
    
    .form {
        padding-top: 20px;
    }

    /* Ajustar la imagen de fondo y sus textos */
    .img {
        position: relative;
        width: 100%;
        max-height: 90px;
        padding: 0px;
        background: rgba(0, 0, 0, 0.6);
      
    }

    .img__text {
        padding: 10px;
        font-size: 14px;

    }

    /* Cambiar la disposición de los formularios */
    .form.sign-in, .form.sign-up {
        transform: translate3d(0, 0, 0);
        transition: none;
    }

    .cont.s--signup .sign-in, .cont.s--signup .sign-up {
        transform: none;
    }

    /* Ajustar el botón de alternancia */
    .img__btn {
        min-width: 200px;
        font-size: 12px;
        margin-top: 10px;
    }

    /* Ajustes de entrada de texto */
    input {
        width: 90%;
        font-size: 14px;
    }

    /* Ajuste de botones */
    button {
        width: 90%;
        font-size: 14px;
        margin: 10px auto;
    }

    /* Ajuste de los títulos */
    h2 {
        font-size: 20px;
    }

    /* Margen en la sección de "Olvidaste tu contraseña" */
    .forgot-pass {
        margin-top: 10px;
        font-size: 10px;
    }

    .btn-sing-up-mobile {
        display: block;
    }
    .sub-cont.img
    {
        display:none;
    }
   
}

@media (max-width: 580px) {
    /* Aún más ajustes para pantallas muy pequeñas */
    .cont {
        margin: 10px;
        height:600px;
    }

    .img {
        height: 150px;
    }

    .img__text h2 {
        font-size: 16px;
    }

    .img__text p {
        font-size: 12px;
    }

    /* Ajuste de los textos y botones a tamaño pequeño */
    .img__btn {
        min-width: 200px;
        font-size: 10px;
        margin-bottom: 25px;
    }

    .sub-cont.img__btn.m--in {
        margin-bottom: 25px !important;
        padding-bottom: 25px !important;
    }

    input {
        font-size: 12px;
    }

    button {
        font-size: 12px;
        padding: 8px;
    }

    /* Ajuste del tamaño de la fuente en títulos */
    h2 {
        font-size: 18px;
    }

    .btn-sing-up-mobile {
        display: block;
    }

    .sub-cont.img {
        display: none;
    }
}
