/* Full-page loading overlay with the college's logo (templates/includes/brand_loader.html).
   Colour: --apply-primary on the application forms, otherwise the college's --theme-color-1. */
.brand-loader {
  --brand-loader-color: var(--apply-primary, var(--theme-color-1, #1D3557));
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.4);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.brand-loader.hidden { display: none; }
.brand-loader-card {
  width: 100%;
  max-width: 22rem;
  padding: 1.75rem 2rem;
  border-radius: 1rem;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.45);
}
.brand-loader-logo { display: block; height: 56px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.brand-loader-logo[src=""] { display: none; }
.brand-loader-bar {
  position: relative;
  overflow: hidden;
  height: 4px;
  margin-top: 1.25rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--brand-loader-color) 14%, #ffffff);
}
.brand-loader-bar span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  border-radius: inherit;
  background: var(--brand-loader-color);
  animation: brand-loader-slide 1.2s ease-in-out infinite;
}
@keyframes brand-loader-slide {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}
.brand-loader-text { margin-top: 1rem; font-size: 0.9375rem; font-weight: 600; line-height: 1.45; color: #0f172a; }
.brand-loader-hint { margin-top: 0.25rem; font-size: 0.8125rem; color: #64748b; }

@media (prefers-reduced-motion: reduce) {
  .brand-loader-bar span { width: 100%; animation: none; opacity: 0.6; }
}
