/* Design: Echo login.css / Metrics Explorer login, Spark brand colours. */
:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #152b40;
  background: #f6f7f9;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: radial-gradient(ellipse at 10% 90%, #e7ebef, transparent 60%), #f6f7f9;
}
.login-shell {
  width: min(100%, 1000px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
  border: 1px solid #e7ebef;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 80px #0f2b460d;
}

/* Left: hero */
.intro {
  color: #fff;
  background: #102e49;
  min-height: 600px;
  padding: 46px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -1.4px;
  line-height: 1;
}
.brand-icon {
  width: 42px;
  height: 44px;
  background: #24435e;
  border-radius: 12px;
  display: grid;
  place-items: center;
  transform: rotate(-5deg);
  flex-shrink: 0;
}
.brand-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: #b1c2d3;
  font-weight: 600;
  margin-top: 5px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #a55a29;
  margin: 0 0 20px;
}
.intro .eyebrow {
  color: #b1c2d3;
}
.intro-copy {
  margin-top: 65px;
  position: relative;
  z-index: 1;
}
h1 {
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: -2.2px;
  font-weight: 650;
  margin: 0 0 22px;
}
.intro h1 span {
  color: #e78d4e;
}
.intro-copy > p:last-child {
  color: #b4c7d8;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}
.intro-foot {
  margin: auto 0 0;
  font-size: 11px;
  color: #94adc1;
  padding-top: 150px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
}

/* A process running through steps: two done, one waiting for an event. */
.flowline {
  position: absolute;
  right: -30px;
  bottom: 66px;
  width: 430px;
  transform: rotate(-6deg);
}
.flowline path {
  fill: none;
  stroke-linecap: round;
}
.flowline .track {
  stroke: #24435e;
  stroke-width: 12;
}
.flowline .wait {
  stroke: #e99961;
  stroke-width: 4;
  stroke-dasharray: 2 12;
  opacity: 0.9;
}
.flowline .pulse {
  stroke: #e99961;
  stroke-width: 12;
  stroke-dasharray: 372 2000;
}
.flowline .node {
  stroke-width: 5;
}
.flowline .done {
  fill: #f5ac75;
  stroke: #102e49;
}
.flowline .open {
  fill: #102e49;
  stroke: #f5ac75;
  animation: wait 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes wait {
  50% {
    transform: scale(1.18);
  }
}

/* Right: sign-in */
.login-panel {
  padding: 70px 48px;
  align-self: center;
}
h2 {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 0 0 14px;
}
.lead {
  font-size: 14px;
  color: #667587;
  line-height: 1.65;
  margin: 0 0 34px;
}
.login-button {
  width: 100%;
  border-radius: 9px;
  background: #0f2b46;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  text-decoration: none;
}
.login-button:hover {
  background: #1a3a5e;
}
.login-button:focus-visible {
  outline: 3px solid #d86a23;
  outline-offset: 3px;
}
.error {
  font-size: 12px;
  line-height: 1.5;
  color: #a13229;
  margin: 0 0 14px;
}
.session-note {
  color: #718092;
  font-size: 11px;
  line-height: 1.6;
  margin: 24px 0 0;
}

@media (max-width: 700px) {
  body {
    padding: 20px 14px;
  }
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 430px;
  }
  .intro {
    min-height: 0;
    padding: 26px 30px;
  }
  .brand {
    font-size: 30px;
  }
  .intro-copy,
  .intro-foot,
  .flowline {
    display: none;
  }
  .login-panel {
    padding: 36px 30px 40px;
  }
  h2 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flowline .open {
    animation: none;
  }
}
