@font-face {
  font-family: 'Lekton';
  src: url('font/Lekton-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --loader-bg: #ffffff;
  --loader-text: #39394f;
}

html {
  color-scheme: light dark;
}

html,
body {
  background: var(--loader-bg);
}

@media (prefers-color-scheme: dark) {
  :root {
    --loader-bg: #000000;
    --loader-text: #ffffff;
  }
}

#loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--loader-bg);
  z-index: 9999;
}

#loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#loading-logo-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

#loading-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--loader-text) 22%, transparent);
  border-top-color: var(--loader-text);
  animation: loading-spin 0.8s linear infinite;
}

#loading-logo {
  width: 72px;
  height: 72px;
}

#loading-title {
  margin-top: 16px;
  color: var(--loader-text);
  font-family: 'Lekton', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

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

.auth-message-primary,
.auth-message-secondary {
  color: var(--loader-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.auth-message-primary {
  margin: 12px 0 0;
}

.auth-message-secondary {
  margin: 0;
}

#sw-update-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  transform: none;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 8px 8px;
  border-radius: 12px;
  background: var(--loader-text);
  color: var(--loader-bg);
  font-family: 'Lekton', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 20px;
  z-index: 10000;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

#sw-update-toast.hidden {
  display: none;
}

#sw-update-toast-btn {
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  background: #39394f;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
