:root {
  color-scheme: light;
  --boot-background: #f8fafc;
  --boot-foreground: #2e3554;
  --boot-muted: #667085;
  --boot-ring: rgba(46, 53, 84, 0.14);
  --boot-blue: #36a9e1;
  --boot-green: #49a343;
}

html,
body {
  min-height: 100%;
}

body.sandesk {
  margin: 0;
  background: var(--boot-background);
}

app-root {
  display: block;
  min-height: 100vh;
}

.app-boot {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--boot-background) 100%);
  color: var(--boot-foreground);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-boot__content {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  width: min(100%, 22rem);
  text-align: center;
}

.app-boot__logo {
  width: min(15rem, 72vw);
  height: auto;
}

.app-boot__indicator {
  position: relative;
  width: 3rem;
  height: 3rem;
}

.app-boot__indicator::before,
.app-boot__indicator::after {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  content: "";
}

.app-boot__indicator::before {
  border: 0.25rem solid var(--boot-ring);
}

.app-boot__indicator::after {
  border: 0.25rem solid transparent;
  border-top-color: var(--boot-blue);
  border-right-color: var(--boot-green);
  animation: app-boot-spin 0.9s linear infinite;
}

.app-boot__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.app-boot__message {
  margin: -0.75rem 0 0;
  color: var(--boot-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.app-boot__progress {
  overflow: hidden;
  width: 100%;
  height: 0.25rem;
  border-radius: 999px;
  background: var(--boot-ring);
}

.app-boot__progress::before {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--boot-blue), var(--boot-green));
  content: "";
  animation: app-boot-progress 1.4s ease-in-out infinite;
}

.app-boot [lang="de"] {
  display: none;
}

html[data-boot-locale="de"] .app-boot [lang="en"] {
  display: none;
}

html[data-boot-locale="de"] .app-boot [lang="de"] {
  display: inline;
}

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

@keyframes app-boot-progress {
  0% {
    transform: translateX(-115%);
  }

  55%,
  100% {
    transform: translateX(250%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-boot__indicator::after,
  .app-boot__progress::before {
    animation: none;
  }

  .app-boot__progress::before {
    transform: translateX(70%);
  }
}
