body {
  margin: 0;
}

html {
  overflow: hidden scroll;
}

#loading-bg {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--initial-loader-bg, #fff);
  block-size: 100%;
  gap: 1rem 0;
  inline-size: 100%;
}

/* A assinatura em texto que substituiu o logo da Materialize. Fonte de sistema
   de propósito: isto aparece **antes** de o app e a fonte carregarem, e esperar
   pela Inter deixaria a tela vazia por mais tempo — que é o oposto do que uma
   tela de carregamento serve para fazer. */
.loading-logo {
  color: var(--initial-loader-color, #1F6A7D);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.loading {
  position: relative;
  box-sizing: border-box;
  border: 3px solid transparent;
  border-radius: 50%;
  block-size: 55px;
  inline-size: 55px;
}

.loading .effect-1,
.loading .effect-2,
.loading .effect-3 {
  position: absolute;
  box-sizing: border-box;
  border: 3px solid transparent;
  border-radius: 50%;
  block-size: 100%;
  border-inline-start: 3px solid var(--initial-loader-color, #eee);
  inline-size: 100%;
}

.loading .effect-1 {
  animation: rotate 1s ease infinite;
}

.loading .effect-2 {
  animation: rotate-opacity 1s ease infinite 0.1s;
}

.loading .effect-3 {
  animation: rotate-opacity 1s ease infinite 0.2s;
}

.loading .effects {
  transition: all 0.3s ease;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(1turn);
  }
}

@keyframes rotate-opacity {
  0% {
    opacity: 0.1;
    transform: rotate(0deg);
  }

  100% {
    opacity: 1;
    transform: rotate(1turn);
  }
}

/* Quem pede menos movimento não recebe o giro (WCAG 2.2, docs/07.5). O
   indicador continua visível — o que some é a animação, não a informação. */
@media (prefers-reduced-motion: reduce) {
  .loading .effect-1,
  .loading .effect-2,
  .loading .effect-3 {
    animation: none;
    opacity: 0.6;
  }
}
