* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: "Arial", sans-serif;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #eaf3ff 0%, #f7f9fc 45%, #fef3e2 100%);
}

/* Manchas de color difuminadas al estilo glassmorphism, usando los
   acentos de marca (azul y ámbar) como si fueran "orbes" de luz */
body::before,
body::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  animation: float 12s ease-in-out infinite;
}

body::before {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 87, 179, 0.35), rgba(0, 87, 179, 0) 70%);
}

body::after {
  width: 420px;
  height: 420px;
  bottom: -140px;
  right: -120px;
  background: radial-gradient(circle at 70% 70%, rgba(255, 153, 0, 0.35), rgba(255, 153, 0, 0) 70%);
  animation-delay: 2s;
}

.contenedor {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  margin: 20px;
  padding: 40px 30px;
  text-align: center;
  border-radius: 24px;
  animation: fadeIn 1s ease;

  /* Efecto vidrio */
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(31, 71, 135, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.contenedor img {
  width: 65%;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

form {
  display: flex;
  flex-direction: column;
}

form input[type="text"],
form input[type="password"] {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  font-size: 16px;
  color: #2c2c2c;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

form input[type="text"]::placeholder,
form input[type="password"]::placeholder {
  color: rgba(60, 60, 60, 0.6);
}

form input[type="text"]:focus,
form input[type="password"]:focus {
  border-color: #ff9900;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 8px rgba(255, 153, 0, 0.3);
  outline: none;
}

form input[type="submit"] {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #ffb340 0%, #ff9900 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.35);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

form input[type="submit"]:hover {
  background: linear-gradient(135deg, #ff9900 0%, #e68a00 100%);
  box-shadow: 0 6px 18px rgba(255, 153, 0, 0.45);
  transform: translateY(-1px);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -20px) scale(1.05);
  }
}

@media (max-width: 480px) {
  .contenedor {
    width: 90%;
    padding: 30px 20px;
  }

  form input[type="submit"] {
    font-size: 16px;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.fade-out {
  animation: fadeOut 0.5s forwards;
}
