/* Elimina márgenes y paddings predeterminados */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #000;
    background-image: url('../../assets/images/12.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
}

/* Contenedor del login */
.login-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    max-width: 850px;
    width: 90%;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Imagen al lado del formulario */
.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Sección del formulario */
.form-section {
    flex: 1.5;
    padding: 20px;
}

h2 {
    text-align: left;
    font-size: 1.7rem;
    margin-bottom: 20px;
    color: #333;
}

/* Estilo de los inputs */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input[type="email"], input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f5f8ff;
    font-size: 1rem;
    color: #333;
}

input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Botón de Iniciar Sesión y Registrar */
.login-btn, .register-btn {
    width: 100%;
    background-color: #333;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-bottom: 10px;
}

.login-btn:hover, .register-btn:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.login-btn:active, .register-btn:active {
    transform: translateY(0);
    background-color: #111;
}

/* Ajustes de responsividad */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        padding: 15px;
    }

    .image-section, .form-section {
        width: 100%;
    }

    .form-section {
        padding: 15px;
    }

    h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    input[type="email"], input[type="password"] {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.3rem;
        text-align: center;
    }

    input[type="email"], input[type="password"] {
        font-size: 0.9rem;
        padding: 8px;
    }

    .login-btn, .register-btn {
        font-size: 0.9rem;
        padding: 10px;
    }
}
