* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  padding: 2rem;
  background: linear-gradient(135deg, #1f1f1f, #2c2c2c);
  color: white;
  display: flex;
  justify-content: center;
  font-size: 1rem;
}

/* SOLO aplica el centrado vertical en login */
body.centered-login {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.container {
  max-width: 600px;
  width: 90%;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 20px;
  animation: fadeIn 0.8s ease;
}

.glass {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

input, button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.8rem;
  margin: 0.4rem 0;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
}

input {
  background: rgba(255, 255, 255, 0.15); /* mejora de contraste */
  color: white;
}

button {
  background: #00bfff;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

button:hover {
  background: #0099cc;
}

.reporte {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 480px) {
  h1, h2 {
    font-size: 1.4rem;
  }

  input, button {
    font-size: 1rem;
    padding: 0.75rem;
  }
}

/* Animación suave de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
