@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
}

.wrapper {
    background: #ececec;
    padding: 0 20px;
    min-height: 100vh;
}

.main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.row {
    width: 900px;
    height: auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 5px 5px 10px 1px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.side-image {
    background-image: url("https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.right {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-color: #fff;
    transition: background-color 0.3s ease;
    flex-direction: column;
}

.input-box {
    width: 100%;
    max-width: 330px;
    text-align: center;
}

.input-box header {
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 22px;
}

.input-field {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 20px;
}

.input {
    height: 45px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    outline: none;
    padding-left: 5px;
}

.input-box .input-field label {
    position: absolute;
    top: 10px;
    left: 5px;
    pointer-events: none;
    transition: .5s;
    font-size: 14px;
}

.input:focus~label,
.input:valid~label {
    top: -10px;
    font-size: 12px;
    color: #5d5076;
}

.submit {
    border: none;
    outline: none;
    height: 45px;
    background: #ececec;
    border-radius: 5px;
    transition: .3s;
    cursor: pointer;
    font-weight: 600;
}

.submit:hover {
    background: #255f9c;
    color: #fff;
}

.signin {
    font-size: small;
    margin-top: 20px;
}

.signin a {
    text-decoration: none;
    font-weight: 600;
    color: #000;
    transition: .3s;
}

.signin a:hover {
    text-decoration: underline;
    color: #000;
    cursor: pointer;
}

/* Contenedor para mensaje de error */
#mensajeError {
    display: none;
    margin-bottom: 20px;
}

/* Responsivo para tablet y móvil */
@media only screen and (max-width: 768px) {
    .wrapper {
        background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
            url("https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4");
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .row {
        max-width: 100%;
        width: 100%;
        background: none;
        box-shadow: none;
    }

    .side-image {
        display: none !important;
    }

    .right {
        background-color: rgba(255, 255, 255, 0.85);
        /* Transparente */
        border-radius: 10px;
    }
}