/* ==========================================================================
   SINAPSIS FIREBASE AUTH UI
   Tokens de diseño del ecosistema Sinapsis (Verde Bosque, Marfil, Tipografía)
   ========================================================================== */

/* Botón de Autenticación en el Header */
.sinapsis-auth-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 239, 239, 0.08);
  border: 1px solid rgba(239, 239, 239, 0.2);
  color: #EFEFEF;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.sinapsis-auth-header-btn:hover {
  background: rgba(239, 239, 239, 0.16);
  border-color: rgba(239, 239, 239, 0.35);
  transform: translateY(-1px);
}

/* Badge de Usuario Logueado en Header */
.sinapsis-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(33, 60, 45, 0.85);
  border: 1px solid rgba(130, 180, 140, 0.35);
  padding: 4px 12px 4px 6px;
  border-radius: 24px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.sinapsis-user-badge:hover {
  border-color: rgba(130, 180, 140, 0.7);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.sinapsis-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2E5A44, #1B3526);
  border: 1px solid #75B08A;
  color: #FFF;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.sinapsis-user-name {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #EFEFEF;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Menú Desplegable de Usuario */
.sinapsis-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #1B3024;
  border: 1px solid rgba(130, 180, 140, 0.3);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 8px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(8px);
}

.sinapsis-user-dropdown.open {
  display: flex;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sinapsis-dropdown-header {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(239, 239, 239, 0.1);
  margin-bottom: 4px;
}

.sinapsis-dropdown-email {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: rgba(239, 239, 239, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sinapsis-user-caret {
  font-size: 10px;
  color: rgba(239, 239, 239, 0.6);
  margin-left: 2px;
  transition: transform 0.2s ease, color 0.2s ease;
  user-select: none;
}

.sinapsis-user-badge:hover .sinapsis-user-caret,
.sinapsis-user-dropdown.open ~ .sinapsis-user-caret {
  color: #EFEFEF;
}

.sinapsis-user-badge.guest {
  background: rgba(239, 239, 239, 0.08);
  border-color: rgba(239, 239, 239, 0.2);
}

.sinapsis-user-badge.guest:hover {
  background: rgba(239, 239, 239, 0.15);
  border-color: rgba(239, 239, 239, 0.4);
}

.sinapsis-user-avatar.guest {
  background: rgba(239, 239, 239, 0.15);
  border-color: rgba(239, 239, 239, 0.3);
  color: #EFEFEF;
  font-size: 13px;
}

.sinapsis-dropdown-name {
  font-weight: 600;
  font-size: 13px;
  color: #FFF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sinapsis-dropdown-divider {
  height: 1px;
  background: rgba(239, 239, 239, 0.12);
  margin: 4px 0;
}

.sinapsis-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #EFEFEF;
  font-size: 13px;
  font-family: 'IBM Plex Sans', sans-serif;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
  width: 100%;
}

.sinapsis-dropdown-item:hover {
  background: rgba(239, 239, 239, 0.08);
}

.sinapsis-dropdown-item.login {
  color: #82B48C;
}

.sinapsis-dropdown-item.login:hover {
  background: rgba(130, 180, 140, 0.15);
}

.sinapsis-dropdown-item.logout {
  color: #FFA296;
}

.sinapsis-dropdown-item.logout:hover {
  background: rgba(201, 56, 38, 0.18);
}

/* ==========================================================================
   AUTH GATE (BLOQUEO COMPLETO PREVIO AL ACCESO A LA APP)
   ========================================================================== */
.sinapsis-auth-gate {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(15, 26, 20, 0.88) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999990;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: max(16px, env(safe-area-inset-top, 16px)) max(12px, env(safe-area-inset-right, 12px)) max(16px, env(safe-area-inset-bottom, 16px)) max(12px, env(safe-area-inset-left, 12px));
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sinapsis-auth-gate.unlocked,
html.auth-already-authenticated .sinapsis-auth-gate:not(.auth-gate-forced) {
  opacity: 0 !important;
  pointer-events: none !important;
  display: none !important;
  transform: scale(1.02);
}

html.auth-already-authenticated #app {
  filter: none !important;
  pointer-events: auto !important;
}

/* Capa de Sombras y Viñeta con Transición Progresiva Lenta (0 a 100) */
.sinapsis-auth-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 45%, rgba(43, 78, 58, 0.25) 0%, rgba(33, 60, 45, 0.72) 55%, rgba(18, 36, 26, 0.98) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  animation: sinapsisVignetteReveal 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes sinapsisVignetteReveal {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Burbuja adaptable a cualquier zoom y pantalla de móvil */
.sinapsis-auth-bubble {
  width: 100%;
  max-width: min(420px, 94vw);
  margin: auto;
  background: #F4F2EC;
  color: #0F1A14;
  border-radius: clamp(18px, 4vw, 26px);
  box-shadow: 0 24px 64px rgba(10, 25, 18, 0.5), 0 4px 18px rgba(10, 25, 18, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: clamp(18px, 3.5vw, 30px) clamp(16px, 3.5vw, 26px) clamp(14px, 2.5vw, 20px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  animation: bubbleBloomIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

@keyframes bubbleBloomIn {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(18px);
    filter: blur(3px);
  }
  60% {
    opacity: 0.95;
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}

.sinapsis-auth-bubble-header {
  text-align: center;
  margin-bottom: clamp(10px, 2vh, 16px);
}

.sinapsis-auth-bubble-logo {
  width: clamp(42px, 8vw, 52px);
  height: clamp(42px, 8vw, 52px);
  margin: 0 auto clamp(6px, 1.5vh, 12px);
  border-radius: 14px;
  background: #E8E6DA;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(33, 60, 45, 0.12);
}

.sinapsis-auth-bubble-logo img {
  width: clamp(26px, 5.5vw, 34px);
  height: clamp(26px, 5.5vw, 34px);
  object-fit: contain;
}

.sinapsis-auth-bubble-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(22px, 5vw, 27px);
  font-weight: 600;
  color: #1F3A2C;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}

.sinapsis-auth-bubble-subtitle {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(12px, 3vw, 13.5px);
  color: #556358;
  margin: 0;
  min-height: clamp(32px, 4.5vh, 40px);
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Transición tipográfica secuencial ultra suave (Soft Floating Fade) */
.sinapsis-subtitle-text {
  display: inline-block;
  width: 100%;
  line-height: 1.35;
  color: #4A5C50;
  font-weight: 500;
  text-align: center;
  will-change: transform, opacity;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fase 1: Salida suave hacia arriba (380ms) */
.sinapsis-subtitle-text.is-exiting {
  transform: translateY(-5px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fase 2: Posicionamiento previo instantáneo invisible abajo con micro-deriva */
.sinapsis-subtitle-text.is-entering-prep {
  transition: none !important;
  transform: translateY(5px) !important;
  opacity: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .sinapsis-subtitle-text,
  .sinapsis-subtitle-text.is-exiting,
  .sinapsis-subtitle-text.is-entering-prep {
    transition: opacity 0.25s ease !important;
    transform: none !important;
  }
}

/* Selector / Tabs de Rolado: Iniciar Sesión / Registrarse */
.sinapsis-auth-bubble-tabs {
  display: flex;
  background: #E8E6DA;
  border-radius: 999px;
  padding: 3px;
  margin-bottom: clamp(10px, 2vh, 16px);
}

.sinapsis-auth-bubble-tab {
  flex: 1;
  min-height: 44px;
  border: none;
  background: transparent;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(12.5px, 3.2vw, 13.5px);
  font-weight: 600;
  color: #556358;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sinapsis-auth-bubble-tab.active {
  background: #F4F2EC;
  color: #1F3A2C;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Botón de Google OAuth */
.sinapsis-google-btn {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #D8D6CA;
  border-radius: 14px;
  padding: 10px 16px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(13px, 3.2vw, 14px);
  font-weight: 600;
  color: #1F3A2C;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  margin-bottom: clamp(8px, 1.5vh, 12px);
}

.sinapsis-google-btn:hover {
  background: #FDFDFD;
  border-color: #B5B0A4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.sinapsis-google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Separador "o con correo" */
.sinapsis-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(8px, 1.5vh, 12px);
  color: #7D8B80;
  font-size: 12px;
  font-family: 'IBM Plex Sans', sans-serif;
}

.sinapsis-auth-divider::before,
.sinapsis-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #DCD8CF;
}

.sinapsis-auth-divider::before {
  margin-right: 12px;
}

.sinapsis-auth-divider::after {
  margin-left: 12px;
}

/* Formulario */
.sinapsis-bubble-form {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.5vh, 10px);
}

.sinapsis-bubble-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sinapsis-bubble-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #1F3A2C;
}

.sinapsis-bubble-input {
  background: #FFFFFF;
  border: 1px solid #D8D6CA;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px; /* Evita auto-zoom iOS Safari */
  color: #0F1A14;
  outline: none;
  min-height: 44px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  width: 100%;
}

.sinapsis-bubble-input:focus {
  border-color: #213C2D;
  box-shadow: 0 0 0 3px rgba(33, 60, 45, 0.18);
}

.sinapsis-bubble-submit-btn {
  background: #213C2D;
  border: 1px solid #2F543F;
  color: #F4F2EC;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(13.5px, 3.2vw, 14.5px);
  font-weight: 600;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(10px, 2vh, 16px);
  box-shadow: 0 4px 14px rgba(33, 60, 45, 0.25);
}

.sinapsis-bubble-submit-btn:hover {
  background: #2B4E3A;
  box-shadow: 0 6px 18px rgba(33, 60, 45, 0.35);
  transform: translateY(-1px);
}

.sinapsis-bubble-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.sinapsis-bubble-error {
  background: #FDE8E8;
  border: 1px solid #F8B4B4;
  color: #9B1C1C;
  font-size: 12px;
  font-family: 'IBM Plex Sans', sans-serif;
  padding: 8px 12px;
  border-radius: 8px;
  display: none;
  line-height: 1.4;
}

.sinapsis-bubble-error.visible {
  display: block;
}

.sinapsis-bubble-footer {
  text-align: center;
  margin-top: 14px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12.5px;
  color: #556358;
}

.sinapsis-bubble-toggle-link {
  color: #213C2D;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 4px;
}

/* Aviso Legal Preventivo y Aceptación Vinculante */
.sinapsis-auth-legal-notice {
  text-align: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(33, 60, 45, 0.12);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  line-height: 1.48;
  color: #5C6E62;
}

.sinapsis-legal-link {
  color: #213C2D;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.sinapsis-legal-link:hover {
  color: #2E5A44;
}

/* Modal Visor de Documentos Legales (Términos, Privacidad, LFDA) */
.sinapsis-legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  /* Oculto de verdad al cerrarse: un backdrop-filter a pantalla completa con opacidad 0
     sigue componiéndose en cada cuadro (y en algunos renderizadores deja todo borroso). */
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.sinapsis-legal-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s;
}

.sinapsis-legal-modal-card {
  background: #F4F2EC;
  color: #19241E;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: legalModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes legalModalPop {
  from { transform: scale(0.95) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.sinapsis-legal-modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid #DCD8CF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #EBE8DE;
}

.sinapsis-legal-modal-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: #1F3A2C;
  margin: 0;
}

.sinapsis-legal-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #556358;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.sinapsis-legal-modal-close:hover {
  background: rgba(0,0,0,0.06);
  color: #0F1A14;
}

.sinapsis-legal-modal-tabs {
  display: flex;
  padding: 4px 18px 0;
  background: #EBE8DE;
  gap: 6px;
  border-bottom: 1px solid #DCD8CF;
  overflow-x: auto;
}

.sinapsis-legal-modal-tab {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'IBM Plex Sans', sans-serif;
  color: #556358;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.sinapsis-legal-modal-tab.active {
  color: #1F3A2C;
  border-bottom-color: #213C2D;
}

.sinapsis-legal-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.6;
  color: #2A3830;
  max-height: calc(85vh - 140px);
}

.sinapsis-legal-modal-body h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 17px;
  color: #1F3A2C;
  margin: 16px 0 6px;
}

.sinapsis-legal-modal-body h3:first-child {
  margin-top: 0;
}

.sinapsis-legal-modal-footer {
  padding: 12px 22px;
  border-top: 1px solid #DCD8CF;
  background: #EBE8DE;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sinapsis-legal-modal-external {
  font-size: 12px;
  color: #213C2D;
  text-decoration: underline;
  cursor: pointer;
}

.sinapsis-legal-modal-accept-btn {
  background: #213C2D;
  color: #FFF;
  border: none;
  border-radius: 999px;
  padding: 7px 18px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.sinapsis-legal-modal-accept-btn:hover {
  background: #2B4E3A;
}


.sinapsis-auth-tab-btn {
  background: none;
  border: none;
  padding: 10px 4px;
  color: rgba(239, 239, 239, 0.5);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.sinapsis-auth-tab-btn.active {
  color: #EFEFEF;
}

.sinapsis-auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #75B08A;
  border-radius: 2px 2px 0 0;
}

/* Formulario */
.sinapsis-auth-form {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sinapsis-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sinapsis-form-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(239, 239, 239, 0.7);
  text-transform: uppercase;
}

.sinapsis-form-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(10, 20, 15, 0.45);
  border: 1px solid rgba(130, 180, 140, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  color: #FFF;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sinapsis-form-input:focus {
  border-color: #75B08A;
  box-shadow: 0 0 0 3px rgba(117, 176, 138, 0.15);
}

.sinapsis-form-input::placeholder {
  color: rgba(239, 239, 239, 0.3);
}

/* Mensaje de Error */
.sinapsis-auth-error {
  background: rgba(201, 56, 38, 0.15);
  border: 1px solid rgba(201, 56, 38, 0.4);
  color: #FFB3A8;
  font-size: 12px;
  font-family: 'IBM Plex Sans', sans-serif;
  padding: 8px 12px;
  border-radius: 6px;
  display: none;
  line-height: 1.4;
}

.sinapsis-auth-error.visible {
  display: block;
}

/* Botón Principal de Envío */
.sinapsis-auth-submit-btn {
  background: #2E5A44;
  border: 1px solid #75B08A;
  color: #FFF;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.sinapsis-auth-submit-btn:hover {
  background: #3B7055;
  box-shadow: 0 4px 14px rgba(46, 90, 68, 0.4);
}

.sinapsis-auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sinapsis-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

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

.sinapsis-spinner.active {
  display: inline-block;
}

@media (max-width: 480px) {
  .sinapsis-auth-bubble {
    width: 94% !important;
    max-width: calc(100vw - 20px) !important;
    padding: 24px 18px 16px !important;
    border-radius: 20px !important;
    min-height: auto !important;
  }
}
