/* Partilha a apresentação inicial com a espera de autenticação sem carregar outro tema. */
.carregamento-marca {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  background: #fbfcfa;
  color: #234b47;
  font-family: var(--app-font-family, system-ui, sans-serif);
  text-align: center;
}

.carregamento-marca::backdrop {
  background: #fbfcfa;
}

.carregamento-marca__conteudo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 100%;
}

.carregamento-marca__simbolo {
  display: block;
  width: min(240px, 68vw);
  height: auto;
  aspect-ratio: 1;
}

.carregamento-marca__nome {
  margin-top: -14px;
  font-size: 1.8125rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.04em;
  opacity: 0;
}

/* Sincroniza a escrita do nome com a chegada do símbolo, em vez de começar durante a transferência. */
.apresentacao-iniciada .carregamento-marca__nome {
  animation: escrever-nome-hercul 2.2s both;
}

.carregamento-marca__mensagem {
  margin: 28px 0 0;
  max-width: 30ch;
  font-size: 1rem;
  line-height: 1.5;
}

.carregamento-marca__recuperar {
  margin-top: 24px;
  padding: 12px 20px;
  border: 0;
  border-radius: 24px;
  background: #183b37;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

/* Revela o nome depois da escrita do símbolo, mantendo a posição final sem repetição. */
@keyframes escrever-nome-hercul {
  0%,
  76% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  100% {
    clip-path: inset(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carregamento-marca__nome,
  .apresentacao-iniciada .carregamento-marca__nome {
    animation: none;
    opacity: 1;
  }
}

@media (forced-colors: active) {
  .carregamento-marca {
    background: Canvas;
    color: CanvasText;
  }
}
