/* Shared by the initial HTML and React loading states. */
body { margin: 0; }
.app-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 240px;
  padding: 32px 16px;
  color: #f1f5f9;
  font-family: Inter, system-ui, sans-serif;
  text-align: center;
}
.app-loading--screen {
  min-height: 100dvh;
  box-sizing: border-box;
  background: #131824;
}
.app-loading__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
}
.app-loading__mark img { display: block; }
/* Clip the passing highlight to the logo; its size and position stay fixed. */
.app-loading__mark::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .8) 50%, transparent 58%);
  background-size: 300% 100%;
  background-position: 100% 0;
  opacity: 0;
  -webkit-mask: url("brand/ustara.svg") center / contain no-repeat;
  mask: url("brand/ustara.svg") center / contain no-repeat;
}
.app-loading__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #293e5e;
  border-top-color: #60a5fa;
  border-radius: 50%;
}
.app-loading p { margin: 0; font-size: 16px; line-height: 1.5; }
.app-loading small { color: #b2bed0; font-size: 14px; }
.app-loading button {
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #60a5fa;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.app-loading button:focus-visible { outline: 2px solid #93c5fd; outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .app-loading__mark::before { animation: app-loading-shine 3.2s ease-in-out infinite; }
  @keyframes app-loading-shine {
    0% { background-position: 100% 0; opacity: 0; }
    10% { opacity: .85; }
    50% { background-position: 0% 0; opacity: .85; }
    60%, 100% { background-position: 0% 0; opacity: 0; }
  }
  .app-loading__mark::after { animation: app-loading-spinner 1.1s linear infinite; }
  @keyframes app-loading-spinner { to { transform: rotate(360deg); } }
}
