body {
  margin: 0;
}

html {
  overflow-x: hidden;
  overflow-y: 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%;
  color: var(--initial-loader-text, #3d4458);

  /* Fonte do sistema: o tema (e as suas fontes) ainda não carregou nesta tela. */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  gap: 1rem 0;
  inline-size: 100%;
}

#loading-bg p {
  margin: 0;
  letter-spacing: 0.02em;
}

/* Barra de progresso do arranque, com o aspeto da VProgressLinear do Vuexy. */
.boot-progress {
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--initial-loader-color, #245bff) 16%, transparent);
  block-size: 6px;
  inline-size: min(240px, 60vw);
}

.boot-progress__bar {
  border-radius: inherit;
  background: var(--initial-loader-color, #245bff);
  block-size: 100%;
  inline-size: 0;
  transition: inline-size 0.3s ease;
}

.boot-progress--error .boot-progress__bar {
  background: #e5484d;
}

.boot-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-inline-size: min(560px, 90vw);
  text-align: center;
}

.boot-error[hidden] {
  display: none;
}

.boot-error__detail {
  font-size: 0.8125rem;
  opacity: 0.8;
  word-break: break-all;
}

.boot-error button {
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: 6px;
  background: var(--initial-loader-color, #245bff);
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.boot-error button:focus-visible {
  outline: 2px solid var(--initial-loader-color, #245bff);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .boot-progress__bar {
    transition: none;
  }
}

.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);
  }
}
