/* Flutter stores this asset on disk as "Geist%5Bwght%5D.ttf", so % is encoded. */
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #f7f9fc;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 32px 24px;
  overflow: auto;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(0, 165, 219, 0.055), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(22, 172, 169, 0.045), transparent 55%),
    #f7f9fc;
  color: #08305a;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  opacity: 1;
  transition: opacity 220ms ease-out;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-loader__content {
  width: 100%;
  max-width: 360px;
  padding-block: 24px;
}

.app-loader__logo {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.app-loader__title {
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.app-loader__progress {
  width: 160px;
  height: 3px;
  margin: 36px auto 0;
  overflow: hidden;
  border-radius: 3px;
  background: #e0e9f0;
}

.app-loader__progress::after {
  content: "";
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: #00a5db;
  will-change: transform;
  animation: app-loader-progress 1.6s ease-in-out infinite;
}

.app-loader__status {
  min-height: 42px;
  margin: 16px 0 0;
  color: #52677b;
  font-size: 13px;
  line-height: 21px;
  overflow-wrap: anywhere;
}

.app-loader__retry {
  min-height: 44px;
  margin-top: 16px;
  padding: 10px 20px;
  border: 1px solid #ccd9e3;
  border-radius: 8px;
  background: #fff;
  color: #08305a;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.app-loader__retry:hover {
  border-color: #00a5db;
  background: #f0f8fc;
}

.app-loader__retry:focus-visible {
  outline: 2px solid #007da6;
  outline-offset: 4px;
}

.app-loader--paused .app-loader__progress::after {
  animation-play-state: paused;
}

.app-loader--leaving {
  opacity: 0;
  pointer-events: none;
}

@keyframes app-loader-progress {
  from { transform: translate3d(-100%, 0, 0); }
  to { transform: translate3d(200%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .app-loader {
    transition: none;
  }

  .app-loader__progress::after {
    animation: none;
    transform: translateX(50%);
  }
}
