body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Para que el contenido crezca hacia abajo */
  min-height: 100vh;
  padding: 2rem 1rem;
  position: relative;
  overflow-y: auto; /* ← Permitimos scroll vertical */
  overflow-x: hidden;
  background-color: #fffaf0;
}

/* Fondo con patrón chino con opacidad */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/cloud-pattern.png") repeat;
  background-size: 300px;
  opacity: 0.4;
  z-index: 0;
}

.login-container {
  position: relative;
  z-index: 1;
  background-color: rgba(255, 253, 249, 0.95);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  width: 360px;
  max-width: 100%;
  text-align: center;
  border: 2px solid #c0392b;
  backdrop-filter: blur(3px);
}

.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.icon {
  width: 32px;
  height: 32px;
}

.title {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: #c0392b;
}

.subtitle {
  font-size: 1rem;
  color: #7f8c8d;
  margin-bottom: 1.5rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.9rem;
  margin: 0.6rem 0;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  font-size: 1rem;
  box-sizing: border-box;
}

button {
  background-color: #d35400;
  color: white;
  border: none;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
  width: 100%;
}

button:hover {
  background-color: #e67e22;
}

.error-message {
  color: #e74c3c;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* 📱 Responsive: se adapta a pantallas chicas */
@media (max-width: 480px) {
  .login-container {
    padding: 2rem;
    width: 100%;
    border-radius: 16px;
  }

  .title {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  input[type="text"],
  input[type="password"],
  button {
    font-size: 0.95rem;
    padding: 0.75rem;
  }
}

.logout-button {
  margin-top: 2rem;
  background-color: #c0392b;
  color: white;
  border: none;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.logout-button:hover {
  background-color: #e74c3c;
}

.error-message {
  color: #ff0000;
  font-weight: bold;
  margin-top: 10px;
}

.success-message {
  color: #008000;
  font-weight: bold;
  margin-top: 10px;
}

.warning-message {
  color: #ffa500;
  font-weight: bold;
  margin-top: 10px;
}

.download-button {
  background-color: #4CAF50;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
}
.download-button:hover {
  background-color: #45a049;
}
