/* V29.812 - the sign-in page: the dark story panel on the left, the cream sign-in form on the right.
   Built from the approved mockup login-a.html. Pure CSS/SVG, no library. Everything stands still under
   prefers-reduced-motion. The wordmark keeps the app's own .login-brand-stack (app.css). */

/* The app draws every page at --app-zoom (0.8, on <body>); these pages are drawn at the mockup's own size. */
body.login-page { background: #EDE7DA; zoom: 1; }
.lg-wrap { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }

/* ---- left: the story ---- */
.lg-story {
  position: relative; overflow: hidden; background: #1E1812; color: #EFE6D4;
  display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px;
}
.lg-topo {
  position: absolute; inset: 0; opacity: .55; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, #000 85%);
          mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, #000 85%);
}
.lg-topo svg { width: 130%; height: 130%; margin: -10% 0 0 -18%; }
.lg-topo .c { transform-origin: 300px 330px; animation: lg-drift 38s ease-in-out infinite alternate; }
.lg-topo .c1 { animation-duration: 46s; }
.lg-topo .c2 { animation-duration: 54s; }
.lg-topo .c3 { animation-duration: 62s; }
@keyframes lg-drift { from { transform: rotate(-3deg) scale(1); } to { transform: rotate(4deg) scale(1.04); } }

.lg-pin {
  position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #C9A15A; opacity: .55;
  animation: lg-blink 3.2s ease-in-out infinite;
}
@keyframes lg-blink { 0%, 100% { opacity: .25; } 50% { opacity: .7; } }

.lg-z { position: relative; z-index: 2; }
.lg-big { font-family: var(--font-serif); font-size: 40px; line-height: 1.12; color: #F4ECDC; max-width: 560px; }
.lg-big em { color: #D9A15A; font-style: normal; }
.lg-small { font-size: 13px; color: #A89A82; margin-top: 14px; max-width: 520px; line-height: 1.55; }

/* the eight stations: a gold dot travels the line in 7 s, each centre lights as it passes */
.lg-line { max-width: 780px; margin-top: 30px; display: block; }
.lg-line text { font-size: 12px; fill: #C9B8A0; font-weight: 600; font-family: var(--font-sans); }
.lg-flow { animation: lg-dash 7s linear infinite; }
@keyframes lg-dash { from { stroke-dashoffset: 660; } to { stroke-dashoffset: 0; } }
.lg-dot { filter: drop-shadow(0 0 8px #F2C46B); animation: lg-travel 7s linear infinite; }
@keyframes lg-travel { from { transform: translateX(0); } to { transform: translateX(630px); } }
.lg-core { animation: lg-lit 7s linear infinite; }
.lg-st0 .lg-core { animation-delay: -0.3s; }
.lg-st1 .lg-core { animation-delay: 0.7s; }
.lg-st2 .lg-core { animation-delay: 1.7s; }
.lg-st3 .lg-core { animation-delay: 2.7s; }
.lg-st4 .lg-core { animation-delay: 3.7s; }
.lg-st5 .lg-core { animation-delay: 4.7s; }
.lg-st6 .lg-core { animation-delay: 5.7s; }
.lg-st7 .lg-core { animation-delay: 6.7s; }
@keyframes lg-lit { 0%, 10% { fill: #F2C46B; } 18%, 100% { fill: #5A4A38; } }

/* the demo feed: fixed lines, never real data */
.lg-feed {
  margin-top: 8px; height: 74px; overflow: hidden; font-size: 12.5px; color: #A89A82;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
}
.lg-feed > div { animation: lg-up 12s linear infinite; }
.lg-feed p { margin: 0; height: 24px; line-height: 24px; white-space: nowrap; }
.lg-feed b { color: #F2C46B; font-weight: 600; }
@keyframes lg-up { from { transform: translateY(0); } to { transform: translateY(-192px); } }

.lg-foot { font-size: 11px; color: #6F6352; letter-spacing: .1em; text-transform: uppercase; }

/* ---- right: the form ---- */
.lg-side { display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.lg-card { width: 380px; max-width: 100%; }
/* the wordmark exactly as today: app.css .login-brand-stack, at the size and letter offsets it shows under the
   app's 0.8 zoom (this page is drawn at 1); only the centring nudge is replaced so "Alpha" starts on the
   form's left edge */
/* V29.813 - centred over the form (Ruan, 29 Sep 2026), as the old sign-in card centred it: the same nudge
   (-10 px under the 0.8 zoom = -8 px here) balances "Oro" hanging right of "Alpha" */
.lg-brandwrap { text-align: center; margin-bottom: 34px; }
.lg-brand { transform: translateX(-8px); }
.lg-brand > span { font-size: calc(clamp(56px, 7vw, 84px) * .8); }
.lg-brand > span:first-child { transform: translateX(-9.6px); }
.lg-brand > span:last-child { transform: translateX(22.4px); }
.lg-title { font-family: var(--font-sans); font-size: 22px; font-weight: 700; letter-spacing: normal; line-height: 1.3; margin: 0; color: #2B2620; }
.lg-sub { font-size: 13px; color: #6B6353; margin-top: 4px; }
.lg-form { display: flex; flex-direction: column; }
.lg-form .form-error { margin-top: 16px; }
.lg-label {
  display: block; font-size: 10.5px; letter-spacing: .12em; font-weight: 700; color: #6B6353;
  margin: 16px 0 6px; text-transform: uppercase;
}
.lg-form input {
  width: 100%; height: 44px; border: 1px solid #D9CFB8; border-radius: 9px; background: #fff;
  padding: 0 14px; font-size: 14px; color: #2B2620;
}
.lg-form input:focus-visible { outline: 2px solid #C9A15A; outline-offset: 1px; }
.lg-btn {
  width: 100%; height: 46px; margin-top: 22px; border: 0; border-radius: 9px; background: #9C5B2B;
  color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; cursor: pointer;
}
.lg-btn:hover { background: #874D22; }
.lg-btn:focus-visible { outline: 2px solid #C9A15A; outline-offset: 2px; }
.lg-fine { font-size: 11.5px; color: #98907E; margin-top: 22px; display: flex; justify-content: space-between; gap: 12px; }

@media (max-width: 900px) {
  .lg-wrap { grid-template-columns: 1fr; }
  .lg-story { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-story *, .lg-story *::before, .lg-story *::after { animation: none !important; }
}
