body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f0f0; /* Fondo claro */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden; /* Evita barras de desplazamiento si el contenido es grande */
    background-color:linear-gradient(135deg, #41b7e2, #14b0ee);
}

.login-container {
    background-color: #e9fa03e3; /* Amarillo claro */
    border: 1px solid #0f0f0f;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 25px 40px;
    width: 100%;
    max-width: 400px; /* Ancho máximo del formulario */
    font-family: Final Frontier;
    text-align: center;
    position: relative;
    overflow: hidden; /* Para el overflow del logo si es muy grande */
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #cc0000; /* Rojo vibrante */
}

.header h2 {
    margin: 0 auto; /* Centra el texto */
    font-size: 2em;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2em;
    color: #666;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.close-btn:hover {
    background-color: #e0e0e0;
    color: #333;
}

.logo-section {
    margin: 20px 0;
    height: 150px; /* Altura fija para el logo */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Esconde partes de la imagen si se desborda */
}

.logo {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain; /* Asegura que la imagen se ajuste sin distorsionarse */
}

/* Estilos para el placeholder si no se usa la imagen */

.placeholder-logo {
    background-color: #000;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.placeholder-logo .barcode {
    color: #444;
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0.2;
    z-index: 1;
}

.placeholder-logo .soling-text {
    font-size: 3.5em;
    font-weight: 700;
    color: #cc0000;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
    position: relative;
}

.placeholder-logo .ecuador-text {
    font-size: 0.5em;
    display: block;
    text-align: right;
    color: #fff;
    margin-top: -10px;
}
*/

.login-form {
    margin-top: 30px;
}

.input-group {
    margin-bottom: 20px;
    font-family: Roboto;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #333;
    font-size: 1.1em;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    width: calc(100% - 20px); /* Ajusta para padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Incluye padding y borde en el ancho */
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus {
    border-color: #4CAF50; /* Verde al enfocar */
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.login-button {
    background-color: #4a0cf3; /* Verde */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5em;
    font-family: Ubuntu Mono;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: auto; /* Ancho automático, no 100% como los inputs */
    margin-top: 15px; /* Espacio arriba del botón */
}

.login-button:hover {
    background-color: #45a049; /* Verde más oscuro */
    transform: translateY(-2px); /* Pequeño efecto al pasar el ratón */
}

.login-button:active {
    transform: translateY(0);
}

/* Mensajes de feedback */
.message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Media Queries para diseño responsive */
@media (max-width: 600px) {
    .login-container {
        padding: 20px 25px;
        margin: 20px; /* Margen para pantallas pequeñas */
    }

    .header h2 {
        font-size: 1.8em;
    }

    .input-group label {
        font-size: 1em;
    }

    .login-button {
        padding: 10px 20px;
        font-size: 1em;
    }

}