* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    display: flex;
    width: 900px;
    height: 500px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: white;
    overflow: hidden; /* Para asegurar que nada se salga del contenedor */
}

/* Lado izquierdo - Imagen */
.carousel-side {
    width: 50%;
    position: relative;
    background-color: #0080C9;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding-bottom: 30px;
    padding-top: 0; /* Eliminar cualquier padding superior */
}

.carousel {
    width: 100%;
    height: auto; /* Altura automática basada en el contenido */
    margin-bottom: 0; /* Eliminar margen inferior */
    display: block; /* Cambiar a block en lugar de flex */
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    width: 100%;
    height: 100%;
}

.slide {
    width: 100%;
    height: auto;
}

.slide img {
    width: 100%;
    height: auto;
    display: block; /* Importante para eliminar espacio extra debajo de la imagen */
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio */
    object-position: center; /* Centra la imagen */
}

.brand-container {
    position: absolute; /* Posicionamiento absoluto */
    bottom: 30px; /* Distancia desde el fondo */
    width: 100%;
    text-align: center;
}

.brand {
    margin: 10px 0;
    font-size: 22px;
    font-weight: bold;
}

.brand span {
    color: #FFCC29;
}

.tagline {
    margin-bottom: 15px;
    font-size: 14px;
    letter-spacing: 2px;
}

/* Ocultar los puntos de navegación */
.carousel-dots {
    display: none;
}

/* Lado derecho - Formulario de inicio de sesión */
.login-side {
    width: 50%;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.login-box {
    width: 100%;
    max-width: 350px;
}

h1 {
    color: #541F00;
    font-size: 24px;
    text-align: center;
    margin-bottom: 8px;
    font-weight: bold;
}

.underline {
    height: 2px;
    width: 120px;
    background-color: #FFC800;
    margin: 0 auto 20px;
}

.login-subtitle {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    background-color: #f8f8f8;
    color: #333;
}

input:focus {
    outline: none;
    border-color: #0080C9;
}

.login-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #0080C9;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.login-button:hover {
    background-color: #0071B3;
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: #0080C9;
    text-decoration: none;
    font-size: 13px;
}

.divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 20px 0;
}

.register-link {
    text-align: center;
    font-size: 13px;
    color: #666;
}

.register-link a {
    color: #FFC800;
    text-decoration: none;
    font-weight: bold;
}

.error-message {
    color: red;
    margin-top: 10px;
    text-align: center;
}

/* Adaptado para móviles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .carousel-side {
        width: 100%;
        height: 300px;
    }

    .login-side {
        width: 100%;
        padding: 30px 20px;
    }
}