/* Estilo General */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #4a90e2, #0062cc);
    color: #333;
}

.login-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 350px;
    text-align: center;
}

.login-container img {
    width: 80px;
    margin-bottom: 20px;
}

.login-container h2 {
    margin: 0 0 20px;
    color: #4a90e2;
    font-size: 1.8rem;
    font-weight: bold;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border 0.3s ease;
}

.form-group input:focus {
    border-color: #4a90e2;
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #0062cc;
}

.footer {
    margin-top: 15px;
    font-size: 12px;
    color: #555;
}

.footer a {
    color: #4a90e2;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Aviso de error del login (credenciales inválidas / categoría sin acceso).
   Antes el fallo devolvía texto plano sin estilo. */
.login-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-left: 4px solid #b91c1c;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 6px;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  line-height: 1.4;
}
