/* 1. Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

/* 2. Body with modern gradient background */
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  /* Ejemplo: animación de un gradiente rojo-dorado */
  background: linear-gradient(135deg, #e60012 10%, #c1a139 100%);
  background-size: 200% 200%;
  animation: animate-bg 8s ease infinite;
}

/* Animación para el fondo */
@keyframes animate-bg {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 3. Login Container - Glassmorphism */
.login-container {
  position: relative;
  max-width: 380px;
  width: 90%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;

  /* Glass effect */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Title */
.login-container h1 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 4. Error Message */
.login-error {
  color: #ffcccc;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* 5. Input Fields */
.login-container input[type="text"],
.login-container input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1rem;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, box-shadow 0.3s;
}

.login-container input[type="text"]::placeholder,
.login-container input[type="password"]::placeholder {
  color: #eee;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 6. Button */
.login-container button {
  width: 100%;
  padding: 12px 16px;
  margin-top: 1rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #e60012, #c1a139);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.login-container button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* 7. Footer */
.login-container .footer {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #ddd;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .login-container {
    margin: 0 20px;
    padding: 30px 20px;
  }
  .login-container h1 {
    font-size: 1.5rem;
  }
}
