
:root {
  --azul-marino-profundo: #4272a5;
  --azul-marino-medio: #163b60;
  --azul-zafiro: #0284c7;
  --azul-zafiro-hover: #0369a1;
  --fondo-general: #eef6fc;
  --fondo-tarjeta: #f8fbfe;
  --celeste-suave: #e0f2fe;
  --celeste-borde: #c7e3fa;
  --celeste-resaltado: #bae6fd;
  --verde-clinico: #059669;
  --verde-fondo: #d1fae5;
  --peligro-rojo: #dc2626;
  --peligro-fondo: #fee2e2;
  --rate-limit-morado: #6d28d9;
  --rate-limit-morado-oscuro: #5b21b6;
  --rate-limit-fondo: #f5f3ff;
  --rate-limit-borde: #c4b5fd;
  --texto-primario: #0f2b48;
  --texto-secundario: #475569;
  --texto-apagado: #64748b;
}

html,
body {
  min-height: 100%;
}

body.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: 'DM Sans', 'Inter', sans-serif;
  color: var(--texto-primario);
  background: var(--fondo-general);
}

/* ==========================================================
   ESTRUCTURA
   ========================================================== */

.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-hero {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(2, 132, 199, .18), transparent 28%),
    radial-gradient(circle at 15% 78%, rgba(5, 150, 105, .12), transparent 30%),
    linear-gradient(155deg, var(--verde-clinico) 6%, var(--azul-marino-medio) 56%, #1a4f80 100%);
}

.auth-main {
    min-height: 100vh;
    min-height: 100dvh;

    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(2, 132, 199, .08),
            transparent 24%
        ),
        radial-gradient(
            circle at 15% 94%,
            rgba(5, 150, 105, .07),
            transparent 26%
        ),
        var(--fondo-general);
}

.auth-stack {
  max-width: 460px;
}

.auth-stack-recovery {
  max-width: 430px;
}

.auth-card {
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(199, 227, 250, .95) !important;
  box-shadow: 0 22px 50px -24px rgba(15, 43, 72, .32) !important;
}

.auth-card-decoration {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.auth-card-decoration::before,
.auth-card-decoration::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.auth-card-decoration::before {
  width: 86px;
  height: 86px;
  right: -30px;
  top: -34px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(5, 150, 105, .17), rgba(2, 132, 199, .08));
}

.auth-card-decoration::after {
  width: 92px;
  height: 92px;
  left: -42px;
  bottom: -46px;
  border-radius: 50%;
  background: linear-gradient(325deg, rgba(2, 132, 199, .11), rgba(5, 150, 105, .07));
}

/* ==========================================================
   PANEL IZQUIERDO
   ========================================================== */

.panel-front {
  min-height: 100vh;
  min-height: 100dvh;
}

.logo-abreviado {
  color: #fff;
  font-size: clamp(1.8rem, 2.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.04em;
}

.logo-nombre {
  max-width: 37ch;
  color: var(--celeste-resaltado);
  font-size: clamp(.78rem, 1vw, 1.02rem);
  line-height: 1.35;
}

.hero-title {
  max-width: 12ch;
  color: #fff;
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.12;
}

.hero-line {
  display: block;
}

.personas-card {
  max-width: 330px;
  color: #fff;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.personas-title {
  color: var(--celeste-resaltado);
  font-size: clamp(1.1rem, 1.4vw, 1.45rem);
  font-weight: 700;
}

.personas-sub,
.footer-tagline-text {
  color: rgba(255, 255, 255, .68);
}

.footer-tagline-text {
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.3;
}

/* ==========================================================
   FLIP / SLIDER — sólo el efecto visual del login
   ========================================================== */

.panel-flip {
  perspective: 1800px;
}

.panel-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.22, .61, .36, 1);
}

.panel-flip .panel-front,
.panel-flip .panel-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.panel-flip .panel-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.panel-back {
  transform: rotateY(180deg);
  background: var(--azul-marino-medio);
}

/* El giro se controla mediante .flip-activo desde el temporizador. */

.panel-flip.flip-activo .panel-flip-inner {
  transform: rotateY(180deg);
}

.panel-back-slider,
.panel-back-slide,
.panel-back-image,
.panel-back-overlay {
  position: absolute;
  inset: 0;
}

.panel-back-slider {
  overflow: hidden;
}

.panel-back-slide {
  margin: 0;
  opacity: 0;
  animation: panelSlideFade 18s ease-in-out infinite;
}

.panel-back-slide.slide-1 { animation-delay: 0s; }
.panel-back-slide.slide-2 { animation-delay: 6s; }
.panel-back-slide.slide-3 { animation-delay: 12s; }

.panel-back-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-back-overlay {
  background: linear-gradient(to bottom, transparent 44%, rgba(15, 43, 72, .10) 65%, rgba(15, 43, 72, .70) 100%);
}

.panel-back-texto {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  z-index: 3;
  color: #fff;
}

.panel-back-texto span {
  display: block;
  margin-bottom: .25rem;
  color: rgba(255,255,255,.72);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.panel-back-texto strong {
  font-size: 1.25rem;
}

@keyframes panelSlideFade {
  0%, 38%, 100% { opacity: 0; }
  7%, 30% { opacity: 1; }
}

/* ==========================================================
   CABECERA / TEXTOS
   ========================================================== */

.lang-selector {
  color: var(--texto-secundario);
  font-size: .85rem;
}

.form-logo-nombre {
  color: var(--verde-clinico);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.form-logo-slogan {
  color: var(--texto-apagado);
  font-size: .85rem;
}

.form-titulo {
  color: var(--texto-primario);
  font-size: 1.45rem;
  font-weight: 700;
}

.form-subtitulo {
  color: var(--texto-secundario);
  font-size: .92rem;
  line-height: 1.45;
}

/* ==========================================================
   FORMULARIOS — Bootstrap + marca ANHAES
   ========================================================== */

.form-label {
  color: var(--texto-primario);
  font-size: .86rem;
  font-weight: 600;
}

.auth-input .input-group-text,
.auth-input .form-control,
.auth-input .btn-ojo {
  min-height: 46px;
  border-color: var(--celeste-borde);
  background: var(--fondo-tarjeta);
}

.auth-input .input-group-text {
  color: var(--texto-apagado);
  border-right: 0;
}

.auth-input .form-control {
  min-width: 0;
  border-left: 0;
  color: var(--texto-primario);
  box-shadow: none;
}

.auth-input .form-control::placeholder {
  color: #9db0c4;
}

.auth-input .form-control:focus {
  border-color: var(--azul-zafiro);
  box-shadow: none;
}

.auth-input:focus-within {
  border-radius: .5rem;
  box-shadow: 0 0 0 .2rem rgba(2, 132, 199, .10);
}

.auth-input .btn-ojo {
  color: var(--texto-apagado);
  border-left: 0;
}

.auth-input .btn-ojo:hover,
.auth-input .btn-ojo:focus {
  color: var(--azul-zafiro);
  background: var(--fondo-tarjeta);
  border-color: var(--celeste-borde);
}

.auth-input .form-control:disabled,
.auth-input .input-group-text:has(+ .form-control:disabled) {
  color: #94a3b8;
  background: #f1f5f9;
}

.form-check-input {
  border-color: var(--celeste-borde);
}

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

.form-check-input:focus {
  border-color: var(--azul-zafiro);
  box-shadow: 0 0 0 .2rem rgba(2, 132, 199, .12);
}

.olvide,
.recovery-volver {
  color: var(--azul-marino-medio);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
}

.olvide:hover,
.recovery-volver:hover {
  color: var(--azul-zafiro-hover);
  text-decoration: underline;
}

.btn-principal {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--verde-clinico), var(--azul-marino-medio));
  box-shadow: none;
  transition: transform .18s ease, filter .18s ease;
}

.btn-principal:hover:not(:disabled) {
  color: #fff;
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-principal:active:not(:disabled) {
  transform: translateY(0);
}

.btn-principal:disabled {
  opacity: .62;
  cursor: not-allowed;
}

.btn-secundario {
  color: var(--azul-marino-profundo);
  background: var(--fondo-tarjeta);
  border-color: var(--celeste-borde);
}

.btn-secundario:hover {
  color: var(--azul-marino-medio);
  background: var(--celeste-suave);
  border-color: var(--azul-zafiro);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSpin .7s linear infinite;
}

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

/* ==========================================================
   DIVISOR / FOOTER
   ========================================================== */

.divider-line {
  height: 1px;
  background: var(--celeste-borde);
}

.divider-text {
  color: var(--texto-apagado);
  font-size: .78rem;
  white-space: nowrap;
}

.footer-links,
.footer-copy {
  color: var(--texto-apagado);
  font-size: .76rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--azul-zafiro-hover);
}

.footer-copy {
  color: #a2b6ca;
}

/* ==========================================================
   ALERTAS
   ========================================================== */

.alerta-rate-limit {
  color: var(--rate-limit-morado-oscuro);
  background: linear-gradient(135deg, var(--rate-limit-fondo), #faf5ff);
  border-color: var(--rate-limit-borde) !important;
}

.rate-limit-icono {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rate-limit-morado);
  background: rgba(109, 40, 217, .10);
  border-radius: .65rem;
}

.rate-limit-icono svg {
  width: 20px;
  height: 20px;
}

.rate-limit-titulo,
.rate-limit-header {
  color: var(--rate-limit-morado-oscuro);
  font-size: .88rem;
  font-weight: 700;
}

.rate-limit-mensaje,
.alerta-rate-limit p {
  color: #6b4aa0;
  font-size: .8rem;
  line-height: 1.42;
}

.rate-limit-tiempo {
  color: var(--rate-limit-morado);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

.rate-limit-tiempo strong,
#rateLimitTimer,
.js-rate-limit-timer {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================
   RECUPERACIÓN
   ========================================================== */

.recovery-icono {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--azul-zafiro);
  background: linear-gradient(145deg, rgba(2,132,199,.12), rgba(5,150,105,.08));
  border: 1px solid rgba(2,132,199,.14);
  border-radius: 1rem;
}

.recovery-icono-success {
  color: var(--verde-clinico);
  background: linear-gradient(145deg, rgba(5,150,105,.13), rgba(2,132,199,.07));
}

.recovery-step {
  color: var(--azul-marino-medio);
  background: var(--celeste-suave);
  border: 1px solid var(--celeste-borde);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.recovery-mensaje-info {
  color: var(--azul-marino-medio);
  background: var(--celeste-suave);
  border-color: var(--celeste-borde) !important;
  font-size: .82rem;
}

.password-ayuda {
  color: #047857;
  background: rgba(5, 150, 105, .07);
  border-color: rgba(5,150,105,.15) !important;
  font-size: .78rem;
}

.campo-ayuda,
.campo-error,
.codigo-error-cliente,
.password-match-error {
  font-size: .77rem;
}

.campo-ayuda {
  color: var(--texto-apagado);
}

.campo-error,
.codigo-error-cliente,
.password-match-error {
  color: var(--peligro-rojo);
}

.password-match-error,
.codigo-error-cliente {
  display: none;
}

.password-match-error.visible {
  display: flex;
}

.codigo-error-cliente.visible {
  display: block;
}

.input-wrap-error {
  border-radius: .5rem;
  box-shadow: 0 0 0 .2rem rgba(220, 38, 38, .10) !important;
}

.input-wrap-error .input-group-text,
.input-wrap-error .form-control,
.input-wrap-error .btn-ojo {
  border-color: rgba(220, 38, 38, .62) !important;
}

/* ==========================================================
   CÓDIGO DE VERIFICACIÓN
   Bootstrap controla flex/gap; aquí sólo tamaño/estado.
   ========================================================== */

.codigo-celda {
  width: 48px;
  height: 52px;
  max-width: 52px;
  padding: 0;
  color: var(--texto-primario);
  background: var(--fondo-tarjeta);
  border-color: var(--celeste-borde);
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.codigo-celda:focus {
  border-color: var(--azul-zafiro);
  box-shadow: 0 0 0 .2rem rgba(2, 132, 199, .10);
}

.codigo-celda:disabled {
  color: #94a3b8;
  background: #f1f5f9;
}

.codigo-verificacion-error .codigo-celda {
  border-color: rgba(220, 38, 38, .62);
  background: rgba(254, 226, 226, .28);
}

/* ==========================================================
   ÚNICOS AJUSTES RESPONSIVE CUSTOM NECESARIOS
   La estructura NO se modifica aquí: eso lo hace Bootstrap.
   ========================================================== */

@media (max-width: 575.98px) {
  .auth-card {
    border-radius: 1rem !important;
  }

  .form-logo-nombre {
    font-size: 1.5rem;
  }

  .form-titulo {
    font-size: 1.28rem;
  }

  .codigo-celda {
    width: clamp(36px, 12vw, 46px);
    height: clamp(42px, 12vw, 46px);
    max-width: 46px;
    font-size: 1.05rem;
  }

  .divider-text {
    white-space: normal;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================
   EFECTOS VISUALES ORIGINALES ANHAES — RESTAURADOS
   Bootstrap sigue controlando únicamente layout/responsive.
   ========================================================== */

/* ---------- Botón principal: barrido degradado original ---------- */
.btn-principal {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: none;
  color: #ffffff;
  background: linear-gradient(135deg, var(--verde-clinico), var(--azul-marino-medio));
  font-weight: 700;
  cursor: pointer;
  filter: none;
  transition: transform .3s ease;
}

.btn-principal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50px;
  width: 0;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, var(--azul-marino-medio), var(--verde-clinico));
  transform: skewX(45deg);
  transition: width 1.7s ease;
}

.btn-principal:hover:not(:disabled) {
  color: #ffffff;
  filter: none;
  transform: scale(1.02);
}

.btn-principal:hover:not(:disabled)::before {
  width: 250%;
}

.btn-principal:active:not(:disabled) {
  transform: scale(.98);
}

.btn-principal:disabled,
.btn-principal:disabled:hover,
.btn-principal:disabled:active {
  opacity: .62;
  cursor: not-allowed;
  transform: none;
}

.btn-principal:disabled::before,
.btn-principal:disabled:hover::before {
  width: 0;
}

/* ---------- Botón secundario original ---------- */
.btn-secundario {
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.btn-secundario:hover {
  background: var(--celeste-suave);
  border-color: var(--azul-zafiro);
}

.btn-secundario:active {
  transform: scale(.98);
}

/* ---------- Inputs: foco suave original ---------- */
.auth-input {
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-input:focus-within {
  box-shadow:
    0 0 0 3px rgba(2,132,199,.10),
    0 9px 20px -16px rgba(15,43,72,.40);
}

/* ---------- Tarjeta: entrada + esquinas animadas ---------- */
.auth-card-decoration {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  animation: desktopCardEntrada .82s cubic-bezier(.16, 1, .3, 1) both;
}

.auth-card-decoration::before,
.auth-card-decoration::after {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 18%;
  height: 12%;
  opacity: .92;
  transition:
    width .65s cubic-bezier(.16, 1, .3, 1),
    height .65s cubic-bezier(.16, 1, .3, 1),
    opacity .45s ease,
    transform .65s cubic-bezier(.16, 1, .3, 1);
}

.auth-card-decoration::before {
  top: 0;
  right: 0;
  border-radius: 0 18px 0 100%;
  background: linear-gradient(145deg, rgba(5,150,105,.17), rgba(2,132,199,.08));
  animation: desktopCornerTop .9s cubic-bezier(.16, 1, .3, 1) .12s both;
}

.auth-card-decoration::after {
  bottom: 0;
  left: 0;
  border-radius: 0 100% 0 18px;
  background: linear-gradient(325deg, rgba(2,132,199,.12), rgba(5,150,105,.06));
  animation: desktopCornerBottom 1s cubic-bezier(.16, 1, .3, 1) .18s both;
}

.auth-card-decoration:focus-within::before {
  width: 32%;
  height: 19%;
  opacity: .80;
  transform: translate3d(2px, -2px, 0);
}

.auth-card-decoration:focus-within::after {
  width: 29%;
  height: 18%;
  opacity: .74;
  transform: translate3d(-2px, 2px, 0);
}

.auth-card-decoration > * {
  position: relative;
  z-index: 2;
}

.auth-card-decoration .form-logo,
.auth-card-decoration .form-titulo,
.auth-card-decoration .form-subtitulo,
.auth-card-decoration form,
.auth-card-decoration .divider,
.auth-card-decoration .btn-secundario,
.auth-card-decoration .recovery-icono,
.auth-card-decoration .recovery-step,
.auth-card-decoration .recovery-volver {
  animation: desktopContenidoEntrada .52s cubic-bezier(.22,.61,.36,1) both;
}

.auth-card-decoration .form-logo,
.auth-card-decoration .recovery-icono { animation-delay: .16s; }
.auth-card-decoration .recovery-step { animation-delay: .19s; }
.auth-card-decoration .form-titulo { animation-delay: .21s; }
.auth-card-decoration .form-subtitulo { animation-delay: .26s; }
.auth-card-decoration form { animation-delay: .31s; }
.auth-card-decoration .divider { animation-delay: .36s; }
.auth-card-decoration .btn-secundario,
.auth-card-decoration .recovery-volver { animation-delay: .41s; }

/* ---------- Fondo derecho: orbes animados originales ---------- */
.auth-main {
  position: relative;
  isolation: isolate;
}

.auth-main::before,
.auth-main::after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.auth-main::before {
  width: 300px;
  height: 300px;
  top: -135px;
  right: -105px;
  background: radial-gradient(circle, rgba(2,132,199,.11) 0%, rgba(2,132,199,.045) 43%, transparent 72%);
  animation: desktopOrbTop 9s ease-in-out infinite alternate;
}

.auth-main::after {
  width: 330px;
  height: 330px;
  left: -145px;
  bottom: -155px;
  background: radial-gradient(circle, rgba(5,150,105,.10) 0%, rgba(5,150,105,.035) 45%, transparent 72%);
  animation: desktopOrbBottom 10s ease-in-out infinite alternate;
}

.auth-main > * {
  position: relative;
  z-index: 2;
}

.panel-flip-inner {
    transition:
        transform
        .78s
        cubic-bezier(.65, 0, .35, 1);
}

.panel-front .logo,
.panel-front .hero-line,
.panel-front .personas-card,
.panel-front .footer-tagline {
  opacity: 1;
  transform: translate3d(0,0,0);
  filter: blur(0);
  transition-property: opacity, transform, filter;
  transition-duration: .55s, .72s, .55s;
  transition-timing-function: ease, cubic-bezier(.22,.61,.36,1), ease;
  will-change: opacity, transform;
}

.panel-front .logo { transition-delay: .42s; }
.panel-front .hero-line-1 { transition-delay: .52s; }
.panel-front .hero-line-2 { transition-delay: .61s; }
.panel-front .hero-line-3 { transition-delay: .70s; }
.panel-front .personas-card { transition-delay: .80s; }
.panel-front .footer-tagline { transition-delay: .90s; }

.panel-flip.flip-activo .panel-front .logo,
.panel-flip.flip-activo .panel-front .hero-line,
.panel-flip.flip-activo .panel-front .personas-card,
.panel-flip.flip-activo .panel-front .footer-tagline {
  opacity: 0;
  filter: blur(2px);
  transition-delay: 0s;
}

.panel-flip.flip-activo .panel-front .logo { transform: translate3d(-22px,-10px,0); }
.panel-flip.flip-activo .panel-front .hero-line-1 { transform: translate3d(-30px,0,0); }
.panel-flip.flip-activo .panel-front .hero-line-2 { transform: translate3d(26px,0,0); }
.panel-flip.flip-activo .panel-front .hero-line-3 { transform: translate3d(-18px,8px,0); }
.panel-flip.flip-activo .panel-front .personas-card { transform: translate3d(0,24px,0) scale(.97); }
.panel-flip.flip-activo .panel-front .footer-tagline { transform: translate3d(-18px,18px,0); }


/* Entrada inicial del panel frontal */
@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
  .panel-flip:not(.flip-activo) .panel-front .logo {
    animation: pcLogoEntrada .62s cubic-bezier(.22,.61,.36,1) .08s both;
  }
  .panel-flip:not(.flip-activo) .panel-front .hero-line-1 {
    animation: pcLineaIzquierda .68s cubic-bezier(.22,.61,.36,1) .18s both;
  }
  .panel-flip:not(.flip-activo) .panel-front .hero-line-2 {
    animation: pcLineaDerecha .68s cubic-bezier(.22,.61,.36,1) .29s both;
  }
  .panel-flip:not(.flip-activo) .panel-front .hero-line-3 {
    animation: pcLineaIzquierda .68s cubic-bezier(.22,.61,.36,1) .40s both;
  }
  .panel-flip:not(.flip-activo) .panel-front .personas-card {
    animation: pcTarjetaEntrada .66s cubic-bezier(.22,.61,.36,1) .53s both;
  }
  .panel-flip:not(.flip-activo) .panel-front .footer-tagline {
    animation: pcFooterEntrada .60s cubic-bezier(.22,.61,.36,1) .64s both;
  }
}

/* ==========================================================
   CARRUSEL DE FOTOS CON GIRO 3D
   ========================================================== */

.panel-back-slider {
    perspective: 1600px;

    -webkit-perspective:
        1600px;

    transform-style:
        preserve-3d;

    -webkit-transform-style:
        preserve-3d;
}


.panel-back-slide {
    animation:
        panelFotoGiro
        18s
        linear
        infinite;
}


/* Foto 1 */

.panel-back-slide.slide-1 {
    animation-delay: 0s;
}


/* Foto 2 */

.panel-back-slide.slide-2 {
    animation-delay: 6s;
}


/* Foto 3 */

.panel-back-slide.slide-3 {
    animation-delay: 12s;
}


/* ==========================================================
   QUITAR ZOOM / KEN BURNS
   ========================================================== */

.panel-back-slide
.panel-back-image,

.panel-back-slide
.panel-back-bg {

    animation:
        none !important;

    transform:
        none !important;

    -webkit-transform:
        none !important;

    will-change:
        auto;
}


/* ==========================================================
   GIRO ENTRE FOTOGRAFÍAS
   ========================================================== */

@keyframes panelFotoGiro {

    0% {
        opacity: 0;

        transform:
            rotateY(-90deg);
    }


    /* Entrada rápida */
    3% {
        opacity: .55;

        transform:
            rotateY(-35deg);
    }


    6% {
        opacity: 1;

        transform:
            rotateY(0deg);
    }


    /* Mantener la foto quieta */
    27% {
        opacity: 1;

        transform:
            rotateY(0deg);
    }


    /* Salida rápida */
    30% {
        opacity: .55;

        transform:
            rotateY(35deg);
    }


    33.333% {
        opacity: 0;

        transform:
            rotateY(90deg);
    }


    100% {
        opacity: 0;

        transform:
            rotateY(90deg);
    }

}
.panel-back-texto {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease .42s, transform .65s ease .42s;
}


.panel-flip.flip-activo .panel-back-slide,
.panel-flip.flip-activo .panel-back-slide .panel-back-image {
  animation-play-state: running;
}

.panel-flip.flip-activo .panel-back-texto {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Cronómetro morado: pulso original ---------- */
.rate-limit-tiempo svg {
  animation: pulsoCronometro 2s ease-in-out infinite;
}

/* ---------- Keyframes originales ---------- */
@keyframes desktopCardEntrada {
  0% { opacity: 0; transform: translate3d(0,24px,0) scale(.975); filter: blur(4px); }
  70% { opacity: 1; transform: translate3d(0,-2px,0) scale(1.002); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: blur(0); }
}

@keyframes desktopContenidoEntrada {
  from { opacity: 0; transform: translate3d(0,9px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}

@keyframes desktopCornerTop {
  0% { width: 6%; height: 5%; opacity: 0; transform: scale(.75); }
  58% { width: 34%; height: 21%; opacity: .78; transform: scale(1.015); }
  100% { width: 18%; height: 12%; opacity: .92; transform: scale(1); }
}

@keyframes desktopCornerBottom {
  0% { width: 6%; height: 5%; opacity: 0; transform: scale(.75); }
  60% { width: 31%; height: 19%; opacity: .68; transform: scale(1.015); }
  100% { width: 18%; height: 12%; opacity: .92; transform: scale(1); }
}

@keyframes desktopOrbTop {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-16px,17px,0) scale(1.07); }
}

@keyframes desktopOrbBottom {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(18px,-15px,0) scale(1.06); }
}

@keyframes pcLogoEntrada {
  from { opacity: 0; transform: translate3d(-24px,-12px,0) scale(.97); filter: blur(3px); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: blur(0); }
}

@keyframes pcLineaIzquierda {
  from { opacity: 0; transform: translate3d(-42px,8px,0); filter: blur(3px); }
  to { opacity: 1; transform: translate3d(0,0,0); filter: blur(0); }
}

@keyframes pcLineaDerecha {
  from { opacity: 0; transform: translate3d(42px,8px,0); filter: blur(3px); }
  to { opacity: 1; transform: translate3d(0,0,0); filter: blur(0); }
}

@keyframes pcTarjetaEntrada {
  from { opacity: 0; transform: translate3d(0,28px,0) scale(.95); filter: blur(2px); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: blur(0); }
}

@keyframes pcFooterEntrada {
  from { opacity: 0; transform: translate3d(-20px,18px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}


@keyframes pulsoCronometro {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: .75; }
}

/* Mobile: mismos efectos, sin tocar el grid Bootstrap */
@media (max-width: 767.98px) {
  .auth-main {
    background:
      linear-gradient(
        165deg,
        var(--verde-clinico) 0%,
        var(--azul-marino-medio) 31%,
        #22547f 44%,
        var(--fondo-general) 44.2%,
        var(--fondo-general) 100%
      );
  }

  .auth-main::before {
    width: 250px;
    height: 250px;
    top: -92px;
    right: -78px;
    background: radial-gradient(circle, rgba(186,230,253,.22) 0%, rgba(2,132,199,.08) 42%, transparent 72%);
    animation: mobileOrbTop 7s ease-in-out infinite alternate;
  }

  .auth-main::after {
    width: 300px;
    height: 300px;
    left: -120px;
    bottom: -135px;
    background: radial-gradient(circle, rgba(5,150,105,.13) 0%, rgba(2,132,199,.05) 46%, transparent 72%);
    animation: mobileOrbBottom 8s ease-in-out infinite alternate;
  }

  .auth-card-decoration {
    animation: mobileCardEntrada .88s cubic-bezier(.16,1,.3,1) both;
  }

  .auth-card-decoration::before {
    width: 22%;
    height: 14%;
    border-radius: 0 22px 0 100%;
    animation: mobileCornerTop .95s cubic-bezier(.16,1,.3,1) .12s both;
  }

  .auth-card-decoration::after {
    width: 22%;
    height: 14%;
    border-radius: 0 100% 0 22px;
    animation: mobileCornerBottom 1.05s cubic-bezier(.16,1,.3,1) .18s both;
  }

  .auth-card-decoration:focus-within::before {
    width: 38%;
    height: 22%;
    opacity: .82;
  }

  .auth-card-decoration:focus-within::after {
    width: 34%;
    height: 20%;
    opacity: .78;
  }

  .auth-card-decoration .form-logo,
  .auth-card-decoration .form-titulo,
  .auth-card-decoration .form-subtitulo,
  .auth-card-decoration form,
  .auth-card-decoration .divider,
  .auth-card-decoration .btn-secundario,
  .auth-card-decoration .recovery-icono,
  .auth-card-decoration .recovery-step,
  .auth-card-decoration .recovery-volver {
    animation-name: mobileContenidoEntrada;
    animation-duration: .58s;
    animation-timing-function: cubic-bezier(.22,.61,.36,1);
    animation-fill-mode: both;
  }
}

@keyframes mobileCardEntrada {
  0% { opacity: 0; transform: translate3d(0,34px,0) scale(.965); filter: blur(5px); }
  68% { opacity: 1; transform: translate3d(0,-3px,0) scale(1.004); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: blur(0); }
}

@keyframes mobileContenidoEntrada {
  from { opacity: 0; transform: translate3d(0,12px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}

@keyframes mobileCornerTop {
  0% { width: 8%; height: 7%; opacity: 0; transform: scale(.7); }
  55% { width: 42%; height: 24%; opacity: .82; transform: scale(1.02); }
  100% { width: 22%; height: 14%; opacity: 1; transform: scale(1); }
}

@keyframes mobileCornerBottom {
  0% { width: 8%; height: 7%; opacity: 0; transform: scale(.7); }
  58% { width: 36%; height: 22%; opacity: .72; transform: scale(1.02); }
  100% { width: 22%; height: 14%; opacity: 1; transform: scale(1); }
}

@keyframes mobileOrbTop {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-14px,16px,0) scale(1.08); }
}

@keyframes mobileOrbBottom {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(18px,-14px,0) scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .rate-limit-tiempo svg,
  .panel-back-slide,
  .panel-back-slide .panel-back-image,
  .panel-front .logo,
  .panel-front .hero-line,
  .panel-front .personas-card,
  .panel-front .footer-tagline,
  .auth-main::before,
  .auth-main::after,
  .auth-card-decoration,
  .auth-card-decoration::before,
  .auth-card-decoration::after,
  .auth-card-decoration .form-logo,
  .auth-card-decoration .form-titulo,
  .auth-card-decoration .form-subtitulo,
  .auth-card-decoration form,
  .auth-card-decoration .divider,
  .auth-card-decoration .btn-secundario,
  .auth-card-decoration .recovery-icono,
  .auth-card-decoration .recovery-step,
  .auth-card-decoration .recovery-volver {
    animation: none !important;
    transition: none !important;
  }
}
/* ==========================================================
   OCULTAR OJO NATIVO DEL NAVEGADOR
   ========================================================== */

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}


input[type="password"] {
    appearance: none;
    -webkit-appearance: none;
}
/* ==========================================================
   PANEL TABLET 
   ========================================================== */

.panel-back-bg {
    display: none;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media
    (min-width: 768px)
    and (max-width: 1199.98px) {


    #panelFlip.tablet-mode {

        cursor: default;

        touch-action: manipulation;

        -webkit-tap-highlight-color:
            transparent;

    }


    /* ------------------------------------------------------
       CANCELAR COMPLETAMENTE EL FLIP 180° DE PC
       ------------------------------------------------------ */

    #panelFlip.tablet-mode
    .panel-flip-inner,

    #panelFlip.tablet-mode.flip-activo
    .panel-flip-inner {

        transform:
            rotateY(0deg) !important;

        -webkit-transform:
            rotateY(0deg) !important;

        transform-origin:
            center center;

        transition:
            transform
            .30s
            cubic-bezier(
                .45,
                0,
                .55,
                1
            ) !important;

    }


    /* ------------------------------------------------------
       GIRO SOLAMENTE HASTA 90°
       ------------------------------------------------------ */

    #panelFlip.tablet-mode.tablet-giro
    .panel-flip-inner {

        transform:
            perspective(1500px)
            rotateY(90deg)
            scale(.985)
            !important;

        -webkit-transform:
            perspective(1500px)
            rotateY(90deg)
            scale(.985)
            !important;

    }

    #panelFlip.tablet-mode
    .panel-front,

    #panelFlip.tablet-mode
    .panel-back {

        transform:
            none !important;

        -webkit-transform:
            none !important;

        backface-visibility:
            visible !important;

        -webkit-backface-visibility:
            visible !important;

    }


   /* ==========================================================
   TABLET - CARA PRINCIPAL
   ========================================================== */

#panelFlip.tablet-mode
.panel-front {

    z-index: 5;

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(2, 132, 199, .18),
            transparent 28%
        ),

        radial-gradient(
            circle at 15% 78%,
            rgba(5, 150, 105, .12),
            transparent 30%
        ),

        linear-gradient(
            155deg,
            var(--verde-clinico) 6%,
            var(--azul-marino-medio) 56%,
            #1a4f80 100%
        );


    background-color:
        var(--azul-marino-medio);

}

#panelFlip.tablet-mode
.panel-back {

    z-index: 4;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

}

#panelFlip.tablet-mode.tablet-show-images
.panel-front {

    z-index: 4;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

}


#panelFlip.tablet-mode.tablet-show-images
.panel-back {

    z-index: 5;

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}

    /* ======================================================
       FOTOS
       ====================================================== */

    #panelFlip.tablet-mode.tablet-show-images
    .panel-front {

        z-index: 4;

        opacity: 0;

        visibility:
            hidden;

        pointer-events:
            none;

    }


    #panelFlip.tablet-mode.tablet-show-images
    .panel-back {

        z-index: 5;

        opacity: 1;

        visibility:
            visible;

        pointer-events:
            auto;

    }


    #panelFlip.tablet-mode
    .panel-back-slide::before {

        content:
            none !important;

        display:
            none !important;

    }


    #panelFlip.tablet-mode
    .panel-back-bg {

        display:
            block;

        position:
            absolute;

        inset: 0;

        z-index: 0;

        width:
            100%;

        height:
            100%;

        object-fit:
            cover;

        object-position:
            center;

        filter:
            none !important;

        opacity:
            .55;

        transform:
            scale(1.03);

        animation:
            none !important;

    }


    /* ======================================================
       FOTO COMPLETA ENCIMA
       ====================================================== */

    #panelFlip.tablet-mode
    .panel-back-image {

        position:
            absolute;

        inset: 0;

        z-index: 1;

        width:
            100%;

        height:
            100%;

        object-fit:
            contain;

        object-position:
            center;

        transform:
            none !important;

        -webkit-transform:
            none !important;

        animation:
            none !important;

        filter:
            none !important;

    }



    #panelFlip.tablet-mode
    .panel-back-slide {

        animation-play-state:
            running !important;

    }


    #panelFlip.tablet-mode
    .panel-back-overlay {

        z-index: 2;

        background:
            linear-gradient(
                to bottom,
                transparent 38%,
                rgba(15, 43, 72, .06) 58%,
                rgba(15, 43, 72, .70) 100%
            );

    }


    #panelFlip.tablet-mode
    .panel-back-texto {

        z-index: 4;

        opacity: 0;

        transform:
            translateY(16px);

        transition:
            opacity .45s ease,
            transform .45s ease;

    }


    #panelFlip.tablet-mode.tablet-show-images
    .panel-back-texto {

        opacity: 1;

        transform:
            translateY(0);

    }


    #panelFlip.tablet-mode
    .panel-front
    .logo,

    #panelFlip.tablet-mode
    .panel-front
    .hero-line,

    #panelFlip.tablet-mode
    .panel-front
    .personas-card,

    #panelFlip.tablet-mode
    .panel-front
    .footer-tagline {

        filter:
            none !important;

    }

}

#panelFlip.tablet-mode:not(.tablet-show-images)
.panel-back-slider,

#panelFlip.tablet-mode:not(.tablet-show-images)
.panel-back-overlay,

#panelFlip.tablet-mode:not(.tablet-show-images)
.panel-back-texto {

    visibility: hidden !important;

    opacity: 0 !important;

}
@media (min-width: 768px) {

    html,
    body {
        width: 100%;
        height: 100%;
        min-height: 0;
    }


    body.auth-page {
        height: 100vh;
        height: 100dvh;

        min-height: 0;

        overflow: hidden;
    }


    .auth-shell {
        width: 100%;

        height: 100vh;
        height: 100dvh;

        min-height: 0;
    }


    /* PANEL IZQUIERDO */

    .auth-hero,
    .panel-izquierdo {
        height: 100vh;
        height: 100dvh;

        min-height: 0;

        overflow: hidden;
    }


    .panel-flip-inner,
    .panel-front,
    .panel-back {
        height: 100%;

        min-height: 0;
    }


    /* PANEL DERECHO */

    .auth-main,
    .panel-derecho {
        height: 100vh;
        height: 100dvh;

        min-height: 0;

        overflow-x: hidden;

        overflow-y: auto;
    }

}

/* ==========================================================
   AUTH: CONTENER DECORACIONES Y OCULTAR BARRAS DE SCROLL
   El desplazamiento vertical sigue disponible con rueda,
   teclado o gesto cuando el contenido supera la pantalla.
   ========================================================== */
html:has(body.auth-page) {
  overflow-x: hidden;
  scrollbar-width: none;
}

body.auth-page {
  margin: 0;
  scrollbar-width: none;
}

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

body.auth-page .auth-shell {
  max-width: 100%;
  margin-inline: 0;
}

body.auth-page .auth-main,
body.auth-page .panel-derecho {
  min-width: 0;
  overflow-x: hidden;
  scrollbar-width: none;
  /* Recorta los orbes decorativos que sobresalen del panel. */
  contain: paint;
}

body.auth-page .auth-stack {
  min-width: 0;
  width: 100%;
}

html:has(body.auth-page)::-webkit-scrollbar,
body.auth-page::-webkit-scrollbar,
body.auth-page .auth-main::-webkit-scrollbar,
body.auth-page .panel-derecho::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* SweetAlert2 comparte la identidad visual de ANHAES. */
.anhaes-aviso-oculto { display: none !important; }
.anhaes-alerta { font-family: 'DM Sans', 'Inter', sans-serif; border-radius: 1rem; color: #0f2b48; }
.anhaes-alerta-texto { overflow-wrap: anywhere; }
.anhaes-alerta .alerta-rate-limit { text-align: left; margin-bottom: 0 !important; }
.sweetalert-activo #passwordMatchError,
.sweetalert-activo #codigoErrorCliente { display: none !important; }
/* Evita que los seis dígitos desborden la tarjeta en móviles estrechos. */
body.auth-page .codigo-celda { min-width: 0; flex-shrink: 1 !important; }

/* Login: el foco rodea el grupo completo (icono, input y botón). */
#formLogin .auth-input:focus-within > .input-group-text,
#formLogin .auth-input:focus-within > .form-control,
#formLogin .auth-input:focus-within > .btn-ojo {
  border-color: var(--azul-zafiro);
}

/* El campo y el ojo forman una sola superficie, sin separador interno. */
#formLogin .auth-input > .form-control:has(+ .btn-ojo) {
  border-right: 0;
}

#formLogin .auth-input > :first-child {
  border-top-left-radius: .5rem;
  border-bottom-left-radius: .5rem;
}

#formLogin .auth-input > :last-child {
  border-top-right-radius: .5rem;
  border-bottom-right-radius: .5rem;
}

/* El indicador de foco lo dibuja el grupo con :focus-within. */
#formLogin .auth-input > .form-control:focus,
#formLogin .auth-input > .btn-ojo:focus {
  outline: none;
  box-shadow: none;
}

/* Los íconos usan la animación original accesible de SweetAlert2.
   No se ocultan ni sustituyen sus trazos internos. */
/* ANHAES LOGIN — error genérico en correo Y contraseña */
#formLogin .auth-input.login-credenciales-error {
  border-radius: .5rem;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .14) !important;
}
#formLogin .auth-input.login-credenciales-error > .form-control,
#formLogin .auth-input.login-credenciales-error > .input-group-text,
#formLogin .auth-input.login-credenciales-error > .btn-ojo,
#formLogin .auth-input.login-credenciales-error:focus-within > .form-control,
#formLogin .auth-input.login-credenciales-error:focus-within > .input-group-text,
#formLogin .auth-input.login-credenciales-error:focus-within > .btn-ojo {
  border-color: #dc2626 !important;
  background-color: #fff1f2 !important;
}
#formLogin .auth-input.login-credenciales-error > .form-control {
  color: var(--texto-primario);
}
#formLogin .auth-input.login-credenciales-error > .input-group-text,
#formLogin .auth-input.login-credenciales-error > .btn-ojo {
  color: #b91c1c;
}


/* ANHAES · Alertas institucionales de autenticación (mismo styles.css) */
body.auth-page .swal2-container { z-index: 30000; }
.anhaes-auth-alert.swal2-popup {
  width: min(94vw, 440px);
  padding: 0 0 24px;
  border: 1px solid rgba(44, 125, 155, .24);
  border-radius: 22px;
  background: #ffffff;
  color: #12334f;
  box-shadow: 0 24px 70px rgba(5, 24, 45, .28);
  overflow: hidden;
  font-family: 'DM Sans', 'Inter', sans-serif;
}
.anhaes-auth-alert.swal2-popup::before {
  content: 'ANHAES  ·  GESTIÓN CLÍNICA';
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 15px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  background: linear-gradient(115deg, #164669 0%, #116d83 55%, #079779 100%);
}
.anhaes-auth-alert .swal2-icon {
  margin: 22px auto 6px;
  transform: scale(.92);
}
.anhaes-auth-alert .swal2-title,
.anhaes-auth-alert .anhaes-auth-alert-title {
  margin: 9px 20px 0;
  padding: 0;
  color: #12334f;
  font-size: clamp(20px, 4.4vw, 24px);
  line-height: 1.24;
  font-weight: 800;
}
.anhaes-auth-alert .swal2-html-container {
  margin: 12px 26px 0;
  color: #50687b;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.anhaes-auth-alert .swal2-actions { gap: 10px; margin-top: 22px; }
.anhaes-auth-alert .swal2-confirm,
.anhaes-auth-alert .anhaes-auth-confirm {
  min-width: 142px;
  min-height: 42px;
  padding: 10px 22px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(120deg, #078d73, #11778c);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(5, 150, 105, .18);
  transition: transform .18s ease, filter .18s ease;
}
.anhaes-auth-alert .swal2-confirm:hover { filter: brightness(1.07); transform: translateY(-1px); }
.anhaes-auth-alert .swal2-cancel,
.anhaes-auth-alert .anhaes-auth-cancel {
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid #c8dce8;
  border-radius: 12px;
  background: #f1f6fa;
  color: #21445e;
  font-weight: 700;
}
.anhaes-auth-alert .swal2-confirm:focus-visible,
.anhaes-auth-alert .swal2-cancel:focus-visible { outline: 3px solid #5dd4c3; outline-offset: 3px; }
.anhaes-auth-alert .swal2-icon.swal2-success { border-color: #0ba77f; color: #0ba77f; }
.anhaes-auth-alert .swal2-icon.swal2-error { border-color: #e65c66; color: #e65c66; }
.anhaes-auth-alert .swal2-icon.swal2-warning { border-color: #d7a03b; color: #d7a03b; }
.anhaes-auth-alert .swal2-icon.swal2-info { border-color: #1e8cbb; color: #1e8cbb; }
.auth-alert-inline {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 16px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid #b6d9ec;
  background: #eaf7ff;
  color: #143c5d;
}
.auth-alert-inline--error { border-color: #efb7b7; background: #fff0f0; color: #8d1f1f; }
.auth-alert-inline--warning { border-color: #efd39d; background: #fff8e8; color: #755116; }
/* Algunos navegadores/temas usan atributos diferentes. */
:is([data-bs-theme="dark"],[data-theme="dark"],.dark-mode,.theme-dark) .anhaes-auth-alert.swal2-popup {
  background: #10253a;
  color: #e9f6ff;
  border-color: #28506b;
}
:is([data-bs-theme="dark"],[data-theme="dark"],.dark-mode,.theme-dark) .anhaes-auth-alert .swal2-title {
  color: #f3fbff;
}
:is([data-bs-theme="dark"],[data-theme="dark"],.dark-mode,.theme-dark) .anhaes-auth-alert .swal2-html-container {
  color: #b9d0e1;
}
:is([data-bs-theme="dark"],[data-theme="dark"],.dark-mode,.theme-dark) .anhaes-auth-alert .swal2-cancel {
  background: #1b3852;
  color: #effaff;
  border-color: #31536d;
}
@media (prefers-reduced-motion: reduce) {
  .anhaes-auth-alert *, .anhaes-auth-alert *::before, .anhaes-auth-alert *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
