/* The animated Text Agent "Token Stream" logo on the sign-in page (Pages/Shared/_TextAgentLogo.cshtml,
   js/text-agent-logo.js), plus the sign-in page layout that makes it the hero.

   The host follows the operating system with no override (see site.css), so the logo does too: the
   light and dark token sets below are the master's (Context/branding/text-agent/motion/04-token-stream.html),
   keyed on the same prefers-color-scheme query DaisyUI and Tailwind's dark: variant use here.

   Plain CSS rather than Tailwind classes, because site.min.css is a prebuilt file that only has the
   classes somebody last built it with. This file needs no build step. */
.ta-host {
  --ta-slate: #273540;
  --ta-blue: #679dd4;
  --ta-spark: #19b3d3;
  --ta-glow: rgba(103, 157, 212, 0.12);
  position: relative;
  width: 100%;
}
@media (prefers-color-scheme: dark) {
  .ta-host {
    --ta-slate: #ffffff;
    --ta-spark: #7fe4f6;
    --ta-glow: rgba(103, 157, 212, 0.16);
  }
}

.ta-logo { display: block; width: 100%; height: auto; overflow: visible; position: relative; }
.ta-logo .ta-slate { fill: var(--ta-slate); }
.ta-logo .ta-blue  { fill: var(--ta-blue); }
.ta-logo .ta-spark { fill: var(--ta-spark); }
.ta-logo .ta-spark-stroke { fill: none; stroke: var(--ta-spark); }
.ta-logo .ta-spark-stop { stop-color: var(--ta-spark); }
/* same-origin fonts only on this host: a system monospace stands in for the master's IBM Plex Mono */
.ta-logo .ta-scr { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace; font-weight: 500; }

/* hidden before first paint only when the intro will run (the partial's inline script adds the class) */
.ta-will-animate #taMark, .ta-will-animate #taName, .ta-will-animate #taBy { opacity: 0; }
/* the effect layer exists only while the script runs the intro */
.ta-fx { visibility: hidden; pointer-events: none; }

/* ─── The sign-in page layout: the logo is the hero ───────────────────────────
   Narrow: the logo on top, the form under it. From 1024px: the logo left and large, the form right. */
.ta-login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 28px;
  padding: 32px 16px;
  box-sizing: border-box;
}
.ta-login-logo { width: 100%; max-width: 320px; padding-inline: 8px; box-sizing: border-box; }
.ta-login-form { width: 100%; max-width: 28rem; }

/* a short screen (a phone on its side, or a small window): the form comes first, so the logo shrinks
   to a signature and the page starts at the top rather than centring a column taller than itself */
@media (max-width: 1023.98px) and (max-height: 640px) {
  .ta-login { align-content: start; gap: 12px; padding-block: 12px; }
  .ta-login-logo { max-width: 200px; }
  .ta-login-form .card-body { padding: 1rem; }
}

@media (min-width: 1024px) {
  .ta-login {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 72px;
    max-width: 1280px;
    margin: 0 auto;
    padding-inline: 48px;
  }
  .ta-login-logo { max-width: 660px; justify-self: end; padding-inline: 0; }
  .ta-login-form { justify-self: start; }

  /* a soft stage light behind the logo only, the master's radial glow */
  .ta-login-logo .ta-host::before {
    content: "";
    position: absolute;
    inset: -70% -12%;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 55% at 50% 50%, var(--ta-glow), transparent 72%);
  }
}

/* a large desktop: the hero grows with the room rather than sitting in a 1280px column */
@media (min-width: 1600px) {
  .ta-login { max-width: 1680px; column-gap: 96px; }
  .ta-login-logo { max-width: 900px; }
}
