/* ELISEO landing 3D — se carga después de login-landing.css.
   Solo estiliza clases .el3-*; los estilos del modal de acceso se conservan de login-landing.css. */

body.el3-body {
  --el3-bg: #050d1f;
  --el3-navy: #08265a;
  --el3-blue: #0b5fc7;
  --el3-cyan: #009fd8;
  --el3-teal: #12bdb7;
  --el3-mint: #16c9bb;
  --el3-ink: #eaf3ff;
  --el3-muted: #9fb4d1;
  --el3-line: rgba(140, 190, 255, 0.16);
  --el3-glass: rgba(10, 28, 62, 0.46);
  margin: 0;
  background: var(--el3-bg);
  color: var(--el3-ink);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.el3-body .el3-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  display: block;
  background:
    radial-gradient(1200px 700px at 78% 28%, rgba(11, 95, 199, 0.28), transparent 60%),
    radial-gradient(900px 600px at 12% 80%, rgba(18, 189, 183, 0.16), transparent 62%),
    var(--el3-bg);
}

body.el3-body .el3-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(2, 6, 16, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 13, 31, 0.55) 0%, transparent 14%, transparent 86%, rgba(5, 13, 31, 0.6) 100%);
}

body.el3-body .el3-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle, rgba(18, 189, 183, 0.13), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

body.el3-body.el3-has-pointer .el3-cursor { opacity: 1; }

body.el3-body .el3.safe-login-shell {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  overflow-x: clip;
  background: transparent;
}

body.el3-body .el3 *,
body.el3-body .el3 *::before,
body.el3-body .el3 *::after { box-sizing: border-box; }

body.el3-body .el3 a { color: inherit; text-decoration: none; }

body.el3-body .safe-login-modal-backdrop { z-index: 200; }

.el3-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- NAV ---------- */
.el3-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(5, 13, 31, 0.78), rgba(5, 13, 31, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.el3-logo-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 30px rgba(0, 159, 216, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.el3-logo-pill img { display: block; height: 30px; width: auto; max-width: 100%; }

.el3-nav-links { display: flex; gap: 28px; }

.el3-nav-links a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--el3-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.el3-nav-links a:hover { color: #fff; }

/* ---------- BUTTONS ---------- */
.el3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: 800 0.95rem/1 Manrope, Inter, system-ui, sans-serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  color: #fff;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  will-change: transform;
}

.el3-btn--solid {
  background: linear-gradient(135deg, var(--el3-blue), var(--el3-cyan) 55%, var(--el3-mint));
  box-shadow: 0 10px 34px rgba(0, 159, 216, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.el3-btn--solid:hover { box-shadow: 0 14px 44px rgba(22, 201, 187, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4); }

.el3-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(160, 205, 255, 0.35);
  backdrop-filter: blur(8px);
}

.el3-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(160, 230, 255, 0.7); }

.el3-btn:focus-visible,
.el3-nav-links a:focus-visible { outline: 2px solid var(--el3-mint); outline-offset: 3px; }

/* ---------- HERO ---------- */
.el3-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px 0 70px;
}

.el3-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 24px;
}

.el3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--el3-line);
  background: rgba(18, 189, 183, 0.1);
  color: #7ff0e4;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.el3-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--el3-mint);
  box-shadow: 0 0 0 0 rgba(22, 201, 187, 0.7);
  animation: el3-ping 2.2s ease-out infinite;
}

@keyframes el3-ping {
  0% { box-shadow: 0 0 0 0 rgba(22, 201, 187, 0.6); }
  100% { box-shadow: 0 0 0 14px rgba(22, 201, 187, 0); }
}

.el3-h1 {
  margin: 22px 0 20px;
  font-family: Sora, Manrope, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
}

.el3-h1 .el3-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.el3-h1 .el3-word > span { display: inline-block; will-change: transform; }

.el3-grad {
  background: linear-gradient(100deg, #4aa8ff 0%, var(--el3-cyan) 40%, var(--el3-mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.el3-lead { max-width: 520px; margin: 0 0 30px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--el3-muted); }

.el3-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.el3-hero-visual { position: relative; min-height: 460px; }

.el3-chip {
  position: absolute;
  padding: 11px 18px;
  border-radius: 14px;
  border: 1px solid var(--el3-line);
  background: rgba(8, 24, 54, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-weight: 800;
  font-size: 0.86rem;
  color: #dff1ff;
  box-shadow: 0 12px 40px rgba(0, 20, 60, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.el3-chip::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--el3-mint);
  box-shadow: 0 0 12px var(--el3-mint);
}

.el3-chip--a { top: 8%; left: 2%; }
.el3-chip--b { top: 18%; right: 0; }
.el3-chip--c { bottom: 18%; left: 6%; }
.el3-chip--d { bottom: 8%; right: 6%; }

.el3-float { animation: el3-bob 6s ease-in-out infinite; }
.el3-chip--b { animation-delay: -1.5s; }
.el3-chip--c { animation-delay: -3s; }
.el3-chip--d { animation-delay: -4.5s; }

@keyframes el3-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.el3-scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--el3-muted);
}

.el3-scroll-hint span {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, var(--el3-mint), transparent);
  animation: el3-drip 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes el3-drip {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- GLASS / TILT ---------- */
.el3-glass {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--el3-line);
  background: var(--el3-glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 20px 60px rgba(0, 10, 40, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.el3-tilt {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease-out, border-color 0.3s ease;
  overflow: hidden;
}

.el3-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(60, 220, 210, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.el3-tilt:hover { border-color: rgba(100, 220, 230, 0.45); }
.el3-tilt:hover::after { opacity: 1; }

/* ---------- SECTIONS ---------- */
.el3-trust { padding: 10px 0 40px; }
.el3-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.el3-trust .el3-glass { padding: 22px 22px 24px; }
.el3-trust strong { display: block; font-family: Sora, sans-serif; font-size: 1.02rem; color: #fff; margin-bottom: 6px; }
.el3-trust span { color: var(--el3-muted); font-size: 0.92rem; line-height: 1.5; }

.el3-section { padding: clamp(80px, 12vh, 150px) 0; }

.el3-head { max-width: 640px; margin-bottom: 44px; }

.el3-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--el3-mint);
}

.el3 h2 {
  margin: 0 0 14px;
  font-family: Sora, Manrope, sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.el3 h3 { margin: 0 0 8px; font-family: Sora, Manrope, sans-serif; font-weight: 700; font-size: 1.12rem; color: #fff; }
.el3 p { color: var(--el3-muted); line-height: 1.6; margin: 0; }

.el3-cards { display: grid; gap: 20px; }
.el3-cards--3 { grid-template-columns: repeat(3, 1fr); }

.el3-cards .el3-glass { padding: 30px 28px; }

.el3-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--el3-blue), var(--el3-teal));
  box-shadow: 0 8px 26px rgba(18, 189, 183, 0.35);
}

.el3-cards ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }

.el3-cards li {
  position: relative;
  padding-left: 22px;
  color: #c9dcf5;
  font-size: 0.94rem;
  line-height: 1.45;
}

.el3-cards li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--el3-mint);
  box-shadow: 0 0 10px var(--el3-mint);
}

.el3-cards--features .el3-glass { padding: 26px 24px; }
.el3-feature { display: flex; gap: 16px; align-items: flex-start; }
.el3-feature .el3-icon { flex: 0 0 46px; margin: 0; }

/* ---------- FLOW ---------- */
.el3-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 34px; }

.el3-steps-line {
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--el3-line);
  border-radius: 2px;
}

.el3-steps-line span {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, var(--el3-blue), var(--el3-mint));
  box-shadow: 0 0 16px var(--el3-mint);
  border-radius: 2px;
}

.el3-step { padding: 28px 24px; }
.el3-step b { display: block; margin-bottom: 14px; font-family: Sora, sans-serif; font-size: 2.1rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1.4px rgba(90, 210, 230, 0.8); }

/* ---------- SECURITY ---------- */
.el3-security { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }

.el3-roles { display: grid; gap: 14px; padding-left: 8%; }

.el3-role {
  position: relative;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid var(--el3-line);
  background: rgba(8, 24, 54, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.el3-role:nth-child(2) { margin-left: 28px; }
.el3-role:nth-child(3) { margin-left: 56px; }
.el3-role:nth-child(4) { margin-left: 84px; }

.el3-role b { display: block; color: #fff; font-family: Sora, sans-serif; }
.el3-role span { color: var(--el3-muted); font-size: 0.9rem; }

.el3-checks { display: grid; gap: 14px; margin-top: 30px; }
.el3-checks .el3-glass { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; }

.el3-checks i {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-style: normal;
  font-weight: 800;
  color: #04201f;
  background: linear-gradient(135deg, var(--el3-teal), var(--el3-mint));
  box-shadow: 0 0 20px rgba(22, 201, 187, 0.5);
}

.el3-checks strong { display: block; color: #fff; margin-bottom: 2px; }
.el3-checks span { color: var(--el3-muted); font-size: 0.92rem; }

/* ---------- CTA / FOOTER ---------- */
.el3-cta { min-height: 80vh; display: flex; align-items: center; }
.el3-cta-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; }
.el3-cta-copy h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.el3-cta-copy p { margin-bottom: 30px; font-size: 1.15rem; max-width: 480px; }

.el3-footer { border-top: 1px solid var(--el3-line); background: rgba(3, 8, 20, 0.7); backdrop-filter: blur(10px); padding: 34px 0; }
.el3-footer-inner { display: grid; gap: 10px; color: var(--el3-muted); font-size: 0.9rem; }
.el3-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.el3-legal a { color: #cfe3ff; font-weight: 700; }
.el3-legal a:hover { color: var(--el3-mint); }

/* ---------- ESTADOS ---------- */
.el3-in, .el3-reveal { opacity: 0; }
body.el3-static .el3-in,
body.el3-static .el3-reveal { opacity: 1; }
body.el3-static .el3-float,
body.el3-static .el3-dot,
body.el3-static .el3-scroll-hint span { animation: none; }

body.el3-no-webgl .el3-stage { background:
  radial-gradient(700px 500px at 75% 35%, rgba(18, 189, 183, 0.28), transparent 65%),
  radial-gradient(900px 600px at 70% 30%, rgba(11, 95, 199, 0.4), transparent 62%),
  var(--el3-bg); }

@media (prefers-reduced-motion: reduce) {
  .el3-float, .el3-dot, .el3-scroll-hint span { animation: none; }
  .el3-in, .el3-reveal { opacity: 1; }
  .el3-tilt { transition: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .el3-nav-links { display: none; }
  .el3-hero-grid { grid-template-columns: 1fr; }
  .el3-hero { align-items: flex-end; padding-bottom: 90px; }
  .el3-hero-visual { display: none; }
  .el3-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .el3-cards--3 { grid-template-columns: 1fr; }
  .el3-steps { grid-template-columns: 1fr 1fr; }
  .el3-steps-line { display: none; }
  .el3-security { grid-template-columns: 1fr; }
  .el3-security-copy { order: 1; }
  .el3-roles { padding-left: 0; order: 2; } /* en móvil/tablet, primero el texto y las garantías; los roles debajo */
  .el3-cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  /* móvil: etiqueta en un solo renglón y bloque de texto un poco más abajo para no tapar el cerebro al entrar */
  .el3-eyebrow { gap: 8px; padding: 6px 12px; font-size: clamp(0.5rem, 2.6vw, 0.64rem); letter-spacing: 0.05em; white-space: nowrap; max-width: 100%; }
  .el3-dot { width: 7px; height: 7px; flex: 0 0 auto; }
  .el3-hero { padding-bottom: 66px; }
  .el3-h1 { margin: 16px 0 14px; }
  .el3-lead { margin-bottom: 22px; }
  .el3-logo-pill img { height: 24px; }
  .el3-logo-pill { padding: 7px 14px; }
  .el3-btn { padding: 13px 18px; }
  .el3-actions .el3-btn { flex: 1 1 100%; }
  .el3-trust-grid, .el3-steps { grid-template-columns: 1fr; }
  .el3-role:nth-child(n) { margin-left: 0; }
  .el3-cursor { display: none; }
}

/* =====================================================================
   MODAL DE ACCESO — GLASSMORPHISM
   Solo estilos: la lógica (login.js / auth.js) y los data-login-* no cambian.
   Corrige además el título invisible: las reglas .el3 h3/p/a de la landing
   pintaban en blanco/gris dentro del modal.
   ===================================================================== */
body.el3-body .safe-login-modal-backdrop {
  background:
    radial-gradient(900px 600px at 50% 40%, rgba(11, 95, 199, 0.22), transparent 70%),
    rgba(3, 9, 22, 0.58);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

body.el3-body .safe-login-modal-backdrop:not([hidden]) {
  animation: el3-fade-in 0.35s ease-out both;
}

body.el3-body .admin-credential-modal-card.safe-login-modal-card.el3-glass-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  width: min(440px, 100%) !important;
  border: 1px solid transparent;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  color: #eaf3ff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0) 32%),
    radial-gradient(420px 260px at 0% 0%, rgba(0, 159, 216, 0.24), transparent 65%),
    radial-gradient(420px 260px at 100% 100%, rgba(22, 201, 187, 0.18), transparent 65%),
    rgba(9, 26, 58, 0.5);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  box-shadow:
    0 40px 110px rgba(0, 6, 24, 0.7),
    0 0 90px rgba(0, 159, 216, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

body.el3-body .safe-login-modal-backdrop:not([hidden]) .el3-glass-card {
  animation: el3-card-in 0.75s cubic-bezier(0.2, 0.9, 0.25, 1) both, el3-card-glow 7s ease-in-out 0.8s infinite alternate;
}

/* Borde luminoso en degradado (solo el aro, el interior queda translúcido) */
body.el3-body .el3-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(0, 159, 216, 0.5) 32%, rgba(22, 201, 187, 0.14) 62%, rgba(255, 255, 255, 0.34));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* Luz que sigue al cursor */
body.el3-body .el3-glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(70, 225, 215, 0.17), transparent 62%);
}

body.el3-body .el3-glass-card > * { position: relative; z-index: 1; }

/* Cabecera */
body.el3-body .el3-glass-card .safe-login-modal-head {
  padding: 28px 28px 18px;
  border-bottom: 1px solid rgba(160, 205, 255, 0.14);
  align-items: flex-start;
}

body.el3-body .el3-glass-card .safe-login-modal-head > div:first-child::before {
  content: "";
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  background: url("/assets/eliseo/logo-eliseo-icon-transparent.png") center / contain no-repeat;
  filter: drop-shadow(0 0 14px rgba(22, 201, 187, 0.55));
}

body.el3-body .el3-glass-card .panel-label {
  color: var(--el3-mint);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body.el3-body .el3-glass-card .safe-login-modal-head h3 {
  margin: 6px 0 0;
  font-family: Sora, Manrope, sans-serif;
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 159, 216, 0.45);
}

body.el3-body .el3-glass-card .safe-login-modal-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 12px;
  border: 1px solid rgba(160, 205, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #d6e8ff;
  transition: background 0.25s ease, transform 0.35s ease, border-color 0.25s ease;
}

body.el3-body .el3-glass-card .safe-login-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(120, 235, 225, 0.6);
  transform: rotate(90deg);
}

body.el3-body .el3-glass-card .safe-login-modal-close:focus-visible { outline: 2px solid var(--el3-mint); outline-offset: 2px; }

/* Cuerpo y campos */
body.el3-body .el3-glass-card .safe-login-modal-body {
  padding: 22px 28px 30px;
  gap: 16px;
}

body.el3-body .el3-glass-card .safe-login-form { margin-top: 0; gap: 16px; }

body.el3-body .el3-glass-card .field span {
  color: #b4c9e8;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.el3-body .el3-glass-card .field input {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(150, 195, 255, 0.24);
  background: rgba(4, 14, 36, 0.5);
  color: #fff;
  font-size: 1rem;
  caret-color: var(--el3-mint);
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.3);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

body.el3-body .el3-glass-card .field input::placeholder { color: rgba(170, 195, 230, 0.55); }

body.el3-body .el3-glass-card .field input:hover { border-color: rgba(150, 215, 255, 0.45); }

body.el3-body .el3-glass-card .field input:focus {
  outline: none;
  border-color: var(--el3-mint);
  background: rgba(4, 18, 44, 0.66);
  box-shadow: 0 0 0 3px rgba(22, 201, 187, 0.2), 0 0 28px rgba(0, 159, 216, 0.28), inset 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* Chrome pinta el autocompletado de azul claro: lo devolvemos al vidrio oscuro */
body.el3-body .el3-glass-card .field input:-webkit-autofill,
body.el3-body .el3-glass-card .field input:-webkit-autofill:hover,
body.el3-body .el3-glass-card .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px rgba(7, 24, 58, 0.92) inset, 0 0 0 1px rgba(22, 201, 187, 0.35);
  transition: background-color 9999s ease-out 0s;
}

/* Botón principal */
body.el3-body .el3-glass-card .safe-login-submit {
  position: relative;
  min-height: 54px;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  color: #fff;
  font: 800 0.92rem/1 Manrope, Inter, system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, var(--el3-blue), var(--el3-cyan) 55%, var(--el3-mint));
  box-shadow: 0 12px 38px rgba(0, 159, 216, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: box-shadow 0.3s ease, filter 0.3s ease, transform 0.15s ease;
}

body.el3-body .el3-glass-card .safe-login-submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

body.el3-body .el3-glass-card .safe-login-submit:hover { filter: brightness(1.08); box-shadow: 0 16px 48px rgba(22, 201, 187, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
body.el3-body .el3-glass-card .safe-login-submit:hover::after { left: 120%; }
body.el3-body .el3-glass-card .safe-login-submit:active { transform: scale(0.985); }
body.el3-body .el3-glass-card .safe-login-submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
body.el3-body .el3-glass-card .safe-login-submit:disabled { opacity: 0.6; cursor: progress; filter: saturate(0.7); }

/* Paneles: contraseña temporal y aceptación legal */
body.el3-body .el3-glass-card .safe-login-password-copy strong {
  color: #fff;
  font-family: Sora, Manrope, sans-serif;
  font-size: 1.05rem;
}

body.el3-body .el3-glass-card .safe-login-password-copy p {
  color: #a9bfdf;
  font-size: 0.92rem;
  line-height: 1.55;
}

body.el3-body .el3-glass-card .safe-login-password-copy p span { color: #7ff0e4; font-weight: 700; }

body.el3-body .el3-glass-card .legal-acceptance-item {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(150, 195, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: #cfe0f7;
  font-size: 0.88rem;
  line-height: 1.5;
}

body.el3-body .el3-glass-card .legal-acceptance-item input { accent-color: var(--el3-mint); width: 17px; height: 17px; }

body.el3-body .el3-glass-card .legal-acceptance-item a {
  color: #5eead4;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.el3-body .el3-glass-card .legal-acceptance-item a:hover { color: #fff; }

/* Mensajes de estado */
body.el3-body .el3-glass-card .intake-status {
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(160, 205, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #dbe8fb;
}

body.el3-body .el3-glass-card .intake-status p { color: inherit; font-size: 0.92rem; }
body.el3-body .el3-glass-card .intake-status a { color: #5eead4; }
body.el3-body .el3-glass-card .intake-status.is-success { border-color: rgba(52, 211, 153, 0.5); background: rgba(16, 185, 129, 0.15); color: #bff7e0; }
body.el3-body .el3-glass-card .intake-status.is-error { border-color: rgba(248, 113, 113, 0.55); background: rgba(239, 68, 68, 0.16); color: #ffd3d3; }
body.el3-body .el3-glass-card .intake-status.is-warning { border-color: rgba(251, 191, 36, 0.5); background: rgba(245, 158, 11, 0.14); color: #ffe7b0; }
body.el3-body .el3-glass-card .intake-status.is-info { border-color: rgba(56, 189, 248, 0.5); background: rgba(14, 165, 233, 0.14); color: #c4ecff; }

/* Animaciones del modal */
@keyframes el3-fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes el3-card-in {
  from { opacity: 0; transform: translateY(28px) scale(0.95); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes el3-card-glow {
  from { box-shadow: 0 40px 110px rgba(0, 6, 24, 0.7), 0 0 70px rgba(0, 159, 216, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
  to { box-shadow: 0 40px 110px rgba(0, 6, 24, 0.7), 0 0 120px rgba(22, 201, 187, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

/* Navegadores sin backdrop-filter: fondo más opaco para conservar legibilidad */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.el3-body .admin-credential-modal-card.safe-login-modal-card.el3-glass-card { background: linear-gradient(160deg, rgba(14, 40, 86, 0.97), rgba(6, 18, 44, 0.97)); }
  body.el3-body .safe-login-modal-backdrop { background: rgba(3, 9, 22, 0.85); }
}

@media (max-width: 640px) {
  body.el3-body .safe-login-modal-backdrop { padding: 14px; align-items: center; }
  body.el3-body .admin-credential-modal-card.safe-login-modal-card.el3-glass-card { width: 100% !important; border-radius: 26px; max-height: 92vh; overflow: auto; }
  body.el3-body .el3-glass-card .safe-login-modal-head { padding: 22px 20px 14px; }
  body.el3-body .el3-glass-card .safe-login-modal-body { padding: 6px 20px 24px; }
  body.el3-body .el3-glass-card .safe-login-modal-head h3 { font-size: 1.4rem; }
  body.el3-body .el3-glass-card .field input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  body.el3-body .safe-login-modal-backdrop:not([hidden]),
  body.el3-body .safe-login-modal-backdrop:not([hidden]) .el3-glass-card { animation: none; }
  body.el3-body .el3-glass-card .safe-login-submit::after { display: none; }
  body.el3-body .el3-glass-card .safe-login-modal-close:hover { transform: none; }
}
