/* Moienapp illustrations: Europe skyline panorama + Moie (see webapp-art.js).
   Loaded on the app, login/signup and the public site. */
.eu-pano {
  --pano-sky: #cdeeff;
  --pano-cloud: #ffffff;
  --pano-sun: #ffd45c;
  --pano-hill: #b9e4c4;
  --pano-ground: #8ed29f;
  --pano-names: #163a22;
  --pano-win: #fff3c4;
  --pano-stars: 0;
  position: relative;
  background: var(--pano-sky);
  overflow: hidden;
}
.eu-pano svg {
  display: block;
  width: 100%;
  height: auto;
}
.eu-pano .a-cloud {
  fill: var(--pano-cloud);
}
.eu-pano .a-sun {
  fill: var(--pano-sun);
}
.eu-pano .a-hill {
  fill: var(--pano-hill);
}
.eu-pano .a-ground {
  fill: var(--pano-ground);
}
.eu-pano .a-win,
.eu-pano .a-lamp {
  fill: var(--pano-win);
}
.eu-pano .a-lamp {
  fill: #ffd45c;
}
.eu-pano .a-stars {
  fill: #fff;
  opacity: var(--pano-stars);
}
.eu-pano .a-focus {
  transform-box: fill-box;
}
.eu-pano-names {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  padding: 10px 8px 12px;
  background: var(--pano-ground);
  color: var(--pano-names);
  font: 700 12.5px/1.2 Inter, system-ui, sans-serif;
  text-align: center;
}
.eu-pano-names .on {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  text-decoration-color: #ef3340;
}

/* gentle motion: clouds drift, windmill turns */
@media (prefers-reduced-motion: no-preference) {
  .eu-pano .a-drift {
    animation: pano-drift 28s ease-in-out infinite alternate;
  }
  .eu-pano .a-drift.slow {
    animation-duration: 40s;
  }
  .eu-pano .a-blades {
    transform-origin: 70px 108px;
    animation: pano-spin 14s linear infinite;
  }
  .moie {
    animation: moie-bob 3.2s ease-in-out infinite;
    transform-origin: 50% 100%;
  }
}
@keyframes pano-drift {
  to {
    transform: translateX(60px);
  }
}
@keyframes pano-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes moie-bob {
  50% {
    transform: translateY(-4px) rotate(-1.5deg);
  }
}

/* night: the dark theme turns the sky to night and lights the windows */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eu-pano {
    --pano-sky: #15233d;
    --pano-cloud: #2a3a58;
    --pano-sun: #f4f1de;
    --pano-hill: #1f3a33;
    --pano-ground: #2a5a42;
    --pano-names: #d8f0df;
    --pano-win: #ffd45c;
    --pano-stars: 0.9;
  }
}
:root[data-theme="dark"] .eu-pano {
  --pano-sky: #15233d;
  --pano-cloud: #2a3a58;
  --pano-sun: #f4f1de;
  --pano-hill: #1f3a33;
  --pano-ground: #2a5a42;
  --pano-names: #d8f0df;
  --pano-win: #ffd45c;
  --pano-stars: 0.9;
}

.moie {
  display: block;
  flex: none;
}

/* ---------- login / signup and onboarding side panels ---------- */
.has-pano {
  position: relative;
  overflow: hidden;
  background: #cdeeff !important;
  padding-bottom: 0 !important;
}
.has-pano > .art-ring,
.has-pano > .ring1,
.has-pano > .ring2,
.has-pano > .flags {
  display: none !important;
}
.has-pano > .eu-pano {
  margin: auto calc(-1 * clamp(28px, 5vw, 70px)) 0;
  background: transparent;
}
.ob-art.has-pano > .eu-pano {
  margin-left: -48px;
  margin-right: -48px;
}
.side-moie {
  position: absolute;
  right: clamp(20px, 6vw, 80px);
  top: 34%;
  z-index: 1;
}
/* The sign-in, sign-up, welcome and onboarding art panels always show the
   daytime sky with dark text, whatever the app theme; only the form side
   follows dark mode. Light tokens are set on the panel so its text uses them. */
.has-pano {
  --ink: #101828;
  --ink-2: #344054;
  --muted: #475467;
  color: #101828;
  color-scheme: light;
}
:root:not([data-theme]) .has-pano > .eu-pano,
:root[data-theme] .has-pano > .eu-pano {
  --pano-sky: #cdeeff;
  --pano-cloud: #ffffff;
  --pano-sun: #ffd45c;
  --pano-hill: #b9e4c4;
  --pano-ground: #8ed29f;
  --pano-names: #163a22;
  --pano-win: #fff3c4;
  --pano-stars: 0;
}

@media (max-width: 900px) {
  .side-moie {
    display: none;
  }
  .has-pano > .eu-pano {
    max-height: 150px;
  }
  .eu-pano-names {
    display: none;
  }
}

/* ---------- public homepage ---------- */
#home .hero.has-pano {
  background-color: transparent !important;
  padding-bottom: 0 !important;
}
.hero-pano {
  margin-top: 40px;
  border-top: 2px solid #1f2a44;
}
