﻿/* Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Centrar todo el contenido */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4;
}

/* Contenedor principal */
.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    max-width: 1200px;
    height: 80vh;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Estilos del formulario (CARD) */
.login-box {
    width: 380px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff; /* Fondo blanco */
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2); /* Sombra para efecto de card */
    border: 1px solid #ddd; /* Borde sutil */
}

    .login-box h2 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 22px;
        font-weight: bold;
    }

    .login-box form {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .login-box input {
        padding: 12px;
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 14px;
    }

    .login-box button {
        background: #007bff;
        color: white;
        padding: 12px;
        border: none;
        cursor: pointer;
        border-radius: 8px;
        font-size: 16px;
        font-weight: bold;
        transition: all 0.3s ease-in-out;
    }

        .login-box button:hover {
            background: #0056b3;
            transform: scale(1.05);
        }

/* Imágenes laterales */
.side-image {
    flex: 1;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
}

/* Rutas de imágenes */
.left {
    background-image: url('/img/accept.svg');
}

.right {
    background-image: url('/img/world.svg');
}

/* 📌 RESPONSIVE DESIGN 📌 */
@media (max-width: 1024px) {
    .container {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
        width: 90%;
        padding: 20px;
    }

    .side-image {
        display: none; /* 🔹 Ocultar imágenes en pantallas pequeñas */
    }

    .login-box {
        width: 90%;
    }
}


/* Estilo del logo y nombre de la app */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

    .logo img {
        width: 80px; /* Ajustar tamaño del logo */
        height: auto;
        margin-bottom: 5px;
    }

    .logo h1 {
        font-size: 24px;
        font-weight: bold;
        color: #333;
        text-transform: uppercase;
    }



.login-box button {
    background: #196933; /* ✅ Verde */
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

    .login-box button:hover {
        background: #133d20; /* ✅ Verde más oscuro al pasar el mouse */
        transform: scale(1.05);
    }


.error-message {
    background-color: #f8d7da !important; /* 🔴 Fondo rojo claro */
    color: #721c24 !important; /* 🔴 Texto rojo oscuro */
    border: 1px solid #f5c6cb !important; /* 🔴 Borde rojo */
    padding: 12px !important;
    border-radius: 6px !important;
    text-align: center !important;
    font-weight: bold !important;
    margin-bottom: 20px !important; /* ✅ Espacio debajo del mensaje */
    margin-top: 10px !important; /* ✅ Espacio entre "Iniciar Sesión" y el mensaje */
    width: 100% !important; /* ✅ Ocupar todo el ancho del formulario */
    display: block !important;
}


/* 🔹 Restaurar color de los inputs al escribir o cuando el navegador autocompleta */
.login-box input {
    background-color: white !important; /* Fondo blanco */
    color: black !important; /* Texto negro */
    border: 1px solid #ccc !important; /* Borde gris claro */
}

    /* 🔹 Evitar el fondo amarillo cuando el navegador autocompleta */
    .login-box input:-webkit-autofill,
    .login-box input:-webkit-autofill:hover,
    .login-box input:-webkit-autofill:focus,
    .login-box input:-webkit-autofill:active {
        background-color: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
        -webkit-box-shadow: 0 0 0px 1000px white inset !important; /* Eliminar fondo amarillo */
        box-shadow: 0 0 0px 1000px white inset !important; /* Compatible con otros navegadores */
    }
