/* =============================================================
   CANDADO DE ACCESO (previo a la app) — Plataforma de Recomendaciones
   Capa de UX, no de seguridad real. La seguridad real va en el
   servidor (hPanel -> Directorios protegidos / .htaccess).
   ============================================================= */

#cgr-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(820px 420px at 12% 8%, rgba(45, 74, 138, 0.55), transparent 60%),
    radial-gradient(720px 420px at 92% 92%, rgba(201, 169, 97, 0.18), transparent 60%),
    linear-gradient(150deg, #0f1d3d 0%, #1a2e5c 55%, #142650 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#cgr-gate .cgr-gate__card {
  width: min(380px, 100%);
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 30px 28px;
  box-shadow: 0 30px 80px rgba(15, 29, 61, 0.45), 0 6px 18px rgba(15, 29, 61, 0.2);
  text-align: center;
}

#cgr-gate .cgr-gate__logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  margin-bottom: 18px;
}

#cgr-gate h1 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #1a2e5c;
  letter-spacing: -0.01em;
}

#cgr-gate p.cgr-gate__hint {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.5;
  color: #525c6b;
}

#cgr-gate form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

#cgr-gate label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1f2937;
}

#cgr-gate input {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  outline: none;
  color: #1f2937;
  background: #fbfbfc;
}

#cgr-gate input:focus {
  border-color: #2d4a8a;
  box-shadow: 0 0 0 3px rgba(45, 74, 138, 0.15);
}

#cgr-gate .cgr-gate__error {
  margin: -4px 0 0;
  font-size: 12.5px;
  color: #b3261e;
  font-weight: 600;
}

#cgr-gate button {
  margin-top: 4px;
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  background: #1a2e5c;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

#cgr-gate button:hover {
  background: #2d4a8a;
}

#cgr-gate .cgr-gate__footer {
  margin: 18px 0 0;
  font-size: 11px;
  color: #8a93a1;
}
