/* =============================================
   Global eSign Loader  —  loader-circle.css
   ============================================= */

/* -----------------------------------------------
   1. Full-screen initial page loader (.loader)
   ----------------------------------------------- */
body > div.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.97);
  display: none;           /* toggled by JS */
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* -----------------------------------------------
   2. Full-page blocking overlay (.pageloader)
   ----------------------------------------------- */
body > div.pageloader {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;           /* toggled by JS */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  cursor: default;
}

.pageloader h5 {
  color: rgba(255, 255, 255, 0.7);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0;
}

/* -----------------------------------------------
   3. Loader wrapper — no card, no shadow
   ----------------------------------------------- */
.esign-loader-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.esign-loader-svg {
  width: 240px;
  height: 120px;
  overflow: visible;
  display: block;
}

/* -----------------------------------------------
   4. Signature draw animation
   ----------------------------------------------- */
.esign-sig-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: esignDraw 3s ease-in-out infinite;
  will-change: stroke-dashoffset, opacity;
}

@keyframes esignDraw {
  0%   { stroke-dashoffset: 100; opacity: 1; }
  68%  { stroke-dashoffset: 0;   opacity: 1; }
  85%  { stroke-dashoffset: 0;   opacity: 1; }
  100% { stroke-dashoffset: 0;   opacity: 0; }
}

/* -----------------------------------------------
   5. Pencil fade — synced with draw
   ----------------------------------------------- */
.esign-pencil {
  animation: esignPencilFade 3s ease-in-out infinite;
  will-change: opacity;
}

@keyframes esignPencilFade {
  0%,  68%  { opacity: 1;   }
  85%        { opacity: 0.6; }
  100%       { opacity: 0;   }
}
