html {
  font-size: 13px;
  font-weight: 400;
  font-family: Roboto, Inter, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.page-loading {
  margin: 0;
  height: 100%;
  overflow: hidden;
  transition: none !important;
}

.splash-screen {
  display: none;
}

.page-loading .splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  font-family: Roboto, Inter, Helvetica, sans-serif;
  background: #f5f7fb;
}

.splash-screen__brand-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-screen__loader {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background: transparent;
}

.splash-screen__logo {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
}

.splash-screen__logo--dark {
  display: none;
}

.splash-screen__progress-shell {
  position: absolute;
  inset: -8px;
  width: auto;
  height: auto;
  margin: 0;
}

.splash-screen__progress-track,
.splash-screen__progress-indicator {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.splash-screen__progress-track {
  border: 3px solid rgba(37, 99, 235, 0.14);
}

.splash-screen__progress-indicator {
  border: 3px solid transparent;
  border-top-color: #2563eb;
  border-right-color: #4f46e5;
  animation: material-spin 0.95s linear infinite;
}

html[data-bs-theme='dark'] .page-loading .splash-screen {
  background: #111318;
}

html[data-bs-theme='dark'] .splash-screen__logo--light {
  display: none;
}

html[data-bs-theme='dark'] .splash-screen__logo--dark {
  display: block;
}

html[data-bs-theme='dark'] .splash-screen__progress-track {
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-bs-theme='dark'] .splash-screen__progress-indicator {
  border-top-color: #60a5fa;
  border-right-color: #818cf8;
}

@keyframes material-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .page-loading .splash-screen {
    padding: 18px;
  }

  .splash-screen__loader {
    width: 92px;
    height: 92px;
  }
}
