/* The empty app root is the only state before React mounts. Keep it neutral
   across login, private workspaces, and public pages. */
body {
  margin: 0;
}

#root:empty {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  background: #f8f5f7;
}

#root:empty::before {
  width: 2.5rem;
  height: 2.5rem;
  border: 0.25rem solid #e5d9eb;
  border-top-color: #5f2688;
  border-radius: 50%;
  animation: app-boot-spin 800ms linear infinite;
  content: '';
}

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

@media (prefers-reduced-motion: reduce) {
  #root:empty::before {
    animation: none;
  }
}
