/* Loaded before Angular. The current tenant confirms this branding after its
   context is loaded; only the main page loader uses the large wordmark. */
html[data-portal-brand="barbon"] #portal-startup {
  color: #f8f6f3;
  background: linear-gradient(110deg, #1c1b19 0%, #33302d 55%, #4b4743 100%);
}
html[data-portal-brand="barbon"] :is(#portal-startup, .portal-page-loader) .portal-brand-loader {
  display: block !important;
  position: relative;
  width: min(28rem, 75vw);
  height: 5rem;
  margin: 0 auto 1rem;
}
html[data-portal-brand="barbon"] .portal-brand-loader::before,
html[data-portal-brand="barbon"] .portal-brand-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: url("/img/logo-barbon-light.svg") no-repeat center / contain;
  mask: url("/img/logo-barbon-light.svg") no-repeat center / contain;
  background: #8c6e57;
}
html[data-portal-brand="barbon"] .portal-brand-loader::after {
  background: #e18c4f;
  animation: barbon-logo-fill 2.2s ease-in-out infinite;
}
html[data-portal-brand="barbon"] #portal-startup .portal-startup-content > svg,
html[data-portal-brand="barbon"] .portal-page-loader .spinner-border {
  display: none;
}
html[data-portal-brand="barbon"] #portal-startup[data-failed] .portal-brand-loader::after {
  animation: none;
}
html[data-portal-brand="barbon"] #portal-startup button {
  color: #181715;
  background: #e18c4f;
  border-color: #e18c4f;
  border-radius: 1.5rem;
}
@keyframes barbon-logo-fill {
  0%, 10% { clip-path: inset(0 100% 0 0); }
  75%, 100% { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-portal-brand="barbon"] .portal-brand-loader::after { animation: none; }
}
