/* Reseteo de márgenes y estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azulbrillante: #00b0ff;
    --azulmedio: #3a86ff;
    --blanco: #fff;
    --grismoscuro: #555;
    --grisclaro: #ccc;
    --grisoscuro: #333;
}

/* Fuentes personalizadas */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.ttf');
    font-weight: 400;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf');
    font-weight: 400;
}

/* Estilo básico de la página */
html {
    font-size: 16px;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to right, var(--azulbrillante), var(--azulmedio));
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Contenedor principal */
.login-ctn {
    display: flex;
    width: 70%;
    max-width: 750px; 
    background: var(--blanco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Columna izquierda: Imagen */
.login-img {
    flex: 1;
    max-width: 400px;
    border-right: 2px solid var(--azulmedio);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.login-img img {
    width: 100%; 
    height: 100%;
    object-fit: contain;
}

/* Columna derecha: Formulario */
.login-form {
    flex: 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-form h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--azulmedio);
}

.login-form label {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--grismoscuro);
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--grisclaro);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--grisoscuro);
}

/* Botón de inicio de sesión */
.btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.login-form .btn-login {
    background: var(--azulbrillante);
    color: var(--blanco);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form .btn-login:hover {
    background-color: var(--azulmedio);
}

/* Media queries para dispositivos móviles y tabletas */

@media screen and (max-width: 1024px) {
    .login-img img {
        width: 100%;
        height: auto;
    }

    .login-form {
        padding: 30px;
    }

    .login-ctn {
        flex-direction: row;
    }
}

@media screen and (max-width: 768px) {
    .login-img {
        border: none;
        max-width: 180px;
    }

    .login-img img {
        width: 80%;
    }

    .login-form {
        padding: 20px;
    }

    .login-ctn {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }
}

@media screen and (max-width: 425px) {
    .login-img {
        border: none;
        max-width: 170px;
    }

    .login-img img {
        width: 60%;
    }

    .login-form {
        padding: 15px;
    }

    .login-ctn {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }
}

@media screen and (max-width: 375px) {
    .login-img {
        border: none;
        max-width: 220px;
    }

    .login-img img {
        width: 60%;
    }

    .login-form {
        padding: 10px;
    }

    .login-ctn {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
}

@media screen and (max-width: 320px) {
    
    .login-img {
        border: none;
        max-width: 200px;
    }

    .login-img img {
        width: 50%;
    }

    .login-form {
        padding: 10px;
    }

    .login-form h2{
        font-size: 1.5rem;
    }

    .login-ctn {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
}
