body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #cce0ff 0%, #99c2ff 100%);
  font-family: "Inter", sans-serif;
}

.login-container {
  width: 100%;
  max-width: 380px; /* ancho fijo máximo */
  padding: 20px;
  box-sizing: border-box;
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-align: center;
  border: 1px solid rgba(200, 200, 255, 0.3);
}

.monster-box img {
  width: 110px;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto 20px auto; /* centrado horizontal */
}

h2 {
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitle {
  color: #333;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.formulario {
  text-align: left;
}

.input-group {
  margin-bottom: 18px;
  width: 100%;
}

label {
  color: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cce0ff;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

input::placeholder {
  color: rgba(26, 26, 26, 0.5);
}

input:focus {
  border-color: #4da6ff;
  box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.2);
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.btn-login {
  width: 100%;
  background: #4da6ff;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: #3b8cd4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 500px) {
  .glass-card {
    padding: 30px 20px;
  }

  .monster-box img {
    width: 90px;
  }
}
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #cce0ff 0%, #99c2ff 100%);
  font-family: "Inter", sans-serif;
}

.login-container {
  width: 100%;
  max-width: 380px; /* ancho fijo máximo */
  padding: 20px;
  box-sizing: border-box;
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-align: center;
  border: 1px solid rgba(200, 200, 255, 0.3);
}

.monster-box img {
  width: 110px;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto 20px auto; /* centrado horizontal */
}

h2 {
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitle {
  color: #333;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.formulario {
  text-align: left;
}

.input-group {
  margin-bottom: 18px;
  width: 100%;
}

label {
  color: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cce0ff;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

input::placeholder {
  color: rgba(26, 26, 26, 0.5);
}

input:focus {
  border-color: #4da6ff;
  box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.2);
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.btn-login {
  width: 100%;
  background: #4da6ff;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: #3b8cd4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert-message {
  display: none; /* Oculto por defecto */
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: 15px;
  font-family: "Poppins", "Roboto", sans-serif;
  text-align: center;
  border-radius: 10px;
  color: #0c0c0f;
  border: 1px solid rgba(50, 79, 211, 0.2);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Efecto de brillo animado sutil */
.alert-message::before {
  content: "";
  position: absolute;
  text-align: center;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.alert-message:hover::before {
  left: 120%;
}

/* Tipos de alerta */
.alert-success {
  background: linear-gradient(
    135deg,
    rgba(46, 204, 113, 0.9),
    rgba(39, 174, 96, 0.8)
  );
  border-color: rgba(255, 255, 255, 0.3);
}

.alert-error {
  background: linear-gradient(
    135deg,
    rgba(231, 76, 60, 0.9),
    rgba(192, 57, 43, 0.8)
  );
  border-color: rgba(255, 255, 255, 0.3);
}

.alert-warning {
  background: linear-gradient(
    135deg,
    rgba(241, 196, 15, 0.9),
    rgba(243, 156, 18, 0.8)
  );
  color: #222;
  border-color: rgba(0, 0, 0, 0.2);
}

.alert-info {
  background: linear-gradient(
    135deg,
    rgba(52, 152, 219, 0.9),
    rgba(41, 128, 185, 0.8)
  );
  border-color: rgba(255, 255, 255, 0.3);
}

/* Animación de aparición */
.alert-show {
  display: flex;
  animation: fadeInSlide 0.5s ease forwards;
}



@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 500px) {
  .glass-card {
    padding: 30px 20px;
  }

  .monster-box img {
    width: 90px;
  }
}
