/* ===== Fondo con imagen (ajusta la ruta si usas otra) ===== */
body.bg-light{
  background: url("/static/img/boston_background.png") no-repeat center center fixed;
  background-size: cover;
  margin: 0; padding: 0;
  overflow-x: hidden;
}
html, body {
  height: 100%;
  -webkit-tap-highlight-color: transparent;
  font-family: 'SST', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
}

:root{
  --bs-body-font-family: 'SST', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* Asegura inputs/botones con la misma fuente */
input, button, select, textarea {
  font-family: inherit;
}

/* ===== Shell / columnas ===== */
.auth-shell{
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 24px);
}
.left-col{
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
}

/* ===== Card “glass” (form) ===== */
.auth-card{
  width: 100%;
  max-width: clamp(320px, 92vw, 760px);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 28px rgba(0,0,0,.15);
  max-height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.auth-logo{ max-width: 150px; width: 55%; height: auto; }

/* ===== Panel derecho (solo desktop) ===== */
.promo-pane{
  min-height: 100%;
  padding: clamp(24px, 4vw, 48px);
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
}
@media (min-width: 992px){ .promo-pane{ display: flex; } }

/* Overlay “glass + gradient” SOLO en la derecha */
.promo-pane::before{
  content:"";
  position: absolute;
  inset: clamp(12px, 2vw, 28px);
  border-radius: 18px;
  background: linear-gradient(135deg, rgb(0 0 0 / 80%), rgb(0 0 0 / 80%));
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  box-shadow: 0 18px 48px rgba(0,0,0,.25);
  z-index: 0;
}
.promo-inner{
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: #e9f3fb;
}
.promo-title{
  font-family:Arial, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-weight:700; letter-spacing:-.2px;
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  color:#fff;
  margin: .5rem 0 1rem 0;
  text-wrap: balance;
}
.promo-text{
  font-size: clamp(.95rem, 1.05vw, 1.08rem);
  line-height: 1.55;
  color:#d8e7ef;
  margin-bottom: 1.25rem;
}

/* Badge grande (Innovación en salud) */
span.badge.promo-badges{
  border-radius: 999px;
  padding: 1rem 1.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  background: rgba(31,122,140,.28);
  color: #bfeaf5;
  border: 1px solid rgba(31,122,140,.45);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
span.badge.promo-badges i{
  font-size: 1.6rem;
  line-height: 1;
}

/* Imagen decorativa derecha */
.promo-hero{
  width: 100%; max-width: 520px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  opacity: .95;
}

/* ===== Inputs con efecto IA ===== */
.input-group .form-control,
.input-group .input-group-text{
  height: 52px;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.85);
  transition: all 0.3s ease;
}

.form-label{
  font-family: 'SST', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
}

/* Icono */
.input-group-text{
  background: rgba(240,242,245,0.7);
  border-right: none;
  color: #7e8a9a;
  transition: all 0.3s ease;
}

/* Glow IA al focus */
.input-group .form-control:focus{
  background: rgba(255,255,255,0.95);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(0,198,255,0.6),
              0 0 24px rgba(0,198,255,0.3);
  animation: borderGlow 2s linear infinite;
}

/* Icono también brilla */
.input-group:focus-within .input-group-text{
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  box-shadow: 0 0 8px rgba(0,198,255,0.6);
}

/* Animación gradiente del borde */
@keyframes borderGlow {
  0%   { box-shadow: 0 0 8px #00c6ff, 0 0 16px #0072ff; }
  50%  { box-shadow: 0 0 14px #00e1ff, 0 0 28px #0088ff; }
  100% { box-shadow: 0 0 8px #00c6ff, 0 0 16px #0072ff; }
}

/* Errores (rojo IA) */
.input-group .form-control.is-invalid {
  border-color: transparent;
  box-shadow: 0 0 10px rgba(255,0,72,0.6),
              0 0 20px rgba(255,0,72,0.4);
}

.text-danger.small{ word-break: break-word; }

/* ===== Botón ===== */
.boton_general{
  border-radius: 12px;
  width: 100%;
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}
.boton_general:hover{ box-shadow: 0 8px 18px rgba(25,135,84,.22); filter: brightness(1.02); }
.boton_general:active{ transform: translateY(1px) scale(.995); }
.boton_general:focus{ box-shadow: 0 0 0 .2rem rgba(25,135,84,.25); }

/* ===== Grid interno del formulario ===== */
.form-grid .col-12{ margin-bottom: 1rem; }
@media (min-width: 768px){ .form-grid{ row-gap: .75rem; } }

/* ===== Quitar outline azul en móvil ===== */
input:focus, button:focus, select:focus, textarea:focus{
  outline: none !important;
  box-shadow: none !important;
}

#bg-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;   /* queda detrás del contenido */
  pointer-events: none; /* no bloquea clicks */
}


/* ===== Transiciones de página (salida/entrada) ===== */
.auth-shell {
  will-change: opacity, transform;
}

/* Estado inicial al entrar */
.page-enter-start .auth-shell {
  opacity: 0;
  transform: translateY(10px) scale(.995);
}

/* Estado final al entrar */
.page-enter-active .auth-shell {
  opacity: 1;
  transform: none;
  transition: opacity .38s ease, transform .38s ease;
}

/* Estado al salir (antes de navegar) */
.page-exit-active .auth-shell {
  opacity: 0;
  transform: translateY(10px) scale(.995);
  transition: opacity .28s ease, transform .28s ease;
}

/* Variante “slide” horizontal (opcional) */
.page-enter-start.slide .auth-shell { transform: translateX(18px); }
.page-exit-active.slide .auth-shell { transform: translateX(-18px); }

/* Respeta usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .page-enter-active .auth-shell,
  .page-exit-active .auth-shell {
    transition: none !important;
    transform: none !important;
  }
  .page-enter-start .auth-shell { opacity: 0; }
}

/* ===== Marca móvil: Value Scan App con efecto ===== */
.vs-mobile-brand {
  display: flex;
  justify-content: center;  /* Centra horizontalmente */
  align-items: center;      /* Centra verticalmente dentro del contenedor */
  gap: .5rem;
  padding: .25rem 0;
  text-align: center;
}

.vs-mobile-icon {
  font-size: 1.3rem;
  color: #0086BF;
  opacity: .9;
  animation: vsFloat 3s ease-in-out infinite;
}

.vs-mobile-name {
  font-weight: 800;
  font-size: clamp(1.15rem, 5vw, 1.4rem);
  background: linear-gradient(90deg, #0086BF, #00C2FF, #0086BF);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: vsGrad 5s ease infinite;
  letter-spacing: .3px;
}

/* Efecto de gradiente animado */
@keyframes vsGrad {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Efecto de flotación sutil en el icono */
@keyframes vsFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

/* Ocultar logo en mobile */
@media (max-width: 991.98px) {
  .auth-logo {
    display: none !important;
  }
}

/* ===== Brand Header Section ===== */
.brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* espacio entre logos y divisor */
  padding: 10px;
  border-radius: 8px;
}

/* Logo Beyond Care */
.brand-left .brand-logo {
  height: 30px;
  width: auto;
}

/* Divisor vertical */
.brand-divider {
  width: 1px;
  background-color: #666666;
  height: 50px;
  opacity: 0.8;
}

/* Logo Boston Scientific */
.brand-right .brand-logo-boston {
  height: 50px;
  width: auto;
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 768px) {
  .brand-header {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  .brand-divider {
    display: none;
  }
}

/* Contenedor principal logos desktop */
.brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

/* Logo Beyond Care */
.brand-logo {
    max-height: 60px;
    height: auto;
}

/* Logo Boston Scientific */
.brand-logo-boston {
    max-height: 60px;
    height: auto;
}

/* Divider entre logos */
.brand-divider {
    width: 2px;
    height: 50px;
    background-color: rgba(255,255,255,0.3);
}

/* Logo versión móvil */
.brand-logo-mobile {
    max-height: 120px;
    width: auto;
    display: inline-block;
}


