/* ==================================================
   TELA DE ABERTURA DO PWA
================================================== */

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;

  color: #ffffff;
  background:
    radial-gradient(
      circle at center,
      rgba(249, 115, 22, 0.16),
      transparent 42%
    ),
    #0f1b2d;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 300ms ease,
    visibility 300ms ease;
}

/* Mostra somente quando o sistema é aberto como aplicativo. */
html.show-app-splash .app-splash {
  display: flex;
}

html.show-app-splash body {
  overflow: hidden;
}

.app-splash.is-closing {
  opacity: 0;
  visibility: hidden;
}

.app-splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;

  text-align: center;
}

.app-splash-logo {
  width: 136px;
  height: 136px;

  display: block;
  object-fit: cover;

  border: 3px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;

  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.34),
    0 0 40px rgba(249, 115, 22, 0.18);
}

.app-splash-title {
  margin: 0;

  color: #ffffff;

  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.app-splash-description {
  margin: -10px 0 0;

  color: rgba(255, 255, 255, 0.7);

  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.app-splash-loader {
  width: 38px;
  height: 38px;

  margin-top: 10px;

  border: 4px solid rgba(255, 255, 255, 0.14);
  border-top-color: #f97316;
  border-radius: 50%;

  animation: app-splash-spin 800ms linear infinite;
}

@keyframes app-splash-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .app-splash-logo {
    width: 120px;
    height: 120px;
    border-radius: 26px;
  }

  .app-splash-title {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-splash,
  .app-splash-loader {
    transition: none;
    animation-duration: 1600ms;
  }
}
