/* The animated Forum EO "Circle" logo on the sign-in page (Pages/Shared/_ForumEoLogo.cshtml,
   js/forumeo-logo.js), plus the sign-in page layout that makes it the hero.

   Two palettes, chosen by the same signal as the page: site.css builds daisyUI's dark theme with
   prefersdark: true, so the page follows `prefers-color-scheme`, and the dark tokens below follow it too.
   They are the master's (Context/branding/Logos/motion/01-circle.html). The two must stay on one
   signal: a logo on the other scheme from its page is navy type on a near-black canvas, or white type
   on a light one.

   Written as plain CSS rather than Tailwind classes because site.min.css is a prebuilt file that only
   has the classes somebody last built it with. */
.fl-stage {
  --fl-ground: #f3f7fc;
  --fl-glow: oklch(0.76 0.08 230 / 0.16);
  --fl-c1: #114084;
  --fl-c2: #3466aa;
  --fl-c3: #82b7dc;
  --fl-on1: #ffffff;
  --fl-on2: #ffffff;
  --fl-on3: #0e3570;
  --fl-table: #ffffff;
  --fl-table-edge: #edf3f9;
  --fl-ring: rgba(52, 102, 170, 0.42);
  --fl-seat: rgba(52, 102, 170, 0.30);
  --fl-pool: rgba(17, 64, 132, 0.16);
  --fl-contact: rgba(17, 64, 132, 0.36);
  --fl-ripple: #3466aa;
  --fl-piece: #3466aa;
  --fl-piece-glow: rgba(130, 183, 220, 0.85);
  --fl-halo: #82b7dc;
  --fl-halo-glow: rgba(130, 183, 220, 0.75);
  --fl-av-shadow: rgba(17, 64, 132, 0.34);
  --fl-ghost: rgba(52, 102, 170, 0.085);
  --fl-ghost-dot: #3466aa;
  --fl-tag: #64748b;
  --fl-tag-dot: #82b7dc;
  --fl-shock: #82b7dc;

  /* the camera looks at a 3D rig; everything past the stage edge is clipped. The stage is taller than
     the lockup so the table has room while the camera looks down on it. */
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 520;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding-inline: 4%;
  box-sizing: border-box;
  background: radial-gradient(ellipse 55% 60% at 50% 46%, var(--fl-glow), transparent 72%);
  /* the table's shadow reaches past the stage while the camera looks down on it; fade the clip rather
     than draw a hard line across the page. The lockup sits in the middle half, clear of both fades. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}
/* the dark palette, on the page's own signal (see the note at the top) */
@media (prefers-color-scheme: dark) {
  .fl-stage {
    --fl-ground: oklch(0.16 0.03 240);
    --fl-glow: oklch(0.32 0.08 240 / 0.50);
    --fl-c1: #ffffff;
    --fl-c2: #b8d3f0;
    --fl-c3: #82b7dc;
    --fl-on1: #0f2a52;
    --fl-on2: #0f2a52;
    --fl-on3: #0b2347;
    --fl-table: oklch(0.225 0.038 240);
    --fl-table-edge: oklch(0.19 0.034 240);
    --fl-ring: rgba(130, 183, 220, 0.52);
    --fl-seat: rgba(130, 183, 220, 0.40);
    --fl-pool: rgba(0, 0, 0, 0.55);
    --fl-contact: rgba(0, 0, 0, 0.55);
    --fl-ripple: #82b7dc;
    --fl-piece: #ffffff;
    --fl-piece-glow: rgba(130, 183, 220, 0.90);
    --fl-halo: #b8d3f0;
    --fl-halo-glow: rgba(130, 183, 220, 0.80);
    --fl-av-shadow: rgba(0, 0, 0, 0.55);
    --fl-ghost: rgba(130, 183, 220, 0.13);
    --fl-ghost-dot: #b8d3f0;
    --fl-tag: #8fa3bb;
    --fl-tag-dot: #82b7dc;
    --fl-shock: #b8d3f0;
  }
}
.fl-viewport { width: 100%; perspective: 1450px; perspective-origin: 50% 50%; }
.fl-rig { position: relative; width: 100%; aspect-ratio: 1080 / 427.4; transform-style: preserve-3d; }
.fl-zoom { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 50%; }
.fl-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
#flFloor { transform: translateZ(-36px); }
#flTable { transform: translateZ(-3px); }    /* a hair below the logo, so flattened members sort between them */
/* while the camera is tilted or zoomed, the SVG layers are drawn at 2x and scaled down (Chrome rasters 3D layers at 1x) */
.fl-ss .fl-zoom > .fl-layer { width: 200%; height: 200%; transform: scale(.5); transform-origin: 0 0; }
.fl-ss .fl-zoom > #flFloor { transform: translateZ(-36px) scale(.5); }
.fl-ss .fl-zoom > #flTable { transform: translateZ(-3px) scale(.5); }
/* the plane is built at twice its size and scaled down, so members stay crisp while the camera is in close */
.fl-plane {
  position: absolute; left: 0; top: 0; width: 2160px; height: 854.8px;
  transform-origin: 0 0; transform-style: preserve-3d; pointer-events: none;
}
.fl-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }
.fl-deco { visibility: hidden; }
.fl-live .fl-deco { visibility: visible; }
/* set in <head> by js/forumeo-logo-boot.js only when the intro will run; a failsafe removes it */
html.fl-will-animate #flLogo { visibility: hidden; }

/* ---- the logo (the finished frame) */
.fl-c1 { fill: var(--fl-c1); }
.fl-c2 { fill: var(--fl-c2); }
.fl-c3 { fill: var(--fl-c3); }
.fl-tagline { fill: var(--fl-tag); font: 500 19.5px Geist, system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.06em; }
.fl-tagline .fl-dot { fill: var(--fl-tag-dot); }

/* ---- the table */
.fl-pool-a { stop-color: var(--fl-pool); }
.fl-pool-b { stop-color: var(--fl-pool); stop-opacity: 0; }
.fl-table-a { stop-color: var(--fl-table); }
.fl-table-b { stop-color: var(--fl-table-edge); }
.fl-contact-a { stop-color: var(--fl-contact); }
.fl-contact-b { stop-color: var(--fl-contact); stop-opacity: 0; }
.fl-glow-a { stop-color: var(--fl-piece-glow); }
.fl-glow-b { stop-color: var(--fl-piece-glow); stop-opacity: 0; }
.fl-trail-a { stop-color: var(--fl-piece-glow); stop-opacity: 0; }
.fl-trail-b { stop-color: var(--fl-piece); stop-opacity: 0.95; }
#flRing { fill: var(--fl-c3); stroke: var(--fl-ring); stroke-width: 2.2; stroke-linejoin: round; }
.fl-seatmark { fill: var(--fl-seat); }
.fl-ripple { fill: none; stroke: var(--fl-ripple); }
.fl-shock { fill: none; stroke: var(--fl-shock); }
.fl-piece-core { fill: var(--fl-piece); }
.fl-ghost-line { fill: none; stroke: var(--fl-ghost); stroke-width: 1.2; }
.fl-ghost-dot { fill: var(--fl-ghost-dot); }

/* ---- members (billboards that stand on the table and face the camera) */
.fl-seat { position: absolute; transform-origin: 50% 100%; }
.fl-av {
  position: absolute; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  font: 600 38px/1 Geist, system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -0.01em;
  box-shadow: 0 0 0 6px var(--fl-ground), 0 24px 36px -18px var(--fl-av-shadow);
}
.fl-av.fl-c1 { background: var(--fl-c1); color: var(--fl-on1); }
.fl-av.fl-c2 { background: var(--fl-c2); color: var(--fl-on2); }
.fl-av.fl-c3 { background: var(--fl-c3); color: var(--fl-on3); }
.fl-av b { font-weight: 600; position: relative; }
.fl-av .fl-glyph { width: 100%; height: 100%; display: block; fill: currentColor; opacity: .92; }
.fl-av .fl-lit { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.6), rgba(255,255,255,.2) 62%, rgba(255,255,255,.08)); opacity: 0; }
.fl-av .fl-sky { position: absolute; inset: 0; background: var(--fl-c3); opacity: 0; }
.fl-halo {
  position: absolute; border-radius: 50%;
  border: 4px solid var(--fl-halo); box-shadow: 0 0 36px var(--fl-halo-glow);
  opacity: 0;
}

/* ---- voices (capsules) */
.fl-cap { position: absolute; border-radius: 9px; }
.fl-cap.fl-s1 { background: var(--fl-c1); }
.fl-cap.fl-s2 { background: var(--fl-c2); }
.fl-cap.fl-s3 { background: var(--fl-c3); }
.fl-cap i { position: absolute; inset: 0; border-radius: inherit; opacity: 0; }
.fl-cap.fl-l1 i { background: var(--fl-c1); }
.fl-cap.fl-l2 i { background: var(--fl-c2); }

/* ─── 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.
   The stage carries room above and below the lockup for the table; on a narrow screen a negative margin
   (a percentage of the width, like the stage) gives some of it back so the form sits close under the mark. */
.fl-login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 24px 16px;
  box-sizing: border-box;
}
.fl-login-logo { width: 100%; max-width: 440px; }
.fl-login-logo .fl-stage { margin-block: -5% -3%; }
.fl-login-form { width: 100%; max-width: 28rem; }
/* the tagline is ~6px tall on a narrow screen: noise, not information */
.fl-login .fl-tagline { display: none; }

/* 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) {
  .fl-login { align-content: start; padding-block: 8px; }
  .fl-login-logo { max-width: 220px; }
  .fl-login-form .card-body { padding: 1rem; }
}

@media (min-width: 1024px) {
  .fl-login {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 56px;
    max-width: 1280px;
    margin: 0 auto;
    padding-inline: 48px;
  }
  .fl-login-logo { max-width: 720px; justify-self: end; }
  .fl-login-logo .fl-stage { margin-block: 0; aspect-ratio: 1080 / 660; }
  .fl-login-form { justify-self: start; }
  .fl-login .fl-tagline { display: inline; }
}
