/**
 * The brand panel beside the auth flow.
 *
 * Panel fill against the page ground, a hairline between them, and the flame burning in the middle
 * of it. Below the measure it stops being a column and becomes a strip: the flame goes, the
 * wordmark stays, because on a phone the half-screen of decoration is the first thing that should
 * give up its space.
 */
/*
 * The host, not just the panel inside it.
 *
 * `auth-aside` is the grid item, and a custom element is `display: inline` until something says
 * otherwise — so the panel drew at its own content height and the column stopped halfway down the
 * window with the page ground showing beneath it. Styling only the inner `<aside>` cannot fix
 * that, because the box being laid out by the grid is this one.
 */
auth-aside {
  display: block;
  min-width: 0;
}

.auth-aside {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--light0);
  border-right: 1px solid var(--light);
  min-width: 0;
}

.auth-aside-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.auth-aside-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
 * The mark, at the size the landing header proves works.
 *
 * `brand-flame` resolves its dither grid against the box it is given, so a 16px box at the
 * default 4px pixel is a six-column flame — a smudge rather than a mark. The header draws it at
 * 32px with `pixelsize="1"`, and this box gives the same 20x28 flame back: min(24/100, 32/140)
 * * 0.88 is the header's scale exactly.
 */
.auth-aside-mark brand-flame {
  width: 24px;
  height: 32px;
}

.auth-aside-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-aside-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-aside-stage brand-flame {
  width: min(60%, 190px);
  aspect-ratio: 100 / 140;
  height: auto;
}

.auth-aside-say {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-aside-slogan {
  margin: 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.auth-aside-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}

.auth-aside-note:empty {
  display: none;
}

@media (max-width: 860px) {
  .auth-aside {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-right: none;
    border-bottom: 1px solid var(--light);
    padding: 14px clamp(20px, 4vw, 28px);
  }

  /* The decoration and the second line are what a small screen cannot afford. */
  .auth-aside-stage,
  .auth-aside-slogan {
    display: none;
  }
}
