/* General */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

/* Pantalla de login */
#login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, rgba(27, 35, 78, 0.9), rgba(38, 50, 111, 0.9)), 
                url("images/background.jpg") no-repeat center center;
    background-size: 10% auto;
    color: #fff;
}

#login-form {
    background-color: #fff;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Círculo azul con la imagen */
#circle-container {
    position: absolute;
    top: -40px; /* Ajusta para centrar sobre el formulario */
    left: 50%;
    transform: translateX(-50%);
    width: 100px; /* Tamaño del círculo */
    height: 100px;
    background-color: #1b234e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#circle-container img {
    width: 90%; /* Proporción de la imagen dentro del círculo */
    height: 90%;
    object-fit: contain; /* Asegura que la imagen mantenga sus proporciones */
    border-radius: 50%; /* Para asegurarte de que siga la forma del círculo */
}


#circle-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 30%;
    object-fit: cover; /* Asegura que la imagen llene el círculo */
    image-rendering: auto; /* Mejora la calidad de renderizado */
    filter: contrast(1.1) brightness(1.2); /* Ajusta el contraste y brillo para más nitidez */
}

/* Ajustar el título y márgenes */
#login-form h2 {
    margin: 80px 0 20px; /* Ajusta el margen superior para acomodar el círculo */
}

#login-form label {
    display: block;
    margin: 10px 0 5px;
    text-align: left;
    width: 100%;
    max-width: 260px;
}

#login-form input {
    width: 100%;
    max-width: 260px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.password-container {
    position: relative;
    width: 100%;
    max-width: 260px;
}

.password-container input {
    width: 100%;
    padding-right: 40px;
}

.eye-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2em;
    color: #aaa;
}

.eye-icon:hover {
    color: #333;
}

#login-form button {
    background: linear-gradient(135deg, #26326F, #1b234e);
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    max-width: 260px;
    transition: background 0.3s ease;
}

#login-form button:hover {
    background: linear-gradient(135deg, #1b234e, #26326F);
}

/* Pantalla principal */
header {
    background-color: #26326F;
    color: #fff;
    padding: 1em 0;
}

/* Contenedor del encabezado */
#header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Centrar el título del buscador */
header h1 {
    text-align: center;
    flex: 1;
    font-size: 1.8em;
    margin: 0;
    color: #fff;
}

/* Estilo del logo */
#header-logo {
    width: 125px;
    height: auto;
    margin-right: 15px;
}

/* Contenedor del botón y el estado de la sesión */
#session-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

#generate-session {
    padding: 8px 15px;
    font-size: 0.9em;
    border: none;
    background-color: #1b234e;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

#generate-session:hover {
    background-color: #26326F;
}

#session-status {
    font-size: 0.9em;
    color: #fff;
    margin: 0;
    text-align: right;
}

/* Main */
main {
    padding: 20px;
    max-width: 600px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form label {
    font-weight: bold;
}

form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

form button {
    background-color: #26326F;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

form button:hover {
    background-color: #1b234e;
}

#results h2 {
    text-align: center;
}

#result-list li {
    background-color: #f9f9f9;
    margin: 5px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
