/* Street Banker /login — one console over one picture.

   The door used to be two pale aluminum racks on a black void with no
   photograph. Now the band in the backline owns the left of the screen
   with one statement over it, and the sign-in is a single black console
   on the right: design system v1 straight - the warm near-black ground,
   ivory copy, gold for labels, rules and the one button. Nothing here is
   a texture tile or a screw; the material is the type and the picture.

   Everything is tokens or rgb(); the 12px floor holds everywhere. */

:root {
  --lsr-ground: var(--sb-ground);
  --lsr-raised: var(--sb-surface-1);
  --lsr-ink: var(--sb-ink);
  --lsr-muted: var(--sb-ink-2);
  --lsr-faint: var(--sb-ink-3);
  --lsr-gold: var(--sb-gold);
  --lsr-gold-lit: var(--sb-gold-bright);
  --lsr-gold-deep: var(--sb-gold-deep);
  --lsr-line: rgb(201 168 106 / 0.24);
  --lsr-field: rgb(242 238 230 / 0.22);
  --lsr-led: rgb(237 173 34);
}

* { box-sizing: border-box; }

body.lsr {
  margin: 0;
  min-height: 100vh;
  background: var(--lsr-ground);
  color: var(--lsr-ink);
  font-family: var(--sb-text);
  -webkit-font-smoothing: antialiased;
}

.lsr-page {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  min-height: 100vh;
}
@media (max-width: 860px) {
  .lsr-page { grid-template-columns: 1fr; }
}

/* --- the picture ------------------------------------------------------ */
.lsr-photo {
  position: relative;
  overflow: hidden;
  background: var(--lsr-ground);
  min-height: 100vh;
}
@media (max-width: 860px) {
  .lsr-photo { min-height: min(46vh, 420px); }
}
.lsr-photo picture, .lsr-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 30%;
  display: block;
}
/* The veil: darker toward the console so the seam reads as one frame,
   and darker at the foot so the statement sits on quiet ground. */
.lsr-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(11 10 8 / 0.12), rgb(11 10 8 / 0.5) 70%, var(--lsr-ground) 100%),
    linear-gradient(0deg, rgb(11 10 8 / 0.88), transparent 58%);
}
@media (max-width: 860px) {
  .lsr-veil { background: linear-gradient(0deg, var(--lsr-ground), rgb(11 10 8 / 0.22) 62%); }
}
.lsr-over {
  position: absolute;
  left: clamp(22px, 4.5vw, 64px);
  right: clamp(22px, 4.5vw, 64px);
  bottom: clamp(22px, 4.5vw, 56px);
}
.lsr-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lsr-gold);
  font-variation-settings: "wdth" 108;
}
.lsr-state {
  margin: 14px 0 0;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 112;
  color: var(--lsr-ink);
}
.lsr-state span, .lsr-state em { display: block; }
.lsr-state em { font-style: normal; color: var(--lsr-gold-lit); }
.lsr-over-rule {
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 18px;
  background: var(--lsr-gold);
  transform-origin: left center;
}
.lsr-proof {
  margin: 16px 0 0;
  font-family: var(--sb-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lsr-muted);
}

/* --- the console ------------------------------------------------------ */
.lsr-console {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 4.5vw, 64px) clamp(22px, 4.5vw, 72px);
  border-left: 1px solid var(--lsr-line);
  background: var(--lsr-ground);
}
@media (max-width: 860px) {
  .lsr-console { border-left: 0; border-top: 1px solid var(--lsr-line); padding-top: 28px; }
}
.lsr-console-inner { width: 100%; max-width: 470px; }

.lsr-brand { display: inline-block; }
.lsr-brand img { width: 150px; height: auto; display: block; }

.lsr-title {
  margin: 34px 0 0;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 118;
}
.lsr-support {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--lsr-muted);
  max-width: 40ch;
}

/* --- the form --------------------------------------------------------- */
.lsr-form { margin-top: 26px; }

.lsr-field + .lsr-field { margin-top: 20px; }
.lsr-field label,
.lsr-mix-col h3 {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lsr-gold);
}
.lsr-field input,
.lsr-demo-row input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--lsr-field);
  border-radius: var(--sb-r-control);
  background: rgb(0 0 0 / 0.45);
  color: var(--lsr-ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
/* Under 16px iOS Safari zooms the viewport on focus and never zooms back. */
@media (pointer: coarse) {
  .lsr-field input, .lsr-demo-row input { font-size: 16px; }
}
.lsr-field input::placeholder,
.lsr-demo-row input::placeholder { color: var(--lsr-faint); }
.lsr-field input:focus-visible,
.lsr-demo-row input:focus-visible {
  outline: none;
  border-color: var(--lsr-gold);
  box-shadow: 0 0 0 1px var(--lsr-gold);
}

.lsr-pw { position: relative; }
.lsr-pw input { padding-right: 48px; }
.lsr-pw-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--sb-r-control);
  background: transparent;
  color: var(--lsr-muted);
  cursor: pointer;
}
.lsr-pw-toggle:hover, .lsr-pw-toggle[aria-pressed="true"] { color: var(--lsr-gold-lit); }
.lsr-pw-toggle:focus-visible { outline: 2px solid var(--lsr-gold); }
.lsr-pw-toggle svg { width: 18px; height: 18px; }

.lsr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--lsr-muted);
}
.lsr-remember { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: var(--lsr-muted); }
.lsr-remember input { accent-color: var(--lsr-gold); width: 15px; height: 15px; margin: 0; }
.lsr-remember input:focus-visible { outline: 2px solid var(--lsr-gold); }

.lsr-link {
  display: inline-block;
  padding: 8px 2px;
  margin: -8px -2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lsr-gold-lit);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(232 185 80 / 0.45);
}
.lsr-link:hover { text-decoration-color: var(--lsr-gold-lit); }
.lsr-link:focus-visible { outline: 2px solid var(--lsr-gold); outline-offset: 2px; }

/* The one gold button on the page. */
.lsr-gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  padding: 0 22px;
  border: 1px solid var(--lsr-gold);
  border-radius: var(--sb-r-control);
  background: var(--lsr-gold);
  color: var(--sb-surface-2);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 90ms ease;
}
.lsr-gold-btn svg { width: 16px; height: 16px; }
.lsr-gold-btn:hover { background: var(--lsr-gold-lit); border-color: var(--lsr-gold-lit); }
.lsr-gold-btn:active { transform: translateY(1px); }
.lsr-gold-btn:focus-visible { outline: 2px solid var(--lsr-ink); outline-offset: 2px; }
.lsr-gold-btn[disabled] { opacity: 0.6; cursor: wait; }
.lsr-gold-btn--outline { background: transparent; color: var(--lsr-gold-lit); }
.lsr-gold-btn--outline:hover { background: var(--lsr-gold); color: var(--sb-surface-2); }

.lsr-error {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  padding: 10px 14px;
  border: 1px solid rgb(237 173 34 / 0.5);
  border-radius: var(--sb-r-control);
  background: rgb(237 173 34 / 0.08);
  font-size: 13px;
  font-weight: 600;
  color: var(--lsr-gold-lit);
}
.lsr-led {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, var(--lsr-gold-lit), var(--lsr-led) 60%, var(--lsr-gold-deep));
  box-shadow: 0 0 6px rgb(237 173 34 / 0.7);
}

.lsr-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--lsr-muted);
}
.lsr-foot strong { font-weight: 600; color: var(--lsr-ink); }
.lsr-foot a { color: var(--lsr-gold-lit); text-decoration: underline; text-underline-offset: 3px; }
.lsr-foot a:hover { color: var(--lsr-gold); }

/* --- the saved-mix panel (hidden until the script has a real mix) ----- */
.lsr-mix {
  margin-top: 22px;
  padding: 16px 18px 18px;
  border: 1px solid var(--lsr-line);
  border-radius: var(--sb-r-control);
  background: var(--lsr-raised);
}
.lsr-mix[hidden] { display: none; }
.lsr-mix-head { display: flex; align-items: center; gap: 10px; }
.lsr-mix-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--lsr-gold);
}
.lsr-mix-sub { margin: 6px 0 0; font-size: 13px; color: var(--lsr-muted); }
.lsr-mix-cols { display: grid; gap: 14px; margin-top: 14px; }
.lsr-mix-lane { margin: 0; font-size: 15px; font-weight: 700; color: var(--lsr-ink); }
.lsr-mix-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--lsr-ink); }
.lsr-mix-list li::before { content: "\00b7 "; color: var(--lsr-gold); }
.lsr-mix-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 16px; }
.lsr-mix-cta .lsr-gold-btn { margin-top: 0; }

/* --- the demo strip --------------------------------------------------- */
.lsr-demo {
  margin-top: 26px;
  padding: 16px 18px 16px;
  border: 1px solid var(--lsr-line);
  border-radius: var(--sb-r-control);
  background: var(--lsr-raised);
}
.lsr-demo-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 12px;
}
.lsr-demo-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lsr-gold);
}
.lsr-demo-tag {
  font-family: var(--sb-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--lsr-faint);
}

.lsr-workspaces {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  border: none;
}
.lsr-workspace { position: relative; cursor: pointer; }
.lsr-workspace input { position: absolute; opacity: 0; pointer-events: none; }
.lsr-workspace span {
  display: block;
  padding: 11px 6px;
  border: 1px solid rgb(242 238 230 / 0.2);
  border-radius: var(--sb-r-control);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  color: var(--lsr-ink);
  transition: border-color 120ms ease, background-color 120ms ease;
}
.lsr-workspace:hover span { border-color: rgb(201 168 106 / 0.6); }
/* selection: fill + weight + check mark, never gold alone */
.lsr-workspace input:checked + span {
  border-color: var(--lsr-gold);
  background: rgb(201 168 106 / 0.14);
  color: var(--lsr-gold-lit);
}
.lsr-workspace input:checked + span::before { content: "\2713 "; }
.lsr-workspace input:focus-visible + span { outline: 2px solid var(--lsr-gold); outline-offset: 2px; }

.lsr-demo-form { margin-top: 10px; }
.lsr-demo-form[hidden] { display: none; }
.lsr-demo-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.lsr-demo-row input { height: 44px; }
.lsr-demo-btn {
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--lsr-gold);
  border-radius: var(--sb-r-control);
  background: transparent;
  color: var(--lsr-gold-lit);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.lsr-demo-btn:hover { background: var(--lsr-gold); color: var(--sb-surface-2); }
.lsr-demo-btn:focus-visible { outline: 2px solid var(--lsr-ink); outline-offset: 2px; }

.lsr-demo-note {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: var(--sb-r-control);
  font-size: 13px;
  font-weight: 600;
}
.lsr-demo-note--ok { border: 1px solid rgb(201 168 106 / 0.45); background: rgb(201 168 106 / 0.1); color: var(--lsr-gold-lit); }
.lsr-demo-note--err { border: 1px solid rgb(237 120 60 / 0.5); background: rgb(237 120 60 / 0.1); color: var(--sb-warn); }

.lsr-demo-fine { margin: 10px 0 0; font-size: 12px; line-height: 1.55; color: var(--lsr-faint); }
.lsr-flip {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--lsr-gold-lit);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.lsr-flip:hover { color: var(--lsr-gold); }
.lsr-flip:focus-visible { outline: 2px solid var(--lsr-gold); }

/* honeypot: physically removed from view, still in the DOM for bots */
.lsr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- the other account pages (signup, forgot, reset) ------------------ */
.lsr-workspaces--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lsr-workspaces.lsr-field { margin-top: 20px; }
.lsr-legend {
  padding: 0;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lsr-gold);
}
.lsr-fine { margin: 14px 0 0; font-size: 12px; line-height: 1.55; color: var(--lsr-faint); }
.lsr-fine a { color: var(--lsr-gold-lit); text-decoration: underline; text-underline-offset: 3px; }
.lsr-note { margin-top: 22px; line-height: 1.55; }
a.lsr-gold-btn { margin-top: 24px; }

/* --- security + footer ------------------------------------------------ */
.lsr-security {
  margin: 22px 0 0;
  font-family: var(--sb-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--lsr-faint);
}
.lsr-footer { margin-top: 16px; }
.lsr-footer nav { display: flex; gap: 10px; font-size: 12px; }
.lsr-footer a { color: var(--lsr-muted); text-decoration: none; }
.lsr-footer a:hover { color: var(--lsr-ink); text-decoration: underline; }
.lsr-footer span { color: var(--lsr-faint); }
.lsr-footer p { margin: 8px 0 0; font-size: 12px; color: var(--lsr-faint); }

.lsr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- entry motion, once ----------------------------------------------- */
@keyframes lsr-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes lsr-draw {
  from { transform: scaleX(0); }
  to   { transform: none; }
}
.lsr-console-inner > * { animation: lsr-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.lsr-console-inner > :nth-child(2) { animation-delay: 60ms; }
.lsr-console-inner > :nth-child(3) { animation-delay: 110ms; }
.lsr-console-inner > :nth-child(4) { animation-delay: 160ms; }
.lsr-console-inner > :nth-child(n+5) { animation-delay: 220ms; }
.lsr-over { animation: lsr-rise 640ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.lsr-over-rule { animation: lsr-draw 600ms cubic-bezier(0.22, 1, 0.36, 1) 260ms both; }

@media (prefers-reduced-motion: reduce) {
  .lsr *, .lsr *::before, .lsr *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
