/* ==========================================================
   LOGIN AZUL GLASSMORPHISM — EFECTO PREMIUM RESPONSIVE
   ========================================================== */

/* ====== BODY Y FONDO GRADIENTE DINÁMICO ====== */
body {
    background: linear-gradient(197deg, #000000, #2853df, #000000);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #fff;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
}

/* Movimiento del fondo */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ====== HALO ANIMADO DETRÁS DEL FORM ====== */
body::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.5), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  animation: haloPulse 8s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes haloPulse {
  0% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.2); }
}

/* ====== CONTENEDOR PRINCIPAL ====== */
#app {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 2.2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  overflow: hidden;
  animation: slideFadeIn 1s ease-out forwards;
  transform: translateY(30px);
  opacity: 0;
}

/* Animación del contenedor (fade + slide) */
@keyframes slideFadeIn {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ====== CABECERA ====== */
header {
  text-align: center;
  margin-bottom: 1.5rem;
}

header img {
  height: 90px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0.6rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

header p {
  color: #c7d2fe;
  font-size: 0.95rem;
}

/* ====== INPUTS Y SELECT ====== */
input,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

input:focus,
select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

::placeholder {
  color: #c7d2fe;
}

/* ====== ICONOS DENTRO DE INPUT ====== */
.relative {
  position: relative;
}


.relative_1 .fas {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 1.9rem;
  color: #93c5fd;
  font-size: 1rem;
}

.relative input,
.relative select {
  padding-left: 2.5rem;
}

/* ====== LABELS ====== */
label {
  color: #e0e7ff;
  font-weight: 500;
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.2rem;
}

/* ====== BOTÓN PRINCIPAL ====== */
button[type="submit"] {
  width: 100%;
  background: linear-gradient(to right, #3b82f6, #1d4ed8);
  color: white;
  font-weight: 600;
  padding: 0.9rem;
  border: none;
  border-radius: 0.6rem;
  margin-top: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  box-sizing: border-box;
}

button[type="submit"]:hover {
  background: linear-gradient(to right, #2563eb, #1e3a8a);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

/* ====== TEXTOS Y ERRORES ====== */
.text-red-400,
.text-red-500 {
  color: #f87171 !important;
}

.text-blue-200,
.text-blue-100 {
  color: #c7d2fe !important;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 480px) {
  #app {
    padding: 1.5rem;
    max-width: 92%;
  }

  header img {
    height: 70px;
  }

  input,
  select,
  button {
    font-size: 0.95rem;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 0.85rem;
  }
}
