:root {
  --splash-ease: cubic-bezier(.22, 1, .36, 1);
}

html,
body {
  background-color: var(--bg, #f7f9f8);
}

/* Keep the permanent brand optically centered. It is not animated. */
.tutor-brand-icons {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
}

.tutor-brand-icons .tutor-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.tutor-brand-title,
.tutor-title-only {
  position: static !important;
  inset: auto !important;
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  align-items: center !important;
  overflow: visible !important;
  letter-spacing: 0;
  line-height: 1 !important;
  white-space: nowrap;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.tutor-title-only {
  padding-top: 2px;
  color: #15352c;
}

.auth-brand {
  justify-content: center;
  gap: 10px;
}

.auth-brand .tutor-brand-icons,
.auth-brand .tutor-logo {
  width: 52px;
  height: 52px;
}

.auth-brand .tutor-title-only {
  font-size: clamp(22px, 5vw, 28px);
}

/* The only motion left in the product: school mark, then site mark. */
.wt-boot-splash {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #143129;
  background: #fbfdfc;
  opacity: 1;
  transition: opacity 180ms ease-out, visibility 180ms step-end;
}

.wt-boot-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.wt-splash-school,
.wt-splash-tutor {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 12px;
  opacity: 0;
}

.wt-splash-school img {
  display: block;
  object-fit: contain;
}

.wt-splash-school strong {
  color: #087454;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.2;
}

.wt-splash-tutor-lockup {
  display: block;
  width: 176px;
  height: 176px;
  object-fit: contain;
}

.wt-boot-splash.is-running .wt-splash-school {
  animation: wt-splash-school 1800ms var(--splash-ease) both 100ms;
}

.wt-boot-splash.is-running .wt-splash-tutor {
  animation: wt-splash-tutor 600ms var(--splash-ease) both 1750ms;
}

@keyframes wt-splash-school {
  0% { opacity: 0; transform: translateY(10px); }
  18%, 70% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes wt-splash-tutor {
  0% { opacity: 0; transform: translateY(8px) scale(.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .wt-splash-tutor-lockup {
    width: 164px;
    height: 164px;
  }

  .topbar .brand .tutor-brand-title {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    overflow: visible !important;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wt-boot-splash {
    transition-duration: 80ms;
  }

  .wt-boot-splash.is-running .wt-splash-school {
    animation: wt-splash-school-reduced 1900ms linear both;
  }

  .wt-boot-splash.is-running .wt-splash-tutor {
    animation: wt-splash-tutor-reduced 100ms linear both 1900ms;
  }
}

@keyframes wt-splash-school-reduced {
  0%, 90% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes wt-splash-tutor-reduced {
  from { opacity: 0; }
  to { opacity: 1; }
}
