/* ==========================================================================
   StratiLogger — the unauthenticated pages (sign in, sign up, reset, …).

   THIS IS THE SEDSTRAT LAB THEME, NOT THE APP THEME.
   The sign-in page is the one screen a visitor reaches straight from
   sedstrat-lab.com, so it is dressed like the landing page rather than like
   the workspace: flat colour, one 2 px charcoal outline, soft-rounded corners,
   Poppins for headings and Inter for body. Everything past the sign-in button
   is the app's own Flexy theme (shared/theme/tokens.css); this sheet stops at
   the door.

   The palette is the one sampled off brand/sedstrat_logo.png in the
   sedstrat-lab-site repository — keep the two in step by hand:
     charcoal #1B2123 · green #6EB357 · yellow #FEDC4B · cyan #42C2D9

   The fonts are the same two the landing page loads from Google Fonts, but
   SELF-HOSTED (static/web/fonts, latin subset only, ~60 kB). The field wifi
   this product is built for is exactly where a third-party font request hangs
   the first paint, and a sign-in box should never wait on fonts.gstatic.com.
   ========================================================================== */

@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/poppins-600-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/poppins-700-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
}

/* --- Tokens -------------------------------------------------------------- */

:root {
  --sl-ink:       #1B2123;
  --sl-green:     #6EB357;
  --sl-yellow:    #FEDC4B;
  --sl-cyan:      #42C2D9;
  --sl-green-ink: #3D7B31;   /* the fills are too light for text; these clear 4.5:1 */
  --sl-cyan-ink:  #14707F;
  --sl-amber-ink: #8A6A00;
  --sl-red-ink:   #8B1E1E;

  --sl-paper:     #FFFFFF;
  --sl-ground:    #F2F5EF;
  --sl-body:      #4E585B;
  --sl-muted:     #78848A;
  --sl-hair:      #DCE3DC;

  --sl-line-w:    2px;
  --sl-radius:    14px;
  --sl-radius-sm: 9px;
  --sl-fade:      700ms;

  --sl-font-head: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --sl-font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* --- Page ---------------------------------------------------------------- */

/* `html` and `body` are set explicitly rather than inherited: tokens.css paints
   the app's cool-grey ground, and this page is the one place that ground is
   wrong. Light only — the landing page has no dark variant and a brand page
   should not invent one. */
html { background: var(--sl-paper); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--sl-paper);
  color: var(--sl-body);
  font-family: var(--sl-font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--sl-green-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--sl-ink); }
:focus-visible { outline: 3px solid var(--sl-cyan); outline-offset: 2px; border-radius: 4px; }

/* Two columns from 62rem up: the brand column on the left carries the logo, a
   few lines of copy, and (on the sign-in page) the preview carousel; the form
   sits on the right on plain paper. Below that width everything stacks, form
   first — a phone user came here to sign in, not to watch screenshots. */
.auth {
  display: grid;
  grid-template-areas: "brand" "panel" "show" "foot";
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}
.auth-brand { grid-area: brand; }
.auth-panel { grid-area: panel; }
.auth-show  { grid-area: show; }
.auth-foot  { grid-area: foot; }
.auth > * { min-width: 0; }

.auth-brand, .auth-show, .auth-foot {
  background: var(--sl-ground);
  padding-inline: clamp(1.15rem, 4vw, 2.75rem);
}
.auth-brand { padding-block: clamp(1.5rem, 4vw, 2.75rem) 1.25rem; }
.auth-show  { padding-block: 0 1.5rem; }
.auth-foot  { padding-block: 1rem 1.5rem; }

.auth-panel {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.15rem, 4vw, 2.75rem);
  border-top: var(--sl-line-w) solid var(--sl-ink);
  border-bottom: var(--sl-line-w) solid var(--sl-ink);
}

@media (min-width: 62rem) {
  .auth {
    grid-template-areas:
      "brand panel"
      "show  panel"
      "foot  panel";
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
  }
  .auth-brand { padding-block: clamp(2rem, 4vw, 3rem) 1.5rem; }
  .auth-show  { padding-block: 0 2rem; }
  /* Size the preview so the whole column fits the viewport, on a 1280 × 800
     tablet included: the width follows the height left over after the brand
     block and the footer, never wider than the column. On a short screen the
     three ticks go before the screenshots do, and the budget shrinks with
     them. */
  .auth-show .shots, .auth-show .show-bar { width: clamp(18rem, calc((100vh - 37rem) * 1.6), 100%); margin-inline: auto; }
  @media (max-height: 56rem) {
    .auth-brand .ticks { display: none; }
    .auth-show .shots, .auth-show .show-bar { width: clamp(18rem, calc((100vh - 30rem) * 1.6), 100%); }
  }
  .auth-foot  { align-self: end; }
  .auth-panel {
    border-top: 0;
    border-bottom: 0;
    border-left: var(--sl-line-w) solid var(--sl-ink);
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  }
}

/* --- Brand column -------------------------------------------------------- */

.auth-brand .wordmark {
  display: flex;
  width: fit-content;
  align-items: center;
  white-space: nowrap;
  gap: .7rem;
  margin-bottom: 1.5rem;
  font-family: var(--sl-font-head);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -.02em;
  color: var(--sl-ink);
  text-decoration: none;
}
.auth-brand .wordmark img { width: 3.6rem; height: auto; flex: none; }
.auth-brand .wordmark em { font-style: normal; color: var(--sl-green); }

/* The one recurring label from the landing page: a ringed dot and small caps. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .9rem;
  font-family: var(--sl-font-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sl-ink);
}
.eyebrow::before {
  content: "";
  width: .6rem; height: .6rem;
  border-radius: 50%;
  background: var(--sl-green);
  border: 2px solid var(--sl-ink);
}

.auth-brand h2 {
  margin: 0 0 .7rem;
  font-family: var(--sl-font-head);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--sl-ink);
}
.auth-brand h2 em { font-style: normal; color: var(--sl-green-ink); }
.auth-brand .lede {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.55;
  color: var(--sl-ink);
}

.ticks { list-style: none; padding: 0; margin: 1.1rem 0 0; }
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .4rem;
  font-size: .95rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: .7rem; height: .7rem;
  border-radius: 50%;
  border: 2px solid var(--sl-ink);
  background: var(--sl-green);
}
.ticks li:nth-child(2)::before { background: var(--sl-yellow); }
.ticks li:nth-child(3)::before { background: var(--sl-cyan); }

/* Small green dot used in the tagline, as in "UNDERSTAND · MODEL · INSPIRE". */
.dot {
  display: inline-block;
  width: .38rem; height: .38rem;
  border-radius: 50%;
  background: var(--sl-green);
  margin-inline: .1rem .45rem;
  vertical-align: middle;
}
.auth-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  font-size: .82rem;
  color: var(--sl-muted);
}
.auth-foot p { margin: 0; }
.auth-foot .tag {
  font-family: var(--sl-font-head);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sl-ink);
}

/* --- The preview carousel ------------------------------------------------
   A stack of screenshots that cross-fades in place, lifted from the landing
   page's product carousel. Every file is 16 / 10, so `cover` only ever absorbs
   a rounding pixel. With JavaScript off the first shot is simply what you get. */

.shots {
  position: relative;
  width: 100%;
  margin-inline: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: var(--sl-line-w) solid var(--sl-ink);
  border-radius: var(--sl-radius);
  background: var(--sl-paper);
}
.shots img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  opacity: 0;
  z-index: 1;
  /* Outgoing: hold at full opacity underneath, then snap away once the incoming
     image has finished fading in over the top. No dip to the background. */
  transition: opacity 0s linear var(--sl-fade);
}
.shots img.is-shown {
  opacity: 1;
  z-index: 2;
  transition: opacity var(--sl-fade) ease;
}

.show-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .8rem;
}
.show-bar figcaption {
  flex: 1 1 auto;
  min-width: 0;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--sl-muted);
}
.show-dots {
  display: flex;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: none;
}
.show-dots button {
  width: .8rem; height: .8rem;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--sl-ink);
  background: var(--sl-paper);
  cursor: pointer;
  transition: background .15s ease;
}
.show-dots button:hover { background: var(--sl-yellow); }
.show-dots button[aria-current="true"] { background: var(--sl-green); }

.arrow {
  flex: none;
  width: 2.2rem; height: 2.2rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: var(--sl-line-w) solid var(--sl-ink);
  border-radius: 50%;
  background: var(--sl-paper);
  color: var(--sl-ink);
  cursor: pointer;
  transition: background .15s ease;
}
.arrow:hover { background: var(--sl-green); }
.arrow svg { width: 1rem; height: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .shots img, .shots img.is-shown { transition: none; }
}

/* --- The form panel ------------------------------------------------------ */

.authbox { width: 100%; max-width: 24rem; }

.authbox h1 {
  margin: 0 0 .35rem;
  font-family: var(--sl-font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 1.9rem);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--sl-ink);
}
.authbox .sub { margin: 0 0 1.4rem; font-size: .95rem; color: var(--sl-body); }
.authbox p { max-width: none; }

.authbox label {
  display: block;
  margin: .9rem 0 .3rem;
  font-family: var(--sl-font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--sl-ink);
}
.authbox input[type=text],
.authbox input[type=email],
.authbox input[type=password] {
  width: 100%;
  padding: .7rem .85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--sl-ink);
  background: var(--sl-paper);
  border: var(--sl-line-w) solid var(--sl-ink);
  border-radius: var(--sl-radius-sm);
  transition: box-shadow .15s ease;
}
.authbox input:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--sl-cyan);
}
.authbox input::placeholder { color: var(--sl-muted); }

/* Buttons: the landing page's pill — charcoal outline, green fill for the one
   action that matters. */
.authbox button[type=submit], .authbox .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.3rem;
  padding: .85rem 1.6rem;
  font-family: var(--sl-font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--sl-ink);
  background: var(--sl-green);
  border: var(--sl-line-w) solid var(--sl-ink);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .12s ease;
}
.authbox button[type=submit]:hover, .authbox .btn:hover { background: #7FC268; transform: translateY(-1px); }
.authbox button[type=submit]:active, .authbox .btn:active { transform: none; }
.authbox .btn--line { background: var(--sl-paper); }
.authbox .btn--line:hover { background: var(--sl-ground); }
.authbox .btn--danger { background: var(--sl-paper); color: var(--sl-red-ink); }
.authbox .btn--danger:hover { background: #FDEAEA; }

.authbox .alt { margin-top: 1.1rem; font-size: .9rem; text-align: center; }
.authbox .row {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: .9rem;
  font-size: .9rem;
}
.authbox .row input { margin: 0; accent-color: var(--sl-green-ink); width: 1rem; height: 1rem; }
.authbox .row label { margin: 0; font: inherit; letter-spacing: 0; color: var(--sl-body); }

.hint { margin: .3rem 0 0; font-size: .82rem; color: var(--sl-muted); }
.hint.bad { color: var(--sl-red-ink); font-weight: 600; }

.flash {
  margin: 0 0 1rem;
  padding: .65rem .85rem;
  font-size: .9rem;
  border: var(--sl-line-w) solid var(--sl-ink);
  border-radius: var(--sl-radius-sm);
}
.flash.error { background: #FDEAEA; color: var(--sl-red-ink); }
.flash.info  { background: var(--sl-ground); color: var(--sl-green-ink); }

/* The honeypot (auth/_challenge.html). Off-screen rather than `display:none`:
   a bot that reads computed styles skips the latter, and the point of the
   field is that it looks fillable to everything except a person.
   `position:absolute` keeps it out of the layout so the form is the same
   height with and without it. */
.authbox .hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* Password field + its Show button. The button sits inside the field's box
   rather than beside it so the input keeps the full width every other field
   has. `padding-right` reserves the space it covers. */
.authbox .pw { position: relative; display: flex; align-items: center; }
.authbox .pw input { padding-right: 4.2rem; }
.authbox .pw__toggle {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  width: auto; margin: 0; padding: .3rem .6rem;
  font-family: var(--sl-font-head); font-size: .75rem; font-weight: 600;
  background: transparent; color: var(--sl-body);
  border: 0; border-radius: 999px; cursor: pointer;
}
.authbox .pw__toggle:hover { background: var(--sl-ground); color: var(--sl-ink); }

/* account.html reuses the sign-in shell for a signed-in page and carries a
   small table of device tokens. */
.authbox table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.authbox th, .authbox td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--sl-hair); }
.authbox th { font-family: var(--sl-font-head); font-size: .78rem; letter-spacing: .04em; color: var(--sl-ink); }
.authbox hr { border: 0; border-top: var(--sl-line-w) solid var(--sl-ink); margin: 1.5rem 0; }

@media print {
  .auth-show, .arrow, .show-dots { display: none; }
}
