/* =========================================================
   LOGIN — pantalla de acceso
========================================================= */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.login-wrap {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Logo ---- */
.login-brand {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: -60px;
  z-index: 3;
}

.brand-logo {
  width: 300px;
  filter: drop-shadow(0 14px 30px rgba(139, 61, 255, .45));
}

/* ---- Tarjeta con brillo doble en el borde ----
   Técnica de wrapper (en vez de mask): más compatible entre navegadores.
   .login-card-glow = fondo en degradado + padding = grosor del borde + halo difuso.
   .login-card = el contenido real, con su propio radio un poco menor. */
.login-card-glow {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2px;
  border-radius: 27px;
  background: linear-gradient(180deg, var(--pink-2), var(--purple) 45%, var(--blue) 100%);
}

.login-card-glow::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 38px;
  background: linear-gradient(180deg, var(--pink-2), var(--purple) 45%, var(--blue) 100%);
  filter: blur(26px);
  opacity: .5;
  z-index: -1;
  pointer-events: none;
}

.login-card {
  position: relative;
  width: 100%;
  padding: 54px 32px 28px;
  border-radius: 25px;
  background: linear-gradient(165deg, rgba(15,19,64,.98), rgba(7,10,38,.99));
  text-align: center;
}

.login-card-tagline {
  display: block;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.login-card h1 {
  margin: 0 0 4px;
  font-size: 1.7rem;
  font-weight: 800;
}

.login-sub {
  margin: 0 0 26px;
  color: var(--text-dim);
  font-size: .92rem;
}

/* ---- Inputs ---- */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 0 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input-group:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255,22,132,.14);
}

.input-group svg {
  width: 19px;
  height: 19px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.input-group input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  padding: 15px 12px;
}

.input-group input::placeholder { color: #7f86ad; }

/* El navegador fuerza fondo blanco en campos autocompletados (usuario/contraseña
   guardados) sin importar el CSS normal — hay que anular con -webkit-box-shadow. */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #181941 inset !important;
  box-shadow: 0 0 0 1000px #181941 inset !important;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}

.toggle-pass {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-dim);
  display: flex;
}

.toggle-pass svg { width: 19px; height: 19px; }
.toggle-pass.activo { color: var(--pink-2); }

/* ---- Opciones ---- */
.login-opciones {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 22px;
  font-size: .85rem;
  flex-wrap: wrap;
  gap: 8px;
}

.login-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  cursor: pointer;
}

.login-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--pink);
}

.login-forgot {
  color: var(--pink-2);
  font-weight: 500;
}

.login-forgot:hover { text-decoration: underline; }

/* =========================================================
   BOTÓN LOGIN — NEÓN / BRILLO
========================================================= */

.login-submit {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  width: 100%;
  padding: 17px 24px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  border-radius: 16px;

  /* borde blanco/violeta luminoso */
  border: 2px solid rgba(255, 255, 255, .72);

  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;

  cursor: pointer;

  background:
    linear-gradient(
      105deg,
      #ff2b9d 0%,
      #ff1493 25%,
      #bd16f4 58%,
      #653cff 100%
    );

  box-shadow:
    0 0 5px rgba(255, 255, 255, .35),
    0 0 14px rgba(255, 22, 132, .55),
    0 0 30px rgba(190, 30, 255, .35),
    0 12px 30px rgba(98, 48, 255, .30),
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -4px 12px rgba(61, 25, 175, .22);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    filter .25s ease;
}


/* brillo superior interno */
.login-submit::before {
  content: "";

  position: absolute;
  z-index: -1;

  top: 0;
  left: 8%;
  right: 8%;

  height: 45%;

  border-radius: 999px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.25),
    rgba(255,255,255,0)
  );

  pointer-events: none;
}


/* destello que atraviesa el botón */
.login-submit::after {
  content: "";

  position: absolute;

  top: -60%;
  left: -45%;

  width: 35%;
  height: 220%;

  transform: rotate(20deg);

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.08),
    rgba(255,255,255,.65),
    rgba(255,255,255,.08),
    transparent
  );

  filter: blur(2px);

  transition: left .65s ease;

  pointer-events: none;
}


/* HOVER */
.login-submit:hover {
  transform: translateY(-2px) scale(1.01);

  filter: brightness(1.08);

  box-shadow:
    0 0 7px rgba(255,255,255,.50),
    0 0 18px rgba(255,22,132,.75),
    0 0 38px rgba(184,34,255,.55),
    0 0 55px rgba(91,65,255,.25),
    0 16px 35px rgba(61,35,190,.35),
    inset 0 1px 0 rgba(255,255,255,.45);
}


/* hace pasar el reflejo */
.login-submit:hover::after {
  left: 120%;
}


/* CLICK */
.login-submit:active {
  transform: translateY(0) scale(.985);

  box-shadow:
    0 0 12px rgba(255,22,132,.55),
    0 0 25px rgba(139,61,255,.40),
    inset 0 3px 10px rgba(37,13,104,.28);
}


/* flecha */
.login-submit .flecha {
  display: inline-block;

  font-size: 1.4rem;
  font-weight: 400;

  transition: transform .25s ease;
}

.login-submit:hover .flecha {
  transform: translateX(6px);
}

/* ---- Divisor ---- */
.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 18px;
}

.login-divider span { flex: 1; height: 1px; background: var(--border); }
.login-divider i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  display: block;
}

/* ---- Caja de "necesitas cuenta" ---- */
.login-admin-box {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(139,61,255,.08);
  border: 1px solid var(--border);
}

.login-admin-box svg {
  width: 26px;
  height: 26px;
  color: var(--purple-2);
  flex-shrink: 0;
}

.login-admin-box strong {
  display: block;
  font-size: .88rem;
  font-weight: 600;
}

.login-admin-box span {
  display: block;
  font-size: .8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ---- Pie ---- */
.login-footer-caption {
  margin-top: 26px;
  color: var(--text-dim);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.alerta { padding: 12px 16px; border-radius: 12px; font-size: .85rem; margin-bottom: 16px; text-align: left; }
.alerta-error { background: rgba(255,69,103,.12); color: #ff9caa; border: 1px solid rgba(255,69,103,.3); }

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .login-body { padding: 36px 16px; }
  .brand-logo { width: 230px; }
  .login-card { padding: 50px 22px 24px; border-radius: 22px; }
  .login-card h1 { font-size: 1.45rem; }
}