body.redirect-body.page-exit {
  opacity: 0;
}

/* Subtle pattern overlay */
.bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url("/src/Branding/Shariah Pattern.png");
  background-repeat: repeat;
  background-size: 300px;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

.redirect-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

/* Circular loader outer */
.loader-container {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 32px;
}

.gradient-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--color-gcib-gold) 0%,
    var(--color-cypress) 50%,
    var(--color-gcib-gold) 100%
  );
  animation: spin 1.4s linear infinite;
}

.logo-inner {
  position: absolute;
  inset: 4px; /* thickness of the border */
  background-color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08);
}

.loader-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  animation: pulse 2.4s ease-in-out infinite;
}

/* Text styling & animations */
.redirect-title {
  font-size: 24px;
  color: var(--color-cypress-dark);
  margin: 0 0 12px 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.1s;
}

/* Flashing dots */
.dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-gcib-gold);
  animation: dotFlash 1.2s infinite ease-in-out;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

.redirect-subtitle {
  font-size: 14px;
  color: var(--color-cypress);
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(10px);
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.25s;
}

.backup-link-container {
  margin-top: 40px;
  font-size: 12px;
  color: var(--color-cypress);
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.8s;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.backup-link {
  color: var(--color-gcib-gold-dark);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.backup-link:hover {
  color: var(--color-cypress-dark);
}

/* Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 0.6;
  }
}

@keyframes dotFlash {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
