/*
 * Sign-in, password, invite and error pages: a brand panel beside the form on
 * wide screens, a short band above it on phones. Loaded after portal.css,
 * whose tokens it uses.
 */

.auth {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: 100vh;
}

/* Deep teal with a warm light rising from the bottom, and the mark in cream. */
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  overflow: hidden;
  padding: var(--space-7) clamp(var(--space-6), 5vw, 72px);
  background:
    radial-gradient(120% 70% at 50% 115%, rgba(232, 204, 160, 0.42) 0%, rgba(232, 204, 160, 0) 60%),
    linear-gradient(165deg, var(--teal-dark) 0%, #3D7774 45%, #5E8F82 100%);
  color: var(--white);
}

.auth-brand .wordmark {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin: 0;
  color: var(--cream);
}

.auth-brand .wordmark:hover {
  color: var(--white);
}

.auth-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  margin-bottom: 12vh;
}

.auth-eyebrow {
  margin: 0 0 var(--space-4);
  color: rgba(253, 250, 245, 0.72);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: var(--leading-small);
  text-transform: uppercase;
}

.auth-tagline {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4.4vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
  word-spacing: normal;
}

.auth-lede {
  max-width: 34ch;
  margin: 0;
  color: rgba(253, 250, 245, 0.8);
  font-size: 1.0625rem;
  line-height: var(--leading-body);
}

.auth-arcs {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 150%;
  max-width: 900px;
  transform: translateX(-50%);
  fill: none;
  stroke: rgba(253, 250, 245, 0.12);
  stroke-width: 1;
  pointer-events: none;
}

.auth-main {
  display: grid;
  place-items: center;
  padding: var(--space-7) var(--space-5);
}

.auth-column {
  width: 100%;
  max-width: 440px;
}

.auth-column .flash-stack {
  margin-bottom: var(--space-4);
}

@media (max-width: 900px) {
  .auth {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .auth-brand {
    gap: var(--space-4);
    padding: var(--space-5) var(--space-4) var(--space-6);
  }

  .auth-brand-copy {
    margin: 0;
  }

  .auth-eyebrow {
    margin-bottom: var(--space-2);
  }

  .auth-tagline {
    margin: 0;
    font-size: 2.25rem;
  }

  .auth-lede,
  .auth-arcs {
    display: none;
  }

  .auth-main {
    align-items: start;
    padding: var(--space-5) var(--space-4) var(--space-7);
  }
}
