/* Estilos generales */
body {
    
    margin: 0;
    padding: 0;
}

/* Estilos del footer */
footer {
    margin-top: 0 !important;
}

/* Contenedor principal */
.container {
    display: flex;
    height: 750px;
    margin-bottom: 0;
    transition: all 0.5s ease-in-out;
    font-family: Arial, sans-serif;
}

/* Sección izquierda (Formulario) */
.left {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    transition: all 0.5s ease-in-out;
}
.title{
    color: #834700;
    font-size: 30px;
}
/* Estilos del formulario */
.login-form {
    display: flex;
    flex-direction: column;
    width: 80%;
    text-align: left; /* Alineación de labels a la izquierda */
}

/* Labels alineados a la izquierda */
.label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #834700;
    font-size: 20px;
    font-weight: bolder;
}

/* Contenedor de los campos de entrada */
.input-container {
    position: relative;
    width: 100%;
}

/* Campos de entrada */
.input {
    margin: 10px 0;
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Garantiza que padding no afecte el ancho */
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.input {
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Evita problemas de ancho */
    padding-right: 40px; /* Espacio para el icono */
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #777; /* Color neutral */
}

.toggle-password:hover {
    color: #333; /* Oscurece el ícono al pasar el mouse */
}

/* Botones */
.login-btn{
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
}

.login-btn {
    background-color: #F9C20C;
    color: white;
    font-weight: bold;
    margin-bottom: 15px;
}

.register-btn {
    display: inline-block;
    padding: 12px 20px;
    background-color: #834700;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: opacity 0.8s ease-in-out;
    text-align: center;
}

.register-btn:active {
    opacity: 0; /* 🔥 La página se desvanecerá justo antes de cambiar */
}


/* Sección derecha (Carrusel con imágenes de fondo) */
.right {
    position: relative;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: white;
    transition: all 0.5s ease-in-out;
}

/* Carrusel */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Imágenes dentro del carrusel */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Mostrar la primera imagen al inicio */
.slide:first-child {
    opacity: 1;
}

/* Capa oscura encima del fondo */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.titulo-bienvenida{
    color: yellow;
    font-size: 45px;
    margin-bottom: 0;
}
.texto-bienvenida{
    text-align: center;
    padding: 5px 15px;
    color: white;
    font-size: 20px;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }
    .login-form {
        width: 80%; /* Ajustar ancho para dispositivos móviles */
        max-width: 300px !important; /* Limitar el ancho para que no se vea enorme */
        margin: 0 35px 10px 0; /* 🔥 Centra el formulario horizontalmente */
    }
    .title{
        text-align: center !important;
        margin-right: 25px;
    }

    .left, .right {
        width: 100%;
        display: flex !important; /* 🔥 Fuerza que se muestre */
        justify-content: center !important;
        align-items: center !important;
        animation: slideDown 0.8s ease-in-out; /* Animación de entrada */
    }

    .carousel {
        width: 100%;
        height: 350px; /* Ajusta altura para móviles */
    }
}

