/* Loader — green theme with plane flying animation */
:root {
  --login-green-deep: #1b4332;
  --login-green-dark: #2d6a4f;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 110% 90% at 50% 20%, var(--login-green-dark) 0%, var(--login-green-deep) 100%);
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
  pointer-events: auto;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Hide loader after 5s even if employment-loader.js fails to load (wrong base_url, blocked JS). */
@keyframes pageLoaderAutoHide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
.page-loader {
  animation: pageLoaderAutoHide 0.01s 5s forwards;
}
.page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.page-loader-logo {
  animation: feaLogoPulse 1.4s ease-in-out infinite alternate;
}
@keyframes feaLogoPulse {
  from { transform: translateY(0); opacity: 0.9; }
  to { transform: translateY(-5px); opacity: 1; }
}

/* Plane flying scene */
.fea-plane-scene {
  position: relative;
  width: 280px;
  height: 88px;
  overflow: hidden;
}
.fea-flight-path {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  width: 100%;
  height: 80px;
  pointer-events: none;
}
.fea-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50px;
  animation: feaCloudDrift 5s ease-in-out infinite;
}
.fea-cloud::before,
.fea-cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.fea-cloud-1 {
  width: 36px;
  height: 12px;
  top: 8px;
  left: 12%;
  animation-duration: 6s;
}
.fea-cloud-1::before { width: 18px; height: 18px; top: -8px; left: 4px; }
.fea-cloud-1::after { width: 22px; height: 16px; top: -6px; right: 2px; }
.fea-cloud-2 {
  width: 48px;
  height: 14px;
  top: 52px;
  right: 8%;
  animation-duration: 7.5s;
  animation-delay: -2s;
  opacity: 0.85;
}
.fea-cloud-2::before { width: 20px; height: 20px; top: -10px; left: 6px; }
.fea-cloud-2::after { width: 26px; height: 18px; top: -8px; right: 4px; }
.fea-cloud-3 {
  width: 28px;
  height: 10px;
  top: 28px;
  left: 55%;
  animation-duration: 5.5s;
  animation-delay: -3.5s;
  opacity: 0.7;
}
.fea-cloud-3::before { width: 14px; height: 14px; top: -6px; left: 2px; }
.fea-cloud-3::after { width: 16px; height: 12px; top: -5px; right: 0; }

@keyframes feaCloudDrift {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(12px); opacity: 0.85; }
}

.fea-plane-icon {
  position: absolute;
  font-size: 30px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  animation: feaPlaneFly 2.4s ease-in-out infinite;
  will-change: left, top, transform;
}
@keyframes feaPlaneFly {
  0% {
    left: -12%;
    top: 62%;
    transform: rotate(-18deg) scale(0.85);
    opacity: 0;
  }
  8% { opacity: 1; }
  25% {
    left: 22%;
    top: 38%;
    transform: rotate(-6deg) scale(1);
  }
  50% {
    left: 48%;
    top: 22%;
    transform: rotate(2deg) scale(1.05);
  }
  75% {
    left: 72%;
    top: 30%;
    transform: rotate(8deg) scale(1);
  }
  92% { opacity: 1; }
  100% {
    left: 112%;
    top: 18%;
    transform: rotate(16deg) scale(0.9);
    opacity: 0;
  }
}

.page-loader-text {
  margin: 0;
  font-family: 'Cairo', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  .page-loader-logo,
  .fea-plane-icon,
  .fea-cloud {
    animation: none !important;
  }
  .fea-plane-icon {
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 1;
  }
}
