﻿/* ===================== RESET ===================== */
*, *::before, *::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* ===================== GLOBAL ===================== */
body, input {
    font-family: "Poppins", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: url('../images/fondo_login.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

main {
    width: 100%;
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===================== WRAPPER ===================== */
.wrapper {
    width: auto;
    background: none;
    color: #000;
    padding: 30px;
}

    .wrapper h1 {
        font-size: 24px;
        text-align: center;
    }

    .wrapper .input-box {
        margin: 20px 0;
    }

/* ===================== INPUTS ===================== */
.input-box input {
    width: 100%;
    height: 40px;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 5px;
    font-size: 14px;
}

/* ===================== BUTTON ===================== */
.btn {
    width: 100%;
    height: 40px;
    background: #000;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

/* ===================== LINKS ===================== */
.register-link {
    font-size: 14px;
    text-align: center;
}

/* ===================== FOOTER ===================== */
.footer {
    position: static;
    color: #000;
}

/* ===================== BOX ===================== */
.box {
    position: relative;
    width: 100%;
    max-width: 1020px;
    height: 640px;
    background-color: #fff;
    border-radius: 3.3rem;
    box-shadow: 0 60px 40px -30px rgba(0, 0, 0, 0.27);
    overflow: hidden;
}

/* ===================== INNER BOX ===================== */
.inner-box {
    position: absolute;
    width: calc(100% - 4.1rem);
    height: calc(100% - 4.1rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
}

/* ===================== FORMULARIOS ===================== */
.forms-wrap {
    width: 45%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.8s ease-in-out;
}

form {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    transition: opacity 0.2s ease;
}

    form.sign-up-form {
        opacity: 0;
        pointer-events: none;
    }

/* ===================== LOGO ===================== */
.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        width: 67px;
        margin-right: 0.3rem;
    }

    .logo h4 {
        font-size: 1.1rem;
        margin-top: -9px;
        letter-spacing: -0.5px;
        color: #151111;
    }

/* ===================== HEADINGS ===================== */
.heading h2 {
    font-size: 2.1rem;
    font-weight: 600;
    color: #151111;
}

.heading h6 {
    color: #bababa;
    font-weight: 400;
    font-size: 0.75rem;
}

.toggle {
    color: #151111;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: 0.3s;
}

    .toggle:hover {
        color: #8371fd;
    }

/* ===================== INPUT WRAPPER ===================== */
.input-wrap {
    position: relative;
    height: 37px;
}

.input-field {
    position: absolute;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    outline: none;
    border-bottom: 1px solid #bbb;
    font-size: 0.95rem;
    color: #151111;
    transition: 0.4s;
}

/* ===================== CAROUSEL ===================== */

.carousel {
    width: 55%;
    height: 100%;
    background-color: #ffe0d2;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    padding: 0; /* Elimina padding que reducirá el espacio de la imagen */
    overflow: hidden;
    transition: 0.8s ease-in-out;
}

.images-wrapper {
    width: 100%;
    height: 100%;
    display: grid;
    overflow: hidden;
}

.image {
    width: 100%;
    height: 100%;
    display: block; /* evita espacios vacíos */
    object-fit: cover !important;
    object-position: center center;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s, transform 0.4s;
}

    .image.show {
        opacity: 1;
        transform: scale(1);
    }

/* ===================== TEXT SLIDER ===================== */
.text-slider {
    text-align: center;
    padding: 1rem 0;
}

.text-wrap {
    max-height: 2.2rem;
    overflow: hidden;
}

.text-group {
    display: flex;
    flex-direction: column;
    transition: 0.5s;
}

/* ===================== BULLETS ===================== */
.bullets {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

    .bullets span {
        width: 0.5rem;
        height: 0.5rem;
        background-color: #aaa;
        margin: 0 0.25rem;
        border-radius: 50%;
        cursor: pointer;
        transition: 0.3s;
    }

        .bullets span.active {
            width: 1.1rem;
            background-color: #151111;
            border-radius: 1rem;
        }

/* ===================== RESPONSIVE 850px ===================== */
@media (max-width: 850px) {

    body {
        height: auto;
        padding: 20px 0;
        align-items: flex-start;
    }

    .box {
        height: auto;
        max-width: 100%;
        padding: 1rem;
        border-radius: 1.5rem;
    }

    .inner-box {
        flex-direction: column;
        position: static;
        width: 100%;
        height: auto;
        transform: none;
        gap: 1.5rem;
    }

    .carousel {
        width: 100%;
        height: 260px;
        border-radius: 1rem;
        padding: 0; /* importante */
    }

    .images-wrapper {
        height: 100%;
    }

    .forms-wrap {
        width: 100%;
        height: auto;
        padding: 1rem 0;
    }

    form {
        max-width: 100%;
    }
}

/* ===================== RESPONSIVE 480px ===================== */
@media (max-width: 480px) {

    .carousel {
        height: 200px;
        padding: 0;
    }

    .heading h2 {
        font-size: 1.4rem;
    }

    .input-field {
        font-size: 0.9rem;
    }

    .btn {
        height: 40px;
        font-size: 0.9rem;
    }
}
