/* Shown by index.html until the Angular app starts: the AktyvKidz logo with a soft ring, in the brand colours. */
.app-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 100vh;
  margin: 0;
  padding: 1.5rem;
  background: #f5f8f7;
  color: #4e6466;
  font-family:
    'Readex Pro',
    system-ui,
    -apple-system,
    'Segoe UI',
    Tahoma,
    sans-serif;
  text-align: center;
}

.app-loading__mark {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}

.app-loading__logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(11, 94, 91, 0.25);
  animation: app-loading-pulse 1.6s ease-in-out infinite;
}

.app-loading__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(11, 94, 91, 0.15);
  border-top-color: #ff6a3d;
  animation: app-loading-spin 1s linear infinite;
}

.app-loading__text {
  margin: 0;
  font-size: 0.95rem;
}

.app-loading__error {
  max-width: 26rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.app-loading__error p {
  margin: 0.25rem 0;
}

.app-loading__error button {
  margin-top: 0.75rem;
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: #0b5e5b;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

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

@keyframes app-loading-pulse {
  50% {
    transform: scale(0.94);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-loading__logo,
  .app-loading__ring {
    animation: none;
  }
}
