:root{--pink:#f500a5;--purple:#8b00ff;--blue:#3366ff;--cyan:#00d7e9;--ink:#101828;--muted:#667085;--line:#e4e7ec;--surface:#f7f8fb;--white:#fff}*{box-sizing:border-box}html{min-width:320px;background:#070914}body{margin:0;min-width:320px;min-height:100vh;font-family:Poppins,Arial,sans-serif;color:var(--ink);background:#070914}.demo-auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(430px,.92fr);overflow:hidden}.demo-auth-visual{position:relative;min-height:100vh;padding:42px clamp(34px,6vw,92px);display:flex;flex-direction:column;justify-content:space-between;color:#fff;overflow:hidden;background:radial-gradient(circle at 14% 18%,rgba(245,0,165,.28),transparent 27%),radial-gradient(circle at 72% 76%,rgba(0,215,233,.14),transparent 32%),linear-gradient(145deg,#070811 0%,#101224 44%,#06182b 100%)}.demo-auth-visual:before{content:"";position:absolute;inset:-20%;pointer-events:none;background:conic-gradient(from 190deg,transparent 0 24%,rgba(139,0,255,.17) 30%,transparent 37% 62%,rgba(0,215,233,.11) 68%,transparent 75%);animation:slowSpin 26s linear infinite}.demo-auth-visual:after{content:"";position:absolute;width:600px;height:600px;right:-220px;top:-210px;border:1px solid rgba(255,255,255,.08);border-radius:50%;box-shadow:-110px 150px 0 -1px rgba(245,0,165,.06);pointer-events:none}.demo-auth-brand{position:relative;z-index:2;display:inline-flex;width:188px;height:124px;align-items:center}.demo-auth-brand img{width:100%;height:100%;object-fit:contain;filter:brightness(0) invert(1);opacity:.98}.demo-auth-visual-copy{position:relative;z-index:2;max-width:760px;margin:auto 0 36px}.demo-auth-visual-copy>span,.demo-auth-kicker{display:inline-flex;align-items:center;gap:10px;color:#d9c9ff;font-size:.68rem;font-weight:900;letter-spacing:.17em;text-transform:uppercase}.demo-auth-visual-copy>span:before{content:"";width:34px;height:2px;border-radius:99px;background:linear-gradient(90deg,var(--pink),var(--cyan))}.demo-auth-visual-copy h1{margin:14px 0 18px;max-width:12ch;font-family:Montserrat,Poppins,sans-serif;font-size:clamp(2.85rem,4.65vw,5.25rem);font-weight:900;line-height:.92;letter-spacing:-.055em;background:linear-gradient(128deg,#fff 0%,#ffc6ed 24%,#cba6ff 48%,#7db2ff 70%,#a1fbff 100%);-webkit-background-clip:text;background-clip:text;color:transparent}.demo-auth-visual-copy p{max-width:680px;margin:0;color:rgba(255,255,255,.78);font-size:clamp(.93rem,1.08vw,1.05rem);line-height:1.72}.demo-auth-preview{position:relative;z-index:2;display:flex;flex-wrap:wrap;align-items:center;gap:0;max-width:760px;padding-top:14px}.demo-auth-preview div{position:relative;display:inline-flex;align-items:center;gap:10px;padding:0 18px 0 0;margin:0 18px 10px 0;min-height:auto;border:0;border-radius:0;background:transparent;backdrop-filter:none}.demo-auth-preview div:not(:last-child):after{content:"";position:absolute;right:-10px;top:50%;transform:translateY(-50%);width:1px;height:18px;background:rgba(255,255,255,.22)}.demo-auth-preview i{font-size:1.15rem;color:#9cf6ff}.demo-auth-preview b{font-size:.77rem;letter-spacing:.01em}.demo-auth-note{position:relative;z-index:2;display:flex;align-items:center;gap:8px;margin:10px 0 0;color:rgba(255,255,255,.55);font-size:.7rem}.demo-auth-card-wrap{position:relative;display:grid;place-items:center;min-height:100vh;padding:36px;background:radial-gradient(circle at 24% 20%,rgba(139,0,255,.08),transparent 28%),radial-gradient(circle at 78% 72%,rgba(0,215,233,.08),transparent 28%),linear-gradient(180deg,#f9fafc,#f2f5fb)}.demo-auth-card-wrap:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(120deg,rgba(255,255,255,.55),rgba(255,255,255,.18))}.demo-auth-card{position:relative;width:min(100%,520px);padding:36px 38px 32px;border:1px solid #eaecf0;border-radius:26px;background:rgba(255,255,255,.94);box-shadow:0 26px 80px rgba(16,24,40,.12);backdrop-filter:blur(10px)}.demo-auth-card header{text-align:left}.demo-auth-card h2{margin:10px 0 8px;font-family:Montserrat,Poppins,sans-serif;font-size:clamp(1.8rem,3vw,2.3rem);font-weight:900;line-height:1.02;letter-spacing:-.04em}.demo-auth-card header p{margin:0 0 26px;color:var(--muted);font-size:.9rem;line-height:1.62}.demo-auth-card header p strong{color:var(--ink)}.demo-auth-form{display:grid;gap:16px}.demo-auth-form label{display:grid;gap:7px;color:#344054;font-size:.76rem;font-weight:800}.demo-input{position:relative}.demo-input i{position:absolute;left:15px;top:50%;transform:translateY(-50%);font-size:1.15rem;color:#98a2b3}.demo-input input{width:100%;height:52px;padding:0 15px 0 45px;border:1px solid #d0d5dd;border-radius:13px;outline:0;background:#fcfcfd;color:#101828;font-size:.9rem;font-weight:600;transition:.2s}.demo-input input:focus{border-color:#8b00ff;background:#fff;box-shadow:0 0 0 4px rgba(139,0,255,.10)}.demo-code input{text-transform:uppercase;letter-spacing:.28em;font-family:Montserrat,sans-serif;font-size:1.2rem;font-weight:900}.demo-primary{min-height:52px;border:0;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 20px;background:linear-gradient(90deg,var(--pink),var(--purple) 48%,var(--blue));color:#fff;font-family:Montserrat,Poppins,sans-serif;font-size:.78rem;font-weight:900;letter-spacing:.03em;box-shadow:0 14px 30px rgba(126,0,255,.22);cursor:pointer;text-decoration:none;transition:.2s}.demo-primary:hover{transform:translateY(-1px);box-shadow:0 18px 36px rgba(126,0,255,.27)}.demo-link-button{width:100%}.demo-secondary{display:block;margin-top:12px;padding:12px;text-align:center;color:#475467;font-size:.8rem;font-weight:800;text-decoration:none}.demo-secondary:hover{color:#7e00ff}.demo-privacy{margin:16px 0 0;text-align:center;color:#98a2b3;font-size:.68rem;line-height:1.5}.demo-alert{display:flex;gap:10px;align-items:flex-start;margin:0 0 18px;padding:12px 14px;border:1px solid #f3d5e8;border-radius:12px;background:#fff5fb;color:#7a2457;font-size:.79rem;line-height:1.45}.demo-alert i{margin-top:1px;font-size:1rem}.demo-resend{text-align:center;margin-top:12px}.demo-resend button{border:0;background:transparent;color:#6941c6;font-size:.77rem;font-weight:800;cursor:pointer}.demo-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}.guard-toast{position:fixed;left:50%;bottom:22px;z-index:9999;transform:translate(-50%,20px);padding:11px 16px;border-radius:999px;background:#111827;color:#fff;font-size:.72rem;font-weight:700;opacity:0;pointer-events:none;transition:.2s}.guard-toast.show{opacity:1;transform:translate(-50%,0)}@keyframes slowSpin{to{transform:rotate(360deg)}}@media(max-width:980px){.demo-auth-shell{grid-template-columns:1fr}.demo-auth-visual{min-height:410px;padding:28px 24px}.demo-auth-brand{width:146px;height:96px}.demo-auth-visual-copy{margin:18px 0 26px}.demo-auth-visual-copy h1{font-size:clamp(2.5rem,9vw,4.4rem);max-width:11ch}.demo-auth-preview{padding-top:10px}.demo-auth-preview div{margin-right:14px;padding-right:14px}.demo-auth-card-wrap{min-height:auto;padding:28px 16px 42px}.demo-auth-card{padding:30px 24px}.demo-auth-note{display:none}}@media(max-width:520px){.demo-auth-visual{min-height:360px;padding:22px 18px}.demo-auth-brand{width:126px;height:84px}.demo-auth-visual-copy h1{font-size:clamp(2.3rem,12vw,3.55rem)}.demo-auth-visual-copy p{font-size:.82rem}.demo-auth-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}.demo-auth-preview div{padding:0;margin:0;display:flex}.demo-auth-preview div:not(:last-child):after{display:none}.demo-auth-preview b{font-size:.66rem}.demo-auth-card{border-radius:20px}.demo-auth-card h2{font-size:1.9rem}}@media(prefers-reduced-motion:reduce){.demo-auth-visual:before{animation:none}.demo-primary{transition:none}}
/* V14 · Galaxy + balance editorial */
.demo-auth-visual{background:#050712!important;isolation:isolate!important}
.demo-auth-visual #ancaGalaxyLab{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:0!important;display:block!important;opacity:.92!important}
.demo-auth-galaxy-shade{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(3,4,12,.76),rgba(3,4,12,.39) 58%,rgba(3,4,12,.56)),radial-gradient(circle at 16% 20%,rgba(245,0,165,.14),transparent 32%)}
.demo-auth-visual:before,.demo-auth-visual:after{display:none!important}
.demo-auth-brand,.demo-auth-visual-copy,.demo-auth-preview,.demo-auth-note{z-index:3!important}
.demo-auth-brand{width:230px!important;height:148px!important;margin-top:2px!important}
.demo-auth-visual-copy{margin:auto 0 26px!important}
.demo-auth-visual-copy h1{max-width:12ch!important;font-size:clamp(2.7rem,4.25vw,4.75rem)!important;line-height:.92!important;margin:12px 0 16px!important}
.demo-auth-preview{display:flex!important;gap:0!important;padding-top:12px!important}
.demo-auth-preview div{border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;min-height:auto!important;position:relative!important;padding:0 20px 0 0!important;margin:0 20px 10px 0!important;display:flex!important;grid-template-columns:none!important}
.demo-auth-preview div:not(:last-child)::after{content:"";display:block;position:absolute;right:-10px;top:50%;width:1px;height:18px;transform:translateY(-50%);background:rgba(255,255,255,.25)}
.demo-auth-preview i{font-size:1.1rem!important}.demo-auth-preview b{font-size:.75rem!important}
@media(max-width:980px){.demo-auth-brand{width:175px!important;height:112px!important}.demo-auth-visual-copy h1{font-size:clamp(2.35rem,8vw,4rem)!important}.demo-auth-preview{flex-wrap:wrap!important}}
@media(max-width:520px){.demo-auth-brand{width:145px!important;height:94px!important}.demo-auth-preview{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.demo-auth-preview div{margin:0!important;padding:0!important}.demo-auth-preview div::after{display:none!important}}

/* V15 · Acceso administrador seguro */
.demo-admin-entry{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:18px 0 12px;color:#98a2b3;font-size:.66rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.demo-admin-entry span{height:1px;background:#eaecf0}.demo-admin-button{min-height:48px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 18px;border:1px solid rgba(126,0,255,.20);border-radius:13px;background:#fff;color:#4f2a8f;font-family:Montserrat,Poppins,sans-serif;font-size:.73rem;font-weight:900;text-decoration:none;box-shadow:0 10px 24px rgba(16,24,40,.06);transition:.2s}.demo-admin-button:hover{transform:translateY(-1px);border-color:#8b00ff;box-shadow:0 14px 28px rgba(126,0,255,.12)}.demo-admin-button i:first-child{font-size:1.05rem;color:#8b00ff}.demo-admin-button i:last-child{font-size:1.05rem}.demo-admin-card{border-color:rgba(126,0,255,.16);box-shadow:0 28px 86px rgba(38,18,72,.15)}.demo-admin-hint{margin:-4px 0 0;color:#667085;font-size:.68rem;line-height:1.45}.demo-admin-setup-link{display:block;margin:15px auto 2px;text-align:center;color:#6941c6;font-size:.75rem;font-weight:900;text-decoration:none}.demo-admin-setup-link:hover{text-decoration:underline}.demo-admin-auth .demo-auth-visual-copy h1{max-width:11ch}.demo-admin-auth .demo-auth-kicker{color:#c7b6ff}


/* V16 · Acceso administrador discreto + credencial preconfigurada */
.demo-admin-entry{display:flex!important;justify-content:center!important;align-items:center!important;margin:12px 0 0!important;gap:0!important;text-transform:none!important;letter-spacing:0!important}
.demo-admin-entry>span,.demo-admin-entry>b{display:none!important}
.demo-admin-button{min-height:auto!important;padding:5px 8px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#98a2b3!important;font-family:Poppins,Arial,sans-serif!important;font-size:.66rem!important;font-weight:700!important;box-shadow:none!important;gap:5px!important;opacity:.82!important}
.demo-admin-button:hover{transform:none!important;background:#f8f7fc!important;color:#6941c6!important;box-shadow:none!important;opacity:1!important}
.demo-admin-button i{font-size:.78rem!important;color:inherit!important}
.demo-admin-button i:last-child{display:none!important}
.demo-admin-setup-link{display:none!important}


/* =========================================================
   V19 · LOGIN EQUILIBRADO + GALAXIA INMEDIATA
   - Misma jerarquía visual en acceso público y administrador.
   - Logo mayor.
   - Títulos más pequeños y con altura editorial equivalente.
   - Beneficios sin tarjetas: solo separadores cortos.
   - Poster local inmediato mientras inicia el canvas Galaxy V8.3.
   ========================================================= */
.demo-auth-visual{
  background:#050712 url('/panel-demo/public/images/galaxy-poster-v19.webp') center center/cover no-repeat!important;
}
.demo-auth-visual #ancaGalaxyLab{
  background:transparent!important;
  opacity:.92!important;
}
.demo-auth-galaxy-shade{
  background:
    linear-gradient(90deg,rgba(3,4,12,.62) 0%,rgba(3,4,12,.28) 60%,rgba(3,4,12,.42) 100%),
    radial-gradient(circle at 13% 18%,rgba(245,0,165,.10),transparent 34%)!important;
}

/* Logo realmente más grande: el archivo es cuadrado, por eso la altura es la medida efectiva. */
.demo-auth-brand{
  width:300px!important;
  height:210px!important;
  margin-top:-10px!important;
  flex:0 0 auto!important;
}
.demo-auth-brand img{width:100%!important;height:100%!important;object-fit:contain!important}

/* Los dos títulos ocupan una altura editorial equivalente en escritorio. */
.demo-auth-visual-copy{
  max-width:780px!important;
  margin:auto 0 22px!important;
}
.demo-auth-visual-copy h1{
  width:100%!important;
  max-width:14ch!important;
  min-height:2.9em!important;
  margin:10px 0 14px!important;
  display:flex!important;
  align-items:flex-end!important;
  font-size:clamp(2.25rem,3.15vw,3.65rem)!important;
  line-height:.96!important;
  letter-spacing:-.05em!important;
}
.demo-admin-auth .demo-auth-visual-copy h1{
  max-width:10.8ch!important;
}
.demo-auth-visual-copy p{
  max-width:690px!important;
  font-size:clamp(.9rem,1vw,1.02rem)!important;
  line-height:1.62!important;
}

/* Beneficios inferiores: SIN cuadros; cada idea se separa por una línea corta. */
.demo-auth-preview{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:0!important;
  max-width:780px!important;
  padding:10px 0 0!important;
  margin:0!important;
}
.demo-auth-preview div{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:9px!important;
  min-height:28px!important;
  margin:0 18px 8px 0!important;
  padding:0 20px 0 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.demo-auth-preview div:not(:last-child)::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  right:-1px!important;
  top:50%!important;
  width:1px!important;
  height:17px!important;
  transform:translateY(-50%)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.30)!important;
}
.demo-auth-preview i{font-size:1.05rem!important;color:#8ff6ff!important}
.demo-auth-preview b{font-size:.72rem!important;line-height:1.25!important;color:#fff!important}
.demo-auth-note{margin-top:4px!important}

/* Tarjeta derecha: títulos contenidos y coherentes en ambas pantallas. */
.demo-auth-card h2{
  font-size:clamp(1.72rem,2.2vw,2.15rem)!important;
  line-height:1.02!important;
  max-width:16ch!important;
}

@media(max-width:980px){
  .demo-auth-brand{width:220px!important;height:154px!important;margin-top:-4px!important}
  .demo-auth-visual-copy h1{min-height:0!important;max-width:13ch!important;font-size:clamp(2.2rem,7vw,3.65rem)!important}
  .demo-admin-auth .demo-auth-visual-copy h1{max-width:11ch!important}
  .demo-auth-preview div{margin-right:14px!important;padding-right:16px!important}
}
@media(max-width:520px){
  .demo-auth-brand{width:170px!important;height:118px!important;margin-top:0!important}
  .demo-auth-visual-copy h1{font-size:clamp(2rem,10.5vw,3.1rem)!important;max-width:12ch!important}
  .demo-auth-preview{display:flex!important;flex-wrap:wrap!important;gap:0!important}
  .demo-auth-preview div{margin:0 12px 7px 0!important;padding:0 14px 0 0!important}
  .demo-auth-preview div:not(:last-child)::after{display:block!important;height:14px!important}
  .demo-auth-preview b{font-size:.65rem!important}
}
