@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #FAFAFA;
    font-family: "DM Sans", sans-serif;
}

/* Contenedor principal */
.container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Logo */
.logo {
    background: #f7eeff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.logo img {
    max-width: 300px;
    width: 80%;
    height: auto;
}

/* Formulario */
.login-form {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex: 1;
    margin: 0 0;
}

.row {
    width: 100%;
    max-width: 400px;
}

.title {
    text-align: center;
    margin-bottom: 30px;
}

.title h1 {
    font-weight: 600;
    color: #4d4c4c;
}

.title span {
    color: #8f8e8e;
    font-size: 14px;
}

.title span a {
    color: #7dcbf6;
    text-decoration: none;
}

.inputs #error {
    color:red;
    display:none;
}

.inputs label {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 300;
    color: #8f8e8e;
    margin-bottom: 5px;
    display: block;
    text-align: left;
}

.inputs input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 20px;
    background-color: #ececec;
}

.inputs #submitButton {
    display: flex;
    justify-content: center;
    margin: 5px 0;
    position:relative;
}

#loginForm, #registerForm, #btn-url {
    width: 100%;
    padding: 12px;
    background-color: #7dcbf6;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* Loader */
.loader {
    display: none;
    width: 100%;
    height: 100%;
    padding: 10px;
    background-color: #87CEFA;
    border-radius: 20px;
    justify-content: center;
    align-items: center;
    position:absolute;
}

.loader::before,
.loader::after,
.loader span {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: white;
    border-radius: 50%;
    animation: bounce 1.5s infinite ease-in-out;
}

.loader::before {
    animation-delay: 0s;
}
.loader span {
    animation-delay: 0.2s;
}
.loader::after {
    animation-delay: 0.4s;
}

/* Animación de rebote */
@keyframes bounce {
    0%, 80%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    40% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* ================== MEDIA QUERIES ================== */

/* Tablets y dispositivos medianos */
@media screen and (min-width: 768px) {
    .container {
        flex-direction: row;
    }

    .logo {
        width: 40%;
        height: 100vh;
    }

    .login-form {
        width: 60%;
        height: 100vh;
    }
}

/* Escritorio y pantallas grandes */
@media screen and (min-width: 1200px) {
    .row {
        max-width: 500px;
    }

    .logo img {
        max-width: 400px;
    }
}
