img[alt="logo"] {
  display: block;
  margin: 25px auto;
  width: 158px; /* Tamano exacto del logo en PC */
  max-width:60vw;   /* extra seguridad */
  height: auto;
}

/* ===== FIX reCAPTCHA v3 badge overflow =====
   - Quitamos backdrop-filter del body (wrompe position: fixed)
   - Creamos el fondo + blur en body::before (no rompe fixed)
   - Bloqueamos overflow horizontal
=========================================== */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* IMPORTANTE: el background y el blur ya NO van aquí */
  background: none;
  /* backdrop-filter: blur(10px);  <-- ELIMINADO */

  color: #fff;
  margin: 0;
  padding: 0;
  text-align: center;

  /* Para que el pseudo-elemento funcione bien */
  position: relative;
}

/* Fondo + blur real sin romper elementos fixed (reCAPTCHA badge) */
body::before {
  content: "";
  position: fixed;
  inset: 0;

  /* Tu fondo original */
  background: url("../img/background.jpg") no-repeat center center fixed;
  background-size: cover;
/* Detrás de todo */
  z-index: -1;
  pointer-events: none;
}

/* (Opcional) asegúrate que el badge siempre quede encima, sin afectar layout */
.grecaptcha-badge {
  z-index: 9999 !important;
}

/* =============================
   Login box: transparencia + borde neón (pulso)
   ============================= */

.neon-card {
  /* Transparencia del recuadro */
  background: rgba(15, 15, 18, 0.55) !important;
  border: 1px solid rgba(255, 127, 9, 0.55) !important;
  border-radius: 14px;
  overflow: hidden;
  position: relative;

  /* “Glass” effect */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  /* Glow base */
  box-shadow:
    0 0 12px rgba(255, 127, 9, 0.55),
    0 0 28px rgba(255, 127, 9, 0.35),
    0 0 60px rgba(255, 127, 9, 0.18);

  /* Animación suave de “latido” */
  animation: neonPulse 3.6s ease-in-out infinite;
}

/* Encabezado del card también semi-transparente */
.neon-card .card-header {
  background: rgba(0, 0, 0, 0.25) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.neon-card .card-body {
  background: transparent !important;
}

/* Un segundo halo “soft” alrededor (tipo neón difuso) */
.neon-card::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 22px;
  pointer-events: none;
  opacity: 0.45;
  filter: blur(18px);
  background: radial-gradient(circle at 50% 40%, rgba(255, 127, 9, 0.35), transparent 62%);
  animation: neonHalo 3.6s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% {
    border-color: rgba(255, 127, 9, 0.60);
    box-shadow:
      0 0 12px rgba(255, 127, 9, 0.60),
      0 0 32px rgba(255, 127, 9, 0.38),
      0 0 70px rgba(255, 127, 9, 0.22);
  }
  50% {
    border-color: rgba(255, 127, 9, 0.32);
    box-shadow:
      0 0 8px rgba(255, 127, 9, 0.30),
      0 0 18px rgba(255, 127, 9, 0.18),
      0 0 40px rgba(255, 127, 9, 0.10);
  }
}

@keyframes neonHalo {
  0%, 100% { opacity: 0.48; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.98); }
}

button {
  padding: 10px 20px;
  background-color: #e50914;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1em;
  font-weight: 700;
  text-shadow: 2px 2px 4px #000;
  position: relative;
  box-shadow: 0 2px 25px rgba(255, 0, 0, 0.5);
}

a:link {
  text-decoration: none;
  text-shadow: 2px 2px 4px #000;
}

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

.btn {
  padding: 10px 20px;
  background-color: #e50914;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 5px;
  font-size: 1em;
  font-weight: 700;
  text-shadow: 2px 2px 4px #000;
}

.btn:hover {
  background-color: #ff0000;
}

@media screen and (max-width: 768px) {

  /* Logo más pequeño en teléfono */
  img[alt="logo"] {
    width: 135px;      /* esto define el tamano en telefono */
    max-width:45vw;   /* 👈 extra seguridad en móviles */
    margin: 18px auto;
  }

  body {
    padding: 0;
    margin: 0;
  }

  input[type="email"] {
    width: 90%;
  }

  .btn {
    width: 90%;
    margin: 10px auto;
  }

  p {
    white-space: normal;
  }
}


/* =============================
   Texto listo para actualizar - respiración neón blanco
   (Usado cuando el cooldown llega a 0)
   ============================= */

.ready-text {
  color: #ffffff;
  font-weight: 600;
  animation: breathingWhite 1.8s ease-in-out infinite;
}

@keyframes breathingWhite {
  0% {
    text-shadow:
      0 0 5px rgba(255, 255, 255, 0.40),
      0 0 10px rgba(255, 255, 255, 0.30);
    opacity: 0.85;
  }
  50% {
    text-shadow:
      0 0 15px rgba(255, 255, 255, 0.95),
      0 0 30px rgba(255, 127, 9, 0.70),
      0 0 45px rgba(255, 127, 9, 0.55);
    opacity: 1;
  }
  100% {
    text-shadow:
      0 0 5px rgba(255, 255, 255, 0.40),
      0 0 10px rgba(255, 255, 255, 0.30);
    opacity: 0.85;
  }
}

