/* Asegura que el body ocupe toda la altura de la pantalla */
body,
html {
    height: 100%;
    margin: 0;
}

/* Contenedor principal */
.left-side-container {
    width: 50%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Imagen de fondo difuminada */
.background-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../public/images/fondo_funcionarios.png') no-repeat center center;
    background-size: cover;
    filter: blur(8px);
    z-index: 1;
}

/* Contenido sobre el fondo */
.content-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #ffffff;
}

/* Imagen centrada */
.overlay-image {
    width: 450px;
    height: auto;
    border-radius: 2cm;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
}

/* Texto debajo de la imagen */
.overlay-text {
    font-size: 1.2rem;
    margin-top: 15px;
    font-weight: 500;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Lado derecho */
.right-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f3f4f6;
}

/* Enlace "Volver al sitio web" */
.btn-return {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.9rem;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-return:hover {
    background-color: #0056b3;
    text-decoration: none;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
}

/* Estilo del título y descripción */
.welcome-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.welcome-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 80%;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

.login-header img {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.highlight {
    color: #007bff;
    font-weight: bold;
}

.form-control {
    font-size: 1rem;
    padding: 10px 20px;
    color: #333;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    background-color: #f1f7ff;
    box-shadow: none;
}

.input-group-text {
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-right: 0;
    color: #666;
}

.btn-submit {
    background-color: #007bff;
    color: white;
    padding: 10px 0;
    width: 100%;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #0056b3;
}

/* Mostrar/Ocultar clave */
.toggle-password {
    cursor: pointer;
    color: #666;
}

/* Cards centradas */
.card-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Card style */
.card {
    width: 80%;
    max-width: 300px;
    border: none;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-weight: bold;
    color: #007bff;
}

/* Enlace de Olvidé mi contraseña */
.forgot-password {
    display: block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Estilo para el mensaje de soporte */
.help-message {
    font-size: 0.9rem;
    color: #333;
    margin-top: 20px;
}

.help-message a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}

.help-message a:hover {
    text-decoration: underline;
}

/* Botón WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 15px;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

/* Estilos para el select */
select.form-select {
    appearance: none;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    color: #333;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

select.form-select:focus {
    border-color: #007bff;
    background-color: #f1f7ff;
    box-shadow: none;
}

select.form-select option {
    padding: 10px;
}


/* Responsive design */
@media (max-width: 768px) {

    /* Oculta el lado izquierdo en pantallas pequeñas */
    .left-side-container {
        display: none;
    }

    /* Botón "Volver al sitio web" en la parte superior izquierda en responsive */
    .btn-return {
        top: 10px;
        left: 10px;
        right: auto;
    }

    /* Ajusta el tamaño del título y descripción en pantallas pequeñas */
    .welcome-title {
        font-size: 1.5rem;
    }

    .welcome-description {
        font-size: 1rem;
    }

    .right-side {
        width: 100%;
    }
}