/* Auth page loading screen — matches sansara.site homepage loader */
#ssara-auth-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #070b1a;
  transition: opacity 0.7s ease;
}
#ssara-auth-loader.is-fading {
  opacity: 0;
  pointer-events: none;
}
#ssara-auth-loader .al-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 48px 48px;
  color: #fff;
}
#ssara-auth-loader .al-glow {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 9999px;
  background: rgba(34, 211, 238, 0.1);
  filter: blur(48px);
}
#ssara-auth-loader .al-emblem {
  position: relative;
  width: 13rem;
  height: 13rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
#ssara-auth-loader .al-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 1px dashed rgba(34, 211, 238, 0.25);
  animation: al-spin 14s linear infinite;
}
#ssara-auth-loader .al-ring-mid {
  position: absolute;
  inset: 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(34, 211, 238, 0.1);
  border-top-color: rgba(34, 211, 238, 0.7);
  animation: al-spin 6s linear infinite;
}
#ssara-auth-loader .al-dots {
  position: absolute;
  inset: 0;
  animation: al-spin 9s linear infinite;
}
#ssara-auth-loader .al-dot {
  position: absolute;
  border-radius: 9999px;
}
#ssara-auth-loader .al-dot-1 {
  left: 50%;
  top: 0;
  width: 0.5rem;
  height: 0.5rem;
  transform: translateX(-50%);
  background: #22d3ee;
  box-shadow: 0 0 10px 2px rgba(34, 211, 238, 0.6);
}
#ssara-auth-loader .al-dot-2 {
  bottom: 1.5rem;
  left: 1rem;
  width: 0.375rem;
  height: 0.375rem;
  background: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 8px 2px rgba(34, 211, 238, 0.5);
}
#ssara-auth-loader .al-dot-3 {
  right: 0.75rem;
  top: 33%;
  width: 0.375rem;
  height: 0.375rem;
  background: #34d399;
  box-shadow: 0 0 8px 2px rgba(52, 211, 153, 0.5);
}
#ssara-auth-loader .al-chip {
  position: relative;
  width: 6rem;
  height: 6rem;
  border-radius: 1.5rem;
  background: #22d3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px -4px rgba(34, 211, 238, 0.5);
  color: #070b1a;
}
#ssara-auth-loader .al-chip svg {
  width: 2.5rem;
  height: 2.5rem;
}
#ssara-auth-loader .al-info {
  position: relative;
  margin-top: 3rem;
  width: 16rem;
}
#ssara-auth-loader .al-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
#ssara-auth-loader .al-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #22d3ee;
}
#ssara-auth-loader .al-status {
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#ssara-auth-loader .al-pct {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f1f5f9;
}
#ssara-auth-loader .al-bar {
  margin-top: 0.75rem;
  height: 2px;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.2);
}
#ssara-auth-loader .al-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
  transition: width 0.15s ease-out;
}
#ssara-auth-loader .al-meta {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.6);
}
#ssara-auth-loader .al-meta-ok {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
#ssara-auth-loader .al-meta-ok i {
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: #34d399;
  display: inline-block;
}
@keyframes al-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  #ssara-auth-loader .al-ring-outer,
  #ssara-auth-loader .al-ring-mid,
  #ssara-auth-loader .al-dots {
    animation: none !important;
  }
}
