@keyframes app-preloader-spin {
  to { transform: rotate(360deg); }
}

.app-preloader {
  position: fixed;
  inset: 0;
  background: rgba(245, 249, 246, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.app-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-preloader-card {
  width: min(340px, 92vw);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 18px 16px 16px 16px;
  box-shadow: 0 18px 45px rgba(0, 53, 167, 0.12);
  text-align: center;
}

.app-preloader-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px auto;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #0035a7;
  background: rgba(0, 53, 167, 0.06);
}

.app-preloader-icon::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 3px solid rgba(0, 53, 167, 0.18);
  border-top-color: rgba(0, 53, 167, 0.7);
  animation: app-preloader-spin 0.95s linear infinite;
}

.app-preloader-icon svg {
  width: 28px;
  height: 28px;
}

.app-preloader-title {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.app-preloader-subtitle {
  font-size: 0.92rem;
  color: #6b7280;
}

/* Login success popup (like your screenshot) */
@keyframes login-success-pop {
  0%   { transform: translateY(8px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.login-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.login-success-card {
  width: min(380px, 94vw);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.25);
  padding: 22px 18px 18px 18px;
  text-align: center;
  animation: login-success-pop 0.18s ease-out both;
}

.login-success-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 10px auto;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.10);
  color: #22c55e;
}

.login-success-icon svg {
  width: 36px;
  height: 36px;
}

.login-success-title {
  font-weight: 800;
  font-size: 1.55rem;
  color: #111827;
  margin-top: 6px;
  margin-bottom: 6px;
}

.login-success-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
}