/* UNTUNAnet Login — mockup oficial
   Paleta: #1d435f · #426e9f · #409ccf · #ff6600 · #ffffff */

:root {
  --brand-text: #001c35;
  --brand-dark: var(--login-ui-dark, #1d435f);
  --brand-medium: var(--login-ui-medium, #426e9f);
  --brand-light: var(--login-ui-light, #409ccf);
  --icon-accent: var(--login-ui-accent, #59bceb);
  --icon-glow: 0 0 10px color-mix(in srgb, var(--icon-accent) 65%, transparent), 0 0 22px color-mix(in srgb, var(--icon-accent) 35%, transparent);
  --icon-glow-soft: 0 0 8px color-mix(in srgb, var(--icon-accent) 50%, transparent);
  --brand-vivid: #00aeef;
  --primary: var(--brand-dark);
  --primary-medium: var(--brand-medium);
  --accent: var(--brand-light);
  --orange: #ff6600;
  --white: #ffffff;
  --text-muted: #6b7c8f;
  --border: #dde3ea;
  --wave-h: clamp(48px, 8vh, 90px);
  --footer-h: clamp(4rem, 8.5vh, 5.25rem);
  --login-subfooter-h: 38px;
  --radius-card: 1.25rem;
  --radius-input: 0.5rem;
  --shadow-card: 0 4px 30px rgba(29, 67, 95, 0.12), 0 16px 48px rgba(29, 67, 95, 0.1);
  --shadow-btn: 0 4px 16px rgba(29, 67, 95, 0.32);
  --card-glass-bg: rgba(255, 255, 255, 0.82);
  --card-glass-border: rgba(255, 255, 255, 0.6);
  --input-glass-bg: rgba(255, 255, 255, 0.78);
  --glass-blur: blur(18px) saturate(1.15);
  --login-btn-1: #0b4180;
  --login-btn-2: #1667ae;
  --login-btn-hover-1: #09356a;
  --login-btn-hover-2: #125a94;
  --login-overlay-rgb: 2, 27, 67;
  --login-overlay-a1: 0.95;
  --login-overlay-a2: 0.72;
  --login-overlay-a3: 0.32;
  --login-overlay-radial: 0.28;
  --login-overlay-s2: 28%;
  --login-overlay-s3: 58%;
  --login-overlay-angle: 135deg;
  --gradient-brand: linear-gradient(90deg, var(--login-btn-1) 0%, var(--login-btn-2) 100%);
  --gradient-brand-hover: linear-gradient(90deg, var(--login-btn-hover-1) 0%, var(--login-btn-hover-2) 100%);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --bs-primary: var(--brand-dark);
  --bs-primary-rgb: 29, 67, 95;
  --bs-link-color: var(--brand-light);
  --bs-link-hover-color: var(--brand-medium);
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  --focus-ring: color-mix(in srgb, var(--brand-light) 22%, transparent);
  --bs-btn-focus-box-shadow: 0 0 0 0.2rem var(--focus-ring);
}

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

html {
  height: 100%;
  overflow: hidden;
}

body.login-page {
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  font-family: var(--font, 'Plus Jakarta Sans', system-ui, sans-serif);
  background: var(--white);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.text-accent {
  color: var(--icon-accent);
  font-weight: 700;
  text-shadow: 0 0 16px rgba(89, 188, 235, 0.45);
}

@keyframes iconGlowPulse {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(89, 188, 235, 0.35),
      0 0 20px rgba(89, 188, 235, 0.15),
      inset 0 0 10px rgba(89, 188, 235, 0.06);
  }
  50% {
    box-shadow:
      0 0 16px rgba(89, 188, 235, 0.55),
      0 0 28px rgba(89, 188, 235, 0.28),
      inset 0 0 14px rgba(89, 188, 235, 0.12);
  }
}

@keyframes iconShine {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(89, 188, 235, 0.7)) drop-shadow(0 0 12px rgba(89, 188, 235, 0.35));
  }
  50% {
    filter: drop-shadow(0 0 9px rgba(89, 188, 235, 1)) drop-shadow(0 0 18px rgba(89, 188, 235, 0.55));
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Shell — una sola pantalla sin scroll ── */
.login-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .login-shell {
    height: 100dvh;
    max-height: 100dvh;
  }
}

.login-shell__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: var(--brand-dark);
  background-image: linear-gradient(
    var(--login-overlay-angle),
    rgba(var(--login-overlay-rgb), 0.92),
    rgba(var(--login-overlay-rgb), 0.78)
  );
}

.login-shell__bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: var(--brand-dark);
}

.login-shell__bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  filter: saturate(1.05) contrast(1.03) brightness(1.01);
  will-change: opacity;
}

.login-shell__bg-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.login-shell__bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
  filter: saturate(1.05) contrast(1.03) brightness(1.01);
}

.login-shell__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 55% 45% at 0% 0%,
      rgba(var(--login-overlay-rgb), var(--login-overlay-radial)) 0%,
      rgba(var(--login-overlay-rgb), 0) 100%
    ),
    linear-gradient(
      var(--login-overlay-angle),
      rgba(var(--login-overlay-rgb), var(--login-overlay-a1)) 0%,
      rgba(var(--login-overlay-rgb), var(--login-overlay-a2)) var(--login-overlay-s2),
      rgba(var(--login-overlay-rgb), var(--login-overlay-a3)) var(--login-overlay-s3),
      rgba(var(--login-overlay-rgb), 0) 100%
    );
}

.login-shell__glow {
  display: none;
}

.login-shell__layout {
  position: relative;
  z-index: 4;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vh, 1.25rem);
  width: 100%;
  min-height: 0;
  max-height: calc(100dvh - var(--footer-h) - var(--login-subfooter-h));
  overflow: hidden;
  padding: clamp(0.5rem, 1.5vh, 1.25rem) clamp(1rem, 3vw, 2rem) clamp(0.25rem, 0.75vh, 0.5rem);
  margin-inline: auto;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  .login-shell__layout {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 48%);
    align-items: center;
    align-content: center;
    gap: 0.75rem 1rem;
    min-height: 0;
    padding-bottom: clamp(0.25rem, 0.75vh, 0.5rem);
  }

  .login-aside {
    width: 100%;
  }

  .login-card {
    width: 100%;
  }

  .login-hero__features {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .login-hero__features li {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1rem 0.875rem;
  }

  .login-hero__title,
  .login-hero__desc {
    max-width: 100%;
  }
}

/* Desktop — mockup split ~60/40, pantalla completa */
@media (min-width: 992px) {
  .login-shell__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 420px);
    align-items: center;
    align-content: center;
    gap: clamp(0.75rem, 2vh, 2rem);
    min-height: 0;
    padding: clamp(0.5rem, 1.5vh, 1.25rem) clamp(1.5rem, 3vw, 3.5rem) clamp(0.25rem, 0.75vh, 0.5rem);
    max-width: none;
    margin-inline: 0;
  }

  .login-hero {
    max-width: none;
    min-height: 0;
    padding-right: clamp(0.5rem, 2vw, 1.5rem);
    overflow: hidden;
  }

  .login-aside {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .login-card {
    max-width: 420px;
    max-height: 100%;
  }
}

/* Pantallas grandes */
@media (min-width: 1200px) {
  .login-shell__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 38vw);
    padding-inline: clamp(2rem, 4vw, 5rem);
  }
}

@media (min-width: 1440px) {
  .login-shell__layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(420px, 480px);
  }

  .login-hero__title {
    font-size: 2.625rem;
  }
}

@media (min-width: 1920px) {
  .login-shell__layout {
    padding-inline: clamp(3rem, 5vw, 6rem);
    grid-template-columns: minmax(0, 1fr) minmax(440px, 520px);
  }

  .login-card {
    padding: 2rem 1.875rem 1.75rem;
  }

  .login-hero__title {
    font-size: 2.75rem;
  }

  .login-hero__desc {
    font-size: 1.125rem;
  }
}

.login-shell__wave {
  position: absolute;
  bottom: calc(var(--footer-h) + var(--login-subfooter-h));
  left: 0;
  width: 100%;
  height: var(--wave-h);
  z-index: 2;
  pointer-events: none;
  display: block;
}

/* ── Footer integrado en la pantalla inicial ── */
.login-footer {
  position: relative;
  z-index: 4;
  flex: 0 0 var(--footer-h);
  height: var(--footer-h);
  margin-top: 0;
  background: #ffffff;
  overflow: hidden;
  border-top: none;
}

.login-footer__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 0.875rem;
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  align-content: center;
  padding: 0.5rem 1.25rem;
  padding-right: clamp(1.25rem, 13vw, 10.5rem);
}

.login-footer__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.login-footer__item > i {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1rem;
  color: var(--brand-medium);
  background: linear-gradient(135deg, rgba(34, 157, 244, 0.12) 0%, rgba(66, 110, 159, 0.08) 100%);
  border: 1px solid rgba(34, 157, 244, 0.18);
  border-radius: 0.75rem;
}

.login-footer__item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-footer__item span {
  display: block;
  font-size: 0.625rem;
  color: var(--text-muted);
  margin-top: 0.05rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .login-footer__inner {
    grid-template-columns: repeat(4, 1fr);
    padding: 0.5rem 2rem;
    padding-right: clamp(2rem, 15vw, 12rem);
    gap: 0.5rem 1rem;
  }
}

/* ── Hero ── */
.login-hero {
  color: var(--white);
}

.login-hero__brand {
  margin-bottom: clamp(0.5rem, 1.5vh, 1.25rem);
}

.login-hero__brand-icon {
  display: block;
  width: clamp(2.75rem, 5vw, 3.25rem);
  height: auto;
  margin-bottom: 0.625rem;
  object-fit: contain;
}

.login-hero__brand-name {
  font-size: calc(1.875rem * var(--ui-font-slider, 1));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--login-brand-1-hero, #ffffff);
}

.login-hero__brand-name span {
  color: var(--login-brand-2, #a5cb03);
}

.login-hero__brand-tag {
  margin-top: 0.25rem;
  font-size: calc(0.6875rem * var(--ui-font-slider, 1));
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--login-brand-tag-hero, rgba(255, 255, 255, 0.82));
  opacity: 0.9;
}

.login-hero__title {
  font-size: calc(clamp(1.5rem, 2.8vw, 2.25rem) * var(--ui-font-slider, 1));
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
  max-width: 520px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.login-hero__title-line {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 1px;
  margin: clamp(0.4rem, 1vh, 0.75rem) 0 clamp(0.5rem, 1.2vh, 0.875rem);
  background: rgba(255, 255, 255, 0.18);
}

.login-hero__title-line-accent {
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  width: min(78%, 22rem);
  background: var(--icon-accent);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(89, 188, 235, 0.55), 0 0 28px rgba(89, 188, 235, 0.25);
}

.login-hero__desc {
  font-size: calc(clamp(0.8125rem, 1.2vw, 0.9375rem) * var(--ui-font-slider, 1));
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 clamp(0.75rem, 1.5vh, 1.25rem);
  max-width: 500px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.login-hero__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.4rem, 0.8vh, 0.625rem);
  max-width: 540px;
}

.login-hero__features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.35rem, 0.8vh, 0.5rem);
  padding: clamp(0.5rem, 1vh, 0.75rem) 0.5rem;
  background: linear-gradient(
    145deg,
    rgba(2, 27, 67, 0.88) 0%,
    rgba(2, 27, 67, 0.62) 100%
  );
  border: 1px solid rgba(64, 156, 207, 0.12);
  border-radius: 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-hero__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2rem, 4vh, 2.5rem);
  height: clamp(2rem, 4vh, 2.5rem);
  border-radius: 0.625rem;
  background: rgba(2, 27, 67, 0.95);
  border: 1.5px solid rgba(89, 188, 235, 0.9);
  color: var(--icon-accent);
  flex-shrink: 0;
  animation: iconGlowPulse 3s ease-in-out infinite;
}

.login-hero__feature-icon i {
  font-size: 1.125rem;
  line-height: 1;
  animation: iconShine 3s ease-in-out infinite;
}

.login-hero__feature-text {
  font-size: calc(0.6875rem * var(--ui-font-slider, 1));
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
}

/* ── Tarjeta login — blanca sólida (mockup) ── */
.login-aside {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 0;
  z-index: 5;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 100%;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: clamp(0.875rem, 1.8vh, 1.375rem) clamp(1rem, 2vw, 1.375rem);
  box-shadow: 0 8px 40px rgba(29, 67, 95, 0.14), 0 2px 12px rgba(29, 67, 95, 0.08);
  border: none;
  overflow: hidden;
}

.login-card__logo-wrap {
  text-align: center;
  margin-bottom: clamp(0.35rem, 0.8vh, 0.625rem);
}

.login-card__brand-icon {
  display: block;
  width: clamp(2.5rem, 6vw, 3rem);
  height: auto;
  margin: 0 auto 0.5rem;
  object-fit: contain;
}

.login-card__brand-name {
  font-size: clamp(1.5rem, 4.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--login-brand-1, var(--brand-dark));
}

.login-card__brand-name span {
  color: var(--login-brand-2, #a5cb03);
}

.login-card__brand-tag {
  margin-top: 0.35rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--login-brand-tag, var(--brand-medium));
}

.login-card__title {
  font-size: calc(clamp(1.25rem, 2.5vh, 1.5rem) * var(--ui-font-content, 1));
  font-weight: 700;
  color: var(--brand-dark);
  text-align: center;
  margin: 0 0 0.15rem;
  letter-spacing: -0.02em;
}

.login-card__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: calc(clamp(0.75rem, 1.4vh, 0.8125rem) * var(--ui-font-content, 1));
  margin: 0 0 clamp(0.625rem, 1.2vh, 0.875rem);
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: clamp(0.625rem, 1.2vh, 0.875rem);
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.login-alert i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 1rem;
}

.login-alert--error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.login-alert--ok {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.login-link--soon {
  cursor: pointer;
}

/* ── Selector de rol (tabs estáticos, mockup) ── */
.role-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  margin-bottom: clamp(0.625rem, 1.2vh, 0.875rem);
}

.role-selector button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: clamp(2.5rem, 5vh, 3rem);
  padding: 0.35rem 0.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.4375rem;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.role-selector button i {
  font-size: 1rem;
  color: var(--icon-accent);
  filter: drop-shadow(0 0 5px rgba(89, 188, 235, 0.55));
  transition: filter 0.25s ease, color 0.25s ease;
}

.role-selector button:hover:not(.active) i {
  filter: drop-shadow(0 0 8px rgba(89, 188, 235, 0.85)) drop-shadow(0 0 14px rgba(89, 188, 235, 0.4));
}

.role-selector button:hover:not(.active) {
  border-color: var(--brand-light);
  color: var(--brand-medium);
}

.role-selector button.active {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
}

.role-selector button:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
}

.login-card .form-label {
  font-size: clamp(0.8125rem, 1.6vw, 0.875rem);
  font-weight: 500;
  color: var(--brand-dark);
  margin-bottom: 0.35rem;
}

.login-card .mb-3 {
  margin-bottom: clamp(0.5rem, 1vh, 0.75rem) !important;
}

.login-card .mb-4 {
  margin-bottom: clamp(0.625rem, 1.2vh, 0.875rem) !important;
}

/* ── Inputs ── */
.input-group {
  border-radius: var(--radius-input);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.role-selector button.active i {
  color: #ffffff;
  filter: none;
}

.input-group-text {
  background: transparent;
  border: none;
  border-right: 0;
  color: var(--icon-accent);
  padding: 0 0.875rem;
}

.input-group-text i {
  filter: drop-shadow(0 0 4px rgba(89, 188, 235, 0.45));
  transition: filter 0.25s ease;
}

.form-control,
.form-select {
  border: none;
  background: transparent;
  font-size: clamp(0.75rem, 1.4vh, 0.8125rem);
  padding: clamp(0.4rem, 0.9vh, 0.55rem) 0.75rem;
  min-height: clamp(36px, 5vh, 42px);
  border-radius: 0;
  color: var(--brand-dark);
}

.form-control::placeholder {
  color: #94a3b8;
}

.input-group > .form-control:focus,
.input-group > .form-select:focus {
  box-shadow: none;
  background: transparent;
}

.input-group:focus-within {
  background: var(--white);
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(64, 156, 207, 0.18);
}

.input-group:focus-within .input-group-text i {
  filter: drop-shadow(0 0 7px rgba(89, 188, 235, 0.85)) drop-shadow(0 0 14px rgba(89, 188, 235, 0.4));
}

.btn-eye {
  border: none;
  border-left: 0;
  background: transparent;
  color: var(--icon-accent);
  filter: drop-shadow(0 0 4px rgba(89, 188, 235, 0.45));
  min-height: clamp(36px, 5vh, 42px);
  min-width: 40px;
  padding: 0 0.75rem;
  border-radius: 0;
  transition: color 0.2s ease;
}

.btn-eye:hover {
  color: var(--icon-accent);
  filter: drop-shadow(0 0 8px rgba(89, 188, 235, 0.9)) drop-shadow(0 0 14px rgba(89, 188, 235, 0.45));
  background: transparent;
}

.login-card__options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
}

.form-check-input:checked {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.form-check-label {
  font-size: 0.8125rem;
  color: #475569;
}

.login-link {
  font-size: 0.8125rem;
  color: var(--brand-light);
  font-weight: 500;
  text-decoration: none;
}

.login-link:hover {
  color: var(--brand-medium);
}

/* ── Botones ── */
.btn-login {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: clamp(38px, 5vh, 44px);
  border: none;
  border-radius: 0.4375rem;
  font-size: clamp(0.875rem, 1.8vw, 0.9375rem);
  font-weight: 600;
  color: #ffffff !important;
  background: var(--gradient-brand) !important;
  box-shadow: 0 4px 14px rgba(11, 65, 128, 0.32);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.btn-login::after {
  display: none;
}

.btn-login i {
  transition: none;
}

.btn-login:hover,
.btn-login:focus {
  color: #ffffff !important;
  background: var(--gradient-brand-hover) !important;
  border: none;
  box-shadow: 0 6px 18px rgba(11, 65, 128, 0.38);
}

.btn-login:active {
  color: #ffffff !important;
  background: linear-gradient(90deg, var(--login-btn-2) 0%, var(--login-btn-1) 100%) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--login-btn-1) 40%, transparent);
}

.btn-outline-register {
  color: var(--brand-light) !important;
  border: 1.5px solid var(--brand-light) !important;
  border-radius: var(--radius-input);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.375rem 0.875rem;
  background: var(--white) !important;
  box-shadow: none;
  transition: all 0.2s ease;
}

.btn-outline-register:hover,
.btn-outline-register:focus {
  background: rgba(64, 156, 207, 0.08) !important;
  color: var(--brand-dark) !important;
  border-color: var(--brand-light) !important;
}

.btn-outline-register:active {
  background: rgba(0, 180, 240, 0.16) !important;
  color: var(--brand-dark) !important;
  border-color: var(--brand-medium) !important;
}

/* Bootstrap — colores de marca dentro del login */
.login-page .btn-primary {
  --bs-btn-bg: var(--brand-dark);
  --bs-btn-border-color: var(--brand-dark);
  --bs-btn-hover-bg: var(--brand-medium);
  --bs-btn-hover-border-color: var(--brand-medium);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-focus-shadow-rgb: 64, 156, 207;
}

.login-page .btn-outline-register.btn {
  --bs-btn-color: var(--brand-light);
  --bs-btn-border-color: var(--brand-light);
  --bs-btn-hover-color: var(--brand-dark);
  --bs-btn-hover-bg: rgba(64, 156, 207, 0.08);
  --bs-btn-hover-border-color: var(--brand-light);
  --bs-btn-active-color: var(--brand-dark);
  --bs-btn-active-bg: rgba(64, 156, 207, 0.14);
  --bs-btn-active-border-color: var(--brand-medium);
}

.login-page .form-check-input:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 0.2rem var(--focus-ring);
}

.login-card__register {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: clamp(0.5rem, 1vh, 0.75rem);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Sinti al pie de página ── */
.ai-bot {
  position: fixed;
  right: clamp(1.25rem, 3.5vw, 3rem);
  bottom: clamp(0.75rem, 2vh, 1.25rem);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}

.ai-bot__widget,
.ai-bot__panel:not([hidden]) {
  pointer-events: auto;
}

.ai-bot__widget {
  position: relative;
  line-height: 0;
}

.ai-bot--open .ai-bot__widget {
  display: none;
}

.ai-bot__launcher {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

.ai-bot__boot-hint {
  position: absolute;
  right: calc(100% + 0.75rem);
  bottom: clamp(4rem, 12vh, 6rem);
  width: min(16rem, calc(100vw - 8rem));
  padding: 0.875rem 0.875rem 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(29, 67, 95, 0.12);
  box-shadow: 0 12px 36px rgba(29, 67, 95, 0.18);
  color: var(--brand-dark);
  pointer-events: auto;
  animation: fadeUp 0.45s var(--ease-out) both;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ai-bot__boot-hint.is-hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.ai-bot__boot-hint::after {
  content: '';
  position: absolute;
  right: -7px;
  bottom: 1.35rem;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid rgba(29, 67, 95, 0.12);
  border-bottom: 1px solid rgba(29, 67, 95, 0.12);
  transform: rotate(-45deg);
}

.ai-bot__boot-hint-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  border: none;
  background: transparent;
  color: #64748b;
  line-height: 1;
  padding: 0.15rem;
  cursor: pointer;
}

.ai-bot__boot-hint-text {
  margin: 0 1.25rem 0.65rem 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #334155;
}

.ai-bot__boot-hint-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(90deg, var(--login-btn-1), var(--login-btn-2));
  cursor: pointer;
}

.ai-bot__boot-hint-cta:hover {
  filter: brightness(1.05);
}

.ai-bot--open .ai-bot__boot-hint {
  display: none;
}

.ai-bot__character-stage {
  display: block;
  transform-origin: bottom center;
  transform: translateY(0);
  will-change: transform;
}

.ai-bot__character-stage[data-pose="idle"] {
  animation: sintiIdle 3.2s ease-in-out infinite;
}

.ai-bot__character {
  display: block;
  width: clamp(96px, 9vw, 128px);
  height: auto;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 6px 16px rgba(29, 67, 95, 0.18));
  transform: none;
  image-rendering: auto;
}

.ai-mascot__img,
.ai-assistant__avatar-mini {
  object-fit: contain;
}

@keyframes sintiIdle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2%) scale(1.015); }
}

@keyframes sintiWave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-1%) rotate(-2.5deg); }
  75% { transform: translateY(-1%) rotate(2.5deg); }
}

@keyframes sintiTalk {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1%) scale(1.03); }
}

@keyframes sintiThink {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-1%) rotate(-1.5deg); }
}

@keyframes sintiCelebrate {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-6%) scale(1.06); }
  65% { transform: translateY(-3%) scale(1.04); }
}

@keyframes sintiBlink {
  0%, 100% { opacity: 1; filter: drop-shadow(0 6px 16px rgba(29, 67, 95, 0.18)); }
  45% { opacity: 0.72; filter: drop-shadow(0 6px 16px rgba(29, 67, 95, 0.18)) brightness(0.88); }
}

.ai-bot__panel[hidden] {
  display: none !important;
}

.ai-bot__panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  width: min(calc(100vw - 2rem), 340px);
  height: min(52dvh, 440px);
  background: var(--white);
  border-radius: 1.25rem;
  box-shadow: 0 24px 64px rgba(29, 67, 95, 0.25);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 0.35rem;
  transform: none;
  animation: fadeUp 0.35s var(--ease-out) both;
}

.ai-assistant__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: var(--gradient-brand);
  color: var(--white);
}

.ai-assistant__status {
  font-size: 0.6875rem;
  opacity: 0.9;
}

.ai-assistant__status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--brand-vivid);
  border-radius: 50%;
  margin-right: 4px;
}

.ai-assistant__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f8fafc;
}

.ai-assistant__message {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.ai-assistant__message--user {
  justify-content: flex-end;
}

.ai-assistant__message--user .ai-assistant__bubble {
  background: var(--brand-dark);
  color: var(--white);
}

.ai-assistant__message--bot .ai-assistant__bubble {
  background: var(--white);
  border: 1px solid var(--border);
  color: #334155;
}

.ai-assistant__message--bot .ai-assistant__avatar-mini {
  width: 30px;
  height: auto;
  object-fit: contain;
}

.ai-assistant__bubble {
  max-width: 82%;
  padding: 0.625rem 0.875rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.ai-assistant__link {
  color: var(--brand-vivid);
  font-weight: 600;
}

.ai-assistant__typing {
  display: inline-flex;
  gap: 4px;
}

.ai-assistant__typing span {
  width: 6px;
  height: 6px;
  background: var(--brand-vivid);
  border-radius: 50%;
  animation: typing 1.2s infinite;
}

.ai-assistant__typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-assistant__typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.4; }
  30% { opacity: 1; }
}

.ai-assistant__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border);
}

.ai-assistant__chip {
  border: 1px solid rgba(0, 180, 240, 0.5);
  background: rgba(0, 180, 240, 0.12);
  color: var(--brand-dark);
  font-size: 0.6875rem;
  padding: 0.3rem 0.625rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ai-assistant__chip:hover {
  background: rgba(0, 180, 240, 0.22);
  border-color: var(--brand-vivid);
}

.ai-assistant__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.ai-assistant__form .form-control {
  border-radius: 2rem;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  min-height: auto;
}

.ai-assistant__form .btn {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
}

.ai-assistant__form .btn:hover {
  background: var(--brand-medium) !important;
  border-color: var(--brand-medium) !important;
}

.ai-mascot__img {
  width: 36px;
  height: auto;
  object-fit: contain;
}

/* ── Responsive completo ── */

/* Móvil — login visible y con scroll; el botón de acceso no queda detrás */
@media (max-width: 767.98px) {
  :root {
    --footer-h: 0;
    --wave-h: 48px;
    --login-subfooter-h: calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  html {
    height: 100%;
    overflow: hidden;
  }

  body.login-page {
    background: transparent;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .login-hero {
    display: none !important;
  }

  .login-footer {
    display: none !important;
  }

  .login-shell__wave {
    z-index: 1;
    bottom: var(--login-subfooter-h);
    opacity: 0.85;
    pointer-events: none;
  }

  .login-shell {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .login-shell__overlay {
    background:
      radial-gradient(
        ellipse 60% 50% at 0% 0%,
        rgba(var(--login-overlay-rgb), calc(var(--login-overlay-radial) * 0.8)) 0%,
        rgba(var(--login-overlay-rgb), 0) 100%
      ),
      linear-gradient(
        var(--login-overlay-angle),
        rgba(var(--login-overlay-rgb), calc(var(--login-overlay-a1) * 0.95)) 0%,
        rgba(var(--login-overlay-rgb), calc(var(--login-overlay-a2) * 0.7)) 45%,
        rgba(var(--login-overlay-rgb), 0) 100%
      );
  }

  .login-shell__layout {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding:
      max(0.75rem, env(safe-area-inset-top))
      clamp(0.75rem, 4vw, 1rem)
      5.5rem;
    gap: 0;
  }

  .login-aside {
    width: 100%;
    max-width: none;
    min-height: 0;
    justify-content: flex-start;
    align-items: stretch;
    z-index: 6;
    overflow: visible;
  }

  .login-card {
    width: 100%;
    max-width: none;
    max-height: none;
    margin-inline: auto;
    margin-top: 0.25rem;
    background: var(--white);
    border: none;
    box-shadow: var(--shadow-card);
    overflow: visible;
    padding: 0.85rem 0.9rem 1rem;
  }

  .login-card__register {
    display: flex;
  }

  .login-card__title {
    font-size: calc(clamp(1.125rem, 3vh, 1.25rem) * var(--ui-font-content, 1));
  }

  .login-card__subtitle {
    font-size: calc(0.75rem * var(--ui-font-content, 1));
  }

  .role-selector button span {
    font-size: 0.5625rem;
  }

  .btn-login {
    min-height: 44px;
    width: 100%;
  }

  .ai-bot {
    right: max(0.75rem, env(safe-area-inset-right, 0));
    bottom: calc(var(--login-subfooter-h) + 0.65rem);
  }

  .ai-bot__character-stage {
    transform: translateY(0);
  }

  .ai-bot__character {
    width: clamp(52px, 14vw, 72px);
  }

  .ai-bot__panel:not([hidden]) {
    width: calc(100vw - 1.25rem);
    height: min(65dvh, 480px);
    margin-right: 0;
    transform: none;
  }
}

/* Pantallas muy estrechas */
@media (max-width: 380px) {
  .login-card {
    padding: 0.75rem 0.75rem 0.9rem;
  }

  .login-card__brand-name {
    font-size: 1.35rem;
  }

  .role-selector {
    gap: 0.2rem;
  }

  .role-selector button {
    min-height: 2.35rem;
    padding: 0.25rem 0.05rem;
  }
}

/* Landscape / pantallas bajas — compactar sin scroll */
@media (max-height: 780px) and (min-width: 768px) {
  :root {
    --footer-h: clamp(3.5rem, 7.5vh, 4.5rem);
    --wave-h: clamp(40px, 6.5vh, 70px);
  }

  .login-hero__features {
    gap: 0.35rem;
  }

  .login-hero__features li {
    padding: 0.4rem 0.4rem;
  }

  .login-hero__feature-text {
    font-size: 0.625rem;
  }
}

@media (max-height: 680px) {
  .login-hero__features {
    display: none;
  }

  .login-hero__desc {
    margin-bottom: 0.5rem;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .login-footer__item span {
    display: none;
  }
}

@media (max-height: 680px) and (min-width: 768px) {
  .login-card__register {
    display: none;
  }
}

@media (max-height: 600px) {
  .login-card {
    padding: 0.625rem 0.875rem;
  }

  .login-card__logo-wrap {
    display: none;
  }

  .role-selector button {
    min-height: 2.25rem;
  }

  .role-selector button span {
    display: none;
  }

  .ai-bot__character {
    width: 56px;
  }
}

@media (max-height: 600px) and (min-width: 768px) {
  :root {
    --footer-h: 3.25rem;
    --wave-h: 36px;
  }

  .login-shell__layout {
    padding-top: 0.35rem;
    padding-bottom: 0;
  }
}

@media (max-height: 600px) and (min-width: 992px) {
  .login-shell__layout {
    align-items: center;
    padding-top: 0.5rem;
  }
}

/* Hover solo en dispositivos con puntero */
@media (hover: hover) {
  .btn-login:hover {
    box-shadow: 0 6px 20px rgba(29, 67, 95, 0.38);
  }
}

@media (hover: none) {
  .btn-login:active {
    opacity: 0.95;
  }
}

/* Reducir animación si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .ai-bot__character-stage[data-pose="idle"],
  .ai-bot__character-stage[data-pose="hablando"],
  .ai-bot__character-stage[data-pose="pensando"],
  .ai-bot__character-stage.is-blinking .ai-bot__character {
    animation: none;
  }

  .ai-bot__character-stage {
    transform: translateY(0);
  }

  .login-hero__feature-icon,
  .login-hero__feature-icon i {
    animation: none;
  }

  .login-hero__feature-icon {
    box-shadow: var(--icon-glow-soft);
  }

  .login-hero__feature-icon i,
  .input-group-text i,
  .role-selector button i,
  .btn-eye {
    filter: drop-shadow(0 0 5px rgba(89, 188, 235, 0.6));
  }

  .ai-bot__character,
  .login-hero,
  .login-hero__brand,
  .login-hero__title,
  .login-hero__desc,
  .login-hero__features,
  .login-card,
  .ai-bot__panel:not([hidden]) {
    animation: none;
  }

  .btn-login {
    transition: none;
  }

  .login-hero__features li:hover {
    transform: none;
  }
}

/* ── Pantalla completa de mantenimiento ── */
body.maintenance-page {
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.maintenance-shell {
  justify-content: center;
}

.maintenance-shell__bg {
  background:
    radial-gradient(
      ellipse 80% 60% at 15% 10%,
      color-mix(in srgb, var(--maintenance-bg-color) 72%, #ffffff) 0%,
      transparent 68%
    ),
    radial-gradient(
      ellipse 70% 55% at 88% 18%,
      color-mix(in srgb, var(--maintenance-bg-color) 65%, var(--login-brand-1)) 0%,
      transparent 72%
    ),
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--maintenance-bg-color) 92%, #ffffff) 0%,
      var(--maintenance-bg-color) 42%,
      color-mix(in srgb, var(--maintenance-bg-color) 78%, var(--login-brand-1)) 100%
    );
}

.maintenance-shell__bg::before,
.maintenance-shell__bg::after {
  display: none;
}

.maintenance-shell .login-shell__overlay,
.maintenance-shell .login-shell__glow {
  display: none;
}

.maintenance-shell__content {
  position: relative;
  z-index: 4;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(920px, 100%);
  min-height: 0;
  max-height: calc(100dvh - var(--footer-h) - var(--wave-h));
  margin: 0 auto;
  padding: clamp(1rem, 2.5vh, 2rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
  overflow: auto;
  scrollbar-width: thin;
}

.maintenance-shell__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.maintenance-shell__brand-icon {
  width: clamp(56px, 8vw, 72px);
  height: clamp(56px, 8vw, 72px);
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.18));
}

.maintenance-shell__brand-name {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--login-brand-1, #1d435f);
  line-height: 1;
}

.maintenance-shell__brand-name span {
  color: var(--login-brand-1, #1d435f);
  opacity: 0.92;
}

.maintenance-shell__brand-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--login-brand-1) 72%, transparent);
}

.maintenance-shell__title {
  margin: 0 0 0.65rem;
  max-width: 16ch;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--login-brand-1, #1d435f);
}

.maintenance-shell__title .text-accent {
  color: var(--login-brand-1, #1d435f);
  text-shadow: none;
}

.maintenance-shell__lead {
  margin: 0 0 0.85rem;
  max-width: 52ch;
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--login-brand-1) 78%, #ffffff);
}

.maintenance-shell__message {
  margin: 0 auto 1.25rem;
  max-width: 58ch;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--brand-text);
  font-size: clamp(0.875rem, 1.6vw, 1rem);
  line-height: 1.55;
  box-shadow: 0 10px 28px rgba(29, 67, 95, 0.08);
}

.maintenance-shell__features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 1.15rem;
  padding: 0;
}

.maintenance-shell__features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-height: 100%;
  padding: 0.85rem 0.75rem;
  border-radius: 1rem;
  background: var(--card-glass-bg);
  border: 1px solid var(--card-glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 8px 28px rgba(29, 67, 95, 0.1);
}

.maintenance-shell__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(64, 156, 207, 0.14), rgba(165, 203, 3, 0.16));
  color: var(--brand-light);
  font-size: 1.1rem;
}

.maintenance-shell__feature-text {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--brand-text);
}

.maintenance-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 102, 0, 0.12), rgba(255, 176, 59, 0.14));
  border: 1px solid rgba(255, 102, 0, 0.22);
  color: #c2410c;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.maintenance-card__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6600;
  box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.45);
  animation: maintenancePulse 1.8s ease-in-out infinite;
}

@keyframes maintenancePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.45);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(255, 102, 0, 0);
  }
}

.maintenance-card__icon-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
}

.maintenance-card__icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(64, 156, 207, 0.22);
}

.maintenance-card__icon-ring--outer {
  animation: maintenanceSpin 10s linear infinite;
}

.maintenance-card__icon-ring--inner {
  inset: 10px;
  border-color: rgba(165, 203, 3, 0.35);
  animation: maintenanceSpin 7s linear infinite reverse;
}

@keyframes maintenanceSpin {
  to { transform: rotate(360deg); }
}

.maintenance-card__icon {
  position: absolute;
  inset: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--login-btn-1), var(--login-btn-2));
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.maintenance-card__icon i {
  font-size: 1.65rem;
}

.maintenance-card__progress {
  width: min(420px, 100%);
  height: 5px;
  margin: 0 auto;
  border-radius: 999px;
  background: color-mix(in srgb, var(--login-brand-1) 16%, transparent);
  overflow: hidden;
}

.maintenance-card__progress-bar {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--login-brand-2, #a5cb03), var(--brand-light));
  animation: maintenanceProgress 2.4s ease-in-out infinite;
}

@keyframes maintenanceProgress {
  0% { transform: translateX(-120%); width: 35%; }
  50% { width: 55%; }
  100% { transform: translateX(320%); width: 35%; }
}

@media (max-width: 767.98px) {
  .maintenance-shell__features {
    grid-template-columns: 1fr;
  }

  .maintenance-shell__title {
    max-width: none;
  }
}

/* ── Login moderno (overlay) — misma tarjeta y colores que el clásico ── */
.login-page--overlay {
  --footer-h: 0;
}

.login-page--overlay .login-shell__overlay {
  display: none;
}

.login-page--overlay .login-shell__layout--overlay {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: none;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.login-page--overlay .login-aside--overlay {
  width: 100%;
  max-width: min(440px, 100%);
  margin-left: auto;
}

.login-page--overlay .login-hero,
.login-page--overlay .login-shell__wave,
.login-page--overlay .login-footer {
  display: none !important;
}

/* ── Login centrado — tarjeta al medio, fondo limpio (sin olas ni pie) ── */
.login-page--centered {
  --footer-h: 0;
}

.login-page--centered .login-shell__overlay {
  display: none;
}

.login-page--centered .login-shell__layout--centered {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  max-width: none;
  padding: clamp(1rem, 3vw, 2rem);
  margin-inline: auto;
}

.login-page--centered .login-aside--centered {
  width: 100%;
  max-width: min(440px, 100%);
  display: flex;
  justify-content: center;
}

.login-page--centered .login-aside--centered .login-card {
  width: 100%;
  max-width: none;
  padding: clamp(1.25rem, 2.5vh, 1.75rem) clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 1.25rem;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.18),
    0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.login-page--centered .login-hero,
.login-page--centered .login-shell__wave,
.login-page--centered .login-footer {
  display: none !important;
}

@media (max-width: 767.98px) {
  .login-page--centered .login-shell__layout--centered {
    align-items: flex-start;
    padding: max(0.75rem, env(safe-area-inset-top)) clamp(0.75rem, 4vw, 1rem) 5.5rem;
    min-height: 0;
    flex: 1 1 auto;
  }

  .login-page--centered .login-aside--centered .login-card {
    border-radius: 1rem;
  }
}

@media (min-width: 992px) {
  .login-page--centered .login-shell__layout--centered {
    display: flex;
    grid-template-columns: unset;
  }
}

/* ── Clásico limpio — fondo/olas/pie del clásico, sin hero, tarjeta a la derecha ── */
.login-page--classic-clean .login-shell__layout--classic-clean {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
  max-width: none;
  max-height: calc(100dvh - var(--footer-h) - var(--login-subfooter-h));
  padding: clamp(0.5rem, 1.5vh, 1.25rem) clamp(1rem, 3vw, 2rem) clamp(0.25rem, 0.75vh, 0.5rem);
  margin-inline: auto;
}

.login-page--classic-clean .login-aside--classic-clean {
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-page--classic-clean .login-aside--classic-clean .login-card {
  width: 100%;
  max-width: 440px;
}

.login-page--classic-clean .login-hero {
  display: none !important;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .login-page--classic-clean .login-shell__layout--classic-clean {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 48%);
    align-items: center;
    align-content: center;
    gap: 0.75rem 1rem;
  }

  .login-page--classic-clean .login-aside--classic-clean {
    grid-column: 2;
    justify-content: flex-end;
  }
}

@media (min-width: 992px) {
  .login-page--classic-clean .login-shell__layout--classic-clean {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 420px);
    align-items: center;
    align-content: center;
    gap: clamp(0.75rem, 2vh, 2rem);
    padding: clamp(0.5rem, 1.5vh, 1.25rem) clamp(1.5rem, 3vw, 3.5rem) clamp(0.25rem, 0.75vh, 0.5rem);
    margin-inline: 0;
  }

  .login-page--classic-clean .login-aside--classic-clean {
    grid-column: 2;
    height: 100%;
    justify-content: flex-end;
  }

  .login-page--classic-clean .login-aside--classic-clean .login-card {
    max-width: 420px;
    max-height: 100%;
  }
}

@media (max-width: 767.98px) {
  .login-page--classic-clean .login-shell__layout--classic-clean {
    justify-content: flex-start;
    max-height: none;
  }
}

/* ── Bienvenida — panel izquierdo con slider + tarjeta blanca ── */
.login-page--welcome {
  --footer-h: 0;
  background: #ffffff;
}

.login-page--welcome .login-shell__bg,
.login-page--welcome .login-shell__bg-slider,
.login-page--welcome .login-shell__overlay,
.login-page--welcome .login-shell__glow,
.login-page--welcome .login-shell__wave,
.login-page--welcome .login-footer,
.login-page--welcome .login-page-footer {
  display: none !important;
}

.login-page--welcome .login-shell {
  background: #ffffff;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.login-page--welcome .login-shell__layout--welcome {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(220px, 42vh) minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  gap: 0;
  position: relative;
}

.login-welcome-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}

.login-welcome-panel__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--login-btn-1, #5e4eff);
}

.login-welcome-panel__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  will-change: opacity;
  transform: scale(1.04);
}

.login-welcome-panel__slide.is-active {
  opacity: 1;
  z-index: 1;
  animation: welcomeSlideZoom 8s ease-out forwards;
}

@keyframes welcomeSlideZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}

.login-welcome-panel__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 55% 45% at 0% 0%,
      rgba(var(--login-overlay-rgb), var(--login-overlay-radial)) 0%,
      rgba(var(--login-overlay-rgb), 0) 100%
    ),
    linear-gradient(
      var(--login-overlay-angle),
      rgba(var(--login-overlay-rgb), var(--login-overlay-a1)) 0%,
      rgba(var(--login-overlay-rgb), var(--login-overlay-a2)) var(--login-overlay-s2),
      rgba(var(--login-overlay-rgb), var(--login-overlay-a3)) var(--login-overlay-s3),
      rgba(var(--login-overlay-rgb), 0) 100%
    );
}

.login-welcome-panel__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  min-height: 0;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 4vw, 1.75rem);
  animation: fadeIn 0.45s var(--ease-out) both;
}

.login-welcome-panel__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  flex-shrink: 0;
}

.login-welcome-panel__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-shrink: 0;
  max-width: 34rem;
  animation: fadeUp 0.55s var(--ease-out) 0.08s both;
}

.login-welcome-panel__body {
  max-width: none;
}

.login-welcome-panel__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.login-welcome-panel__brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.login-welcome-panel__brand-name {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.login-welcome-panel__brand-name span {
  opacity: 0.92;
}

.login-welcome-panel__brand-tag {
  margin-top: 0.15rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.login-welcome-panel__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: min(100%, 22rem);
}

.login-welcome-panel__proof li {
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.login-welcome-panel__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.login-welcome-panel__title .text-accent {
  color: #ffffff;
  text-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}

.login-welcome-panel__desc {
  margin: 0;
  font-size: clamp(0.8125rem, 1.6vw, 1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 32rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.login-page--welcome .login-aside--welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 4vw, 1.75rem);
  z-index: 2;
  border-radius: 1.5rem 1.5rem 0 0;
  margin-top: -1rem;
  box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.14);
}

.login-page--welcome .login-aside--welcome__main {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  min-height: 0;
}

.login-page--welcome .login-aside--welcome .login-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: none;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  max-height: none;
  flex: 0 1 auto;
  display: block;
  animation: fadeUp 0.55s var(--ease-out) 0.12s both;
}

.login-page--welcome .login-aside--welcome #loginForm {
  display: block;
}

.login-page--welcome .login-card__logo-wrap {
  text-align: center;
  margin-bottom: clamp(0.5rem, 1.2vh, 0.85rem);
}

.login-page--welcome .login-card__brand {
  display: block;
}

.login-page--welcome .login-card__brand-icon {
  display: block;
  width: clamp(3rem, 7vw, 3.75rem);
  height: auto;
  margin: 0 auto 0.55rem;
  object-fit: contain;
}

.login-page--welcome .login-card__brand-name {
  text-align: center;
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--login-brand-1, var(--brand-dark));
}

.login-page--welcome .login-card__brand-name span {
  color: var(--login-brand-2, #a5cb03);
  font-weight: 600;
}

.login-page--welcome .login-card__brand-tag {
  text-align: center;
  margin-top: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--login-brand-tag, var(--brand-medium));
}

.login-page--welcome .login-card__title {
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  margin-top: 0.85rem;
  color: var(--login-brand-1, var(--brand-dark));
}

.login-page--welcome .login-card__subtitle {
  text-align: center;
}

.login-page--welcome .login-card .form-label {
  display: none;
}

.login-page--welcome .input-group {
  background: transparent;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  box-shadow: none;
  padding: 0.15rem 0;
}

.login-page--welcome .input-group:focus-within {
  border-bottom-color: var(--login-btn-1, #5e4eff);
  box-shadow: none;
}

.login-page--welcome .input-group-text {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding-left: 0;
}

.login-page--welcome .form-control,
.login-page--welcome .form-select {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-left: 0.25rem;
}

.login-page--welcome .btn-eye {
  background: transparent;
  border: none;
  color: #94a3b8;
}

.login-page--welcome .btn-login {
  border-radius: 0.85rem;
  margin-top: 0.35rem;
  background: var(--login-btn-1, #5e4eff);
  background-image: none;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--login-btn-1, #5e4eff) 35%, transparent);
}

.login-page--welcome .btn-login:hover,
.login-page--welcome .btn-login:focus {
  background: var(--login-btn-hover-1, #4a3ce6);
  background-image: none;
}

.login-page--welcome .login-card__register {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.25rem;
  text-align: center;
}

.login-page--welcome .login-card__register .btn-outline-register {
  min-width: 10rem;
}

.login-page--welcome .form-check-input:checked {
  background-color: var(--login-btn-1, #5e4eff);
  border-color: var(--login-btn-1, #5e4eff);
}

@media (min-width: 768px) {
  .login-page--welcome {
    background: transparent;
  }

  .login-page--welcome .login-shell {
    background: transparent;
  }

  .login-page--welcome .login-shell__layout--welcome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    grid-template-rows: 1fr;
    position: relative;
    isolation: isolate;
  }

  .login-welcome-panel {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
  }

  .login-welcome-panel__content {
    width: min(100% - 360px, 58%);
    max-width: 640px;
    height: 100%;
    padding: clamp(1.5rem, 4vh, 3rem) clamp(1.5rem, 4vw, 3.5rem);
  }

  .login-welcome-panel__desc {
    -webkit-line-clamp: 5;
  }

  .login-page--welcome .login-aside--welcome {
    grid-column: 2;
    position: relative;
    z-index: 2;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    margin: clamp(1rem, 3vh, 2rem) clamp(1rem, 3vw, 2rem) clamp(1rem, 3vh, 2rem) 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: auto;
  }

  .login-page--welcome .login-aside--welcome__main {
    width: 100%;
  }

  .login-page--welcome .login-aside--welcome .login-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: clamp(1.25rem, 2.5vh, 1.75rem) clamp(1.25rem, 3vw, 1.75rem);
    box-shadow:
      0 24px 60px rgba(15, 23, 42, 0.22),
      0 8px 24px rgba(15, 23, 42, 0.1);
  }
}

@media (min-width: 992px) {
  .login-page--welcome .login-shell__layout--welcome {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  }

  .login-welcome-panel__content {
    width: min(100% - 400px, 56%);
    padding: clamp(2rem, 4vh, 3rem) clamp(2rem, 5vw, 4rem);
    gap: 1.5rem;
  }

  .login-welcome-panel__brand-icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .login-welcome-panel__title {
    font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  }

  .login-welcome-panel__desc {
    -webkit-line-clamp: 6;
    font-size: clamp(0.875rem, 1.4vw, 1rem);
  }

  .login-welcome-panel__proof li {
    font-size: 0.6875rem;
    padding: 0.35rem 0.65rem;
  }

  .login-page--welcome .login-aside--welcome {
    margin: clamp(1.25rem, 4vh, 2.5rem) clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vh, 2.5rem) 0;
    padding: clamp(1.5rem, 3vh, 2.25rem);
  }

  .login-page--welcome .login-aside--welcome .login-card {
    border-radius: 1.75rem;
    padding: clamp(1.5rem, 3vh, 2rem) clamp(1.5rem, 3vw, 2rem);
  }
}

@media (max-width: 767.98px) {
  .login-page--welcome .login-shell {
    height: 100dvh;
    max-height: 100dvh;
  }

  .login-page--welcome .login-shell__layout--welcome {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .login-welcome-panel {
    display: none !important;
  }

  .login-page--welcome .login-aside--welcome {
    align-items: center;
    justify-content: center;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    padding: max(1rem, env(safe-area-inset-top)) clamp(1rem, 5vw, 1.5rem) 1rem;
    overflow: auto;
    background: #ffffff;
  }

  .login-page--welcome .login-aside--welcome .login-card {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .login-page--welcome .login-float-actions {
    bottom: max(2.5rem, calc(env(safe-area-inset-bottom) + 2rem));
  }
}

@media (max-height: 700px) and (min-width: 992px) {
  .login-welcome-panel__proof {
    max-width: 16rem;
  }

  .login-welcome-panel__desc {
    -webkit-line-clamp: 3;
  }

  .login-page--welcome .login-aside--welcome {
    padding-block: 1.25rem;
  }
}

.login-float-actions {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vh, 2rem);
  z-index: 1060;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.login-float-actions__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  flex-shrink: 0;
}

.login-float-actions__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.login-float-actions__btn:hover {
  transform: scale(1.05);
  color: #ffffff;
}

.login-float-actions__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-float-actions__btn:hover .login-float-actions__icon {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.login-float-actions__icon--youtube {
  width: 3.25rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  background: var(--login-tutorial-color, #ff0000);
  font-size: 1.75rem;
  line-height: 1;
}

.login-float-actions__icon--youtube i {
  margin-top: 0.05rem;
}

.login-float-actions__icon--whatsapp {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--login-support-color, #25d366);
  font-size: 1.65rem;
  line-height: 1;
}

.login-float-actions__label {
  font-size: 0.625rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767.98px) {
  .login-page--overlay .login-shell__layout--overlay {
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top)) clamp(0.75rem, 4vw, 1rem) 5.5rem;
    min-height: 0;
    flex: 1 1 auto;
  }

  .login-page--overlay .login-aside--overlay {
    max-width: none;
  }

  .login-float-actions {
    right: max(0.75rem, env(safe-area-inset-right, 0));
    bottom: calc(var(--login-subfooter-h) + 0.65rem);
  }

  .ai-bot__boot-hint {
    right: 0;
    bottom: calc(100% + 0.5rem);
    width: min(15rem, calc(100vw - 2rem));
  }

  .ai-bot__boot-hint::after {
    right: 1.25rem;
    bottom: -7px;
    transform: rotate(45deg);
  }
}

/* Tutorial modal */
.login-tutorial-modal .modal-content {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
}

.login-tutorial-modal__eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--login-brand-2, #426e9f);
  margin-bottom: 0.25rem;
}

.login-tutorial-modal__player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0e1828;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.login-tutorial-modal__player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.login-tutorial-modal__list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.login-tutorial-modal__list li {
  display: grid;
  gap: 0.15rem;
}

.login-tutorial-modal__list li span {
  color: #64748b;
  font-size: 0.9375rem;
}

/* Support chat — verde, al costado izquierdo de los iconos */
.login-support-bot {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  flex-shrink: 0;
}

.login-support-bot .login-support-panel:not([hidden]) {
  pointer-events: auto;
  margin-bottom: 0;
}

.login-support-panel .ai-assistant__header,
.login-support-panel__header {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--login-support-color, #25d366) 78%, #0f5132) 0%,
    var(--login-support-color, #25d366) 100%
  );
}

.login-support-panel .ai-assistant__status-dot {
  background: #dcfce7;
}

.login-support-panel .ai-assistant__message--user .ai-assistant__bubble {
  background: var(--login-support-color, #25d366);
  color: #ffffff;
}

.login-support-panel .ai-assistant__form .btn,
.login-support-panel__form .btn {
  background: var(--login-support-color, #25d366) !important;
  border-color: var(--login-support-color, #25d366) !important;
}

.login-support-panel .ai-assistant__form .btn:hover,
.login-support-panel__form .btn:hover {
  filter: brightness(1.06);
}

.login-support-panel__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.login-support-panel__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--login-support-color, #25d366) 16%, transparent);
  color: var(--login-support-color, #25d366);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.login-support-panel__intro {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
  background: #f8fafc;
}

.login-support-panel__intro-text {
  margin: 0 0 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #334155;
}

.login-support-panel__intro .form-label {
  font-size: 0.8125rem;
  color: #334155;
}

.login-support-panel__intro .form-control {
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
}

.login-support-panel__intro .btn-primary {
  background: var(--login-support-color, #25d366) !important;
  border-color: var(--login-support-color, #25d366) !important;
  border-radius: 2rem;
  font-size: 0.8125rem;
}

.login-support-panel__chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.login-support-panel__chat .ai-assistant__messages {
  flex: 1;
  min-height: 0;
}

@media (max-width: 767.98px) {
  .login-support-bot .login-support-panel:not([hidden]) {
    width: min(calc(100vw - 6.5rem), 340px);
    height: min(52dvh, 440px);
  }
}

/* Pie de página del inicio — mismo tamaño que el pie interno, diseño del login */
.login-page .login-dash-footer.dash-footer {
  position: relative;
  z-index: 5;
  flex: 0 0 var(--login-subfooter-h);
  height: var(--login-subfooter-h);
  min-height: var(--login-subfooter-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0 clamp(0.75rem, 2.5vw, 1.5rem);
  background: #ffffff;
  border-top: 1px solid rgba(29, 67, 95, 0.08);
  box-sizing: border-box;
}

.login-page .login-dash-footer .dash-footer__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 0;
}

.login-page .login-dash-footer .dash-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  border-radius: 0.5rem;
  padding: 0.1rem 0.2rem;
  margin: -0.1rem -0.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.login-page .login-dash-footer .dash-footer__brand:hover {
  background: rgba(29, 67, 95, 0.06);
  color: inherit;
}

.login-page .login-dash-footer .dash-footer__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.login-page .login-dash-footer .dash-footer__brand-name {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1d435f;
  line-height: 1;
}

.login-page .login-dash-footer .dash-footer__brand-tag {
  display: block;
  font-size: 0.4375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #409ccf;
  line-height: 1.1;
  margin-top: 0.1rem;
}

.login-page .login-dash-footer .dash-footer__center {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.login-page .login-dash-footer .dash-footer__copy {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #64748b;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-page .login-dash-footer .dash-footer__sep {
  margin: 0 0.35rem;
  color: rgba(29, 67, 95, 0.12);
}

.login-page .login-dash-footer .dash-footer__copy a {
  color: #426e9f;
  text-decoration: none;
  font-weight: 600;
}

.login-page .login-dash-footer .dash-footer__copy a:hover {
  color: #409ccf;
}

.login-page .login-dash-footer .dash-footer__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.login-page .login-dash-footer .dash-footer__icon-btn {
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.login-page .login-dash-footer .dash-footer__icon-btn:hover {
  background: rgba(29, 67, 95, 0.06);
  color: #1d435f;
  border-color: rgba(29, 67, 95, 0.08);
}

@media (max-width: 767.98px) {
  .login-page .login-dash-footer.dash-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 5;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--login-subfooter-h);
    min-height: var(--login-subfooter-h);
    flex: 0 0 var(--login-subfooter-h);
    gap: 0;
    margin: 0;
    padding: 0 0.75rem env(safe-area-inset-bottom, 0px);
  }

  .login-page .login-dash-footer .dash-footer__left {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    justify-content: center;
  }

  .login-page .login-dash-footer .dash-footer__brand {
    justify-content: center;
    margin: 0;
    padding: 0;
    gap: 0.3rem;
  }

  .login-page .login-dash-footer .dash-footer__center,
  .login-page .login-dash-footer .dash-footer__actions,
  .login-page .login-dash-footer .dash-footer__brand-tag {
    display: none !important;
  }

  .login-page .login-dash-footer .dash-footer__logo {
    width: 16px;
    height: 16px;
  }

  .login-page .login-dash-footer .dash-footer__brand-name {
    font-size: 0.625rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

