/* ==========================================================================
   GBM Studies — Prototype 01 — log in (v3: simple and calm)
   No site header or footer: one way home, a quiet brand side, one form.
   Field, switch and check styles come from account.css.
   ========================================================================== */

.lg { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; }

/* ---------- Brand side (dark) ---------- */
.lg-brand {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; padding: 1.8rem clamp(1.5rem, 4vw, 3.5rem) 2.2rem;
  color: var(--ivory-50); background: radial-gradient(110% 80% at 15% 0%, #12402d 0%, #071f16 52%, #04140d 100%);
}
.lg-brand::after { content: ""; position: absolute; z-index: -1; inset: auto -20% -45% -20%; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(197,161,90,.1), transparent 70%); pointer-events: none; }

.lg-home { display: inline-flex; align-items: center; gap: .6rem; font-size: .88rem; color: rgba(246,238,219,.8); transition: color .3s; }
.lg-home i { font-size: .74rem; color: var(--gold-300); transition: transform .35s var(--ease-out); }
.lg-home:hover { color: var(--ivory-50); }
.lg-home:hover i { transform: translateX(-4px); }

.lg-brand__mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 0; }
.lg-seal { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.lg-seal img { position: relative; width: 104px; height: 104px; border-radius: 50%; box-shadow: 0 24px 50px -18px rgba(0,0,0,.7), 0 0 0 1px rgba(230,211,166,.25); }
.lg-seal__ring { position: absolute; border-radius: 50%; pointer-events: none; }
.lg-seal__ring--a { inset: 26px; border: 1px solid rgba(214,185,124,.32); }
.lg-seal__ring--b { inset: 0; border: 1px dashed rgba(214,185,124,.22); animation: lgTurn 80s linear infinite; }
@keyframes lgTurn { to { transform: rotate(360deg); } }

.lg-brand__name { margin-top: 1.2rem; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .01em; color: rgba(246,238,219,.85); }
.lg-brand__name em { font-style: italic; color: var(--gold-300); }
.lg-brand__name sup { margin-left: 2px; font-family: var(--font-mono); font-size: .45em; opacity: .6; }
.lg-brand__title { margin-top: 1.6rem; max-width: 13ch; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 1.5rem + 2.3vw, 3.7rem); line-height: 1.02; letter-spacing: -.015em; }
.lg-brand__title em { display: block; font-style: italic; color: var(--gold-300); }
.lg-brand__lead { margin-top: 1rem; max-width: 34ch; color: rgba(246,238,219,.66); }

.lg-brand__facts { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 1.4rem; border-top: 1px solid rgba(230,211,166,.14); text-align: center; }
.lg-brand__facts li { display: grid; gap: .3rem; padding: 0 .6rem; }
.lg-brand__facts li + li { border-left: 1px solid rgba(230,211,166,.14); }
.lg-brand__facts b { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--gold-300); }
.lg-brand__facts b i { font-size: .8em; }
.lg-brand__facts span { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,238,219,.55); }

/* ---------- Form side (light) ---------- */
.lg-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem clamp(1.25rem, 4vw, 4rem) 5rem; background: var(--ivory-50); color: var(--ink-900); }
.lg-box { width: min(400px, 100%); }

.lg-kicker { display: flex; align-items: center; gap: .7rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-700); }
.lg-kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.lg-title { margin-top: .9rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 1.9rem + 1.4vw, 3.1rem); line-height: 1.02; letter-spacing: -.012em; }
.lg-title em { font-style: italic; color: var(--emerald-600); }
.lg-lead { margin-top: .6rem; color: var(--ink-500); }
.lg-lead b { color: var(--ink-900); font-weight: 600; }

.lg-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 2rem 0 1.7rem; border-bottom: 1px solid var(--line-light); }
.lg-tabs button { height: 46px; font-size: .92rem; font-weight: 500; color: var(--ink-500); transition: color .35s var(--ease-out); }
.lg-tabs button:hover { color: var(--ink-900); }
.lg-tabs button[aria-selected="true"] { color: var(--ink-900); }
.lg-tabs__thumb { position: absolute; left: 0; bottom: -1px; width: 50%; height: 2px; border-radius: 2px; background: var(--grad-gold); transition: transform .55s var(--ease-out); }
.lg-tabs[data-on="signup"] .lg-tabs__thumb { transform: translate3d(100%, 0, 0); }

.lg-page .a-field { margin-bottom: 1.15rem; }
.lg-page .a-input input { height: 54px; border-radius: 14px; }
.lg-page .a-eye { top: 7px; }
.lg-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.lg-link { font-size: .84rem; font-weight: 500; color: var(--emerald-700); transition: color .25s; }
.lg-link:hover { color: var(--emerald-900); text-decoration: underline; text-underline-offset: 3px; }
.lg-agree .lg-link { font-size: inherit; }
.lg-remember { margin: .1rem 0 1.6rem; font-size: .88rem; }
.lg-agree { display: grid; gap: .4rem; margin: .1rem 0 1.6rem; font-size: .88rem; }
.lg-plate { margin-top: .15rem; font-size: .8rem; color: var(--ink-500); }
.lg-plate b { margin-left: .2rem; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.12rem; color: var(--emerald-800); }
.lg-submit { height: 56px; }
.lg-switch { margin-top: 1.4rem; text-align: center; font-size: .9rem; color: var(--ink-500); }
.lg-switch button { font-weight: 600; color: var(--emerald-700); }
.lg-switch button:hover { color: var(--emerald-900); text-decoration: underline; text-underline-offset: 3px; }

.lg-signed { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; padding: .75rem .9rem .75rem 1rem; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-light); font-size: .86rem; color: var(--ink-700); }
.lg-signed[hidden] { display: none; }
.lg-signed a { flex: none; font-weight: 600; color: var(--emerald-700); }
.lg-signed a i { margin-left: .35rem; font-size: .8em; }

.lg-back { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.8rem; font-size: .88rem; color: var(--ink-500); transition: color .25s; }
.lg-back:hover { color: var(--emerald-800); }
.lg-form--reset { margin-top: 1.8rem; }
.lg-sent { text-align: center; }
.lg-sent .lg-submit { margin-top: 1.8rem; }
.lg-sent__icon { position: relative; width: 74px; height: 74px; margin: 0 auto 1.5rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: var(--gold-300); background: var(--grad-emerald); box-shadow: var(--shadow-md); }
.lg-sent__icon::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(197,161,90,.4); }
.lg-resend { display: block; margin: 1.1rem auto 0; font-size: .88rem; font-weight: 500; color: var(--emerald-700); }
.lg-resend:disabled { color: var(--ink-300); cursor: default; }

.lg-proto { display: flex; gap: .55rem; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line-light); font-size: .76rem; line-height: 1.5; color: var(--ink-500); }
.lg-proto i { margin-top: .2rem; color: var(--gold-600); }
.lg-legal { position: absolute; left: 0; right: 0; bottom: 1.6rem; display: flex; justify-content: center; gap: .7rem; font-size: .78rem; color: var(--ink-300); }
.lg-legal a { color: var(--ink-500); transition: color .25s; }
.lg-legal a:hover { color: var(--emerald-800); }

/* ---------- Entrance (after fonts are ready) ---------- */
html:not(.is-booting) .lg-brand__mid > *,
html:not(.is-booting) .lg-box > * { animation: lgRise .9s var(--ease-out) both; }
html:not(.is-booting) .lg-brand__mid > :nth-child(2) { animation-delay: .06s; }
html:not(.is-booting) .lg-brand__mid > :nth-child(3) { animation-delay: .12s; }
html:not(.is-booting) .lg-brand__mid > :nth-child(4) { animation-delay: .18s; }
html:not(.is-booting) .lg-box > :nth-child(2) { animation-delay: .1s; }
@keyframes lgRise { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lg { grid-template-columns: minmax(0, 1fr); }
  .lg-brand { position: relative; height: auto; padding: 1.3rem var(--gutter) 2.4rem; }
  .lg-brand__mid { padding: 1.6rem 0 0; }
  .lg-seal { width: 150px; height: 150px; }
  .lg-seal__ring--a { inset: 18px; }
  .lg-seal img { width: 76px; height: 76px; }
  .lg-brand__name { display: none; }
  .lg-brand__title { margin-top: 1.1rem; font-size: 2.3rem; }
  .lg-brand__title em { display: inline; }
  .lg-brand__lead { font-size: .92rem; }
  .lg-brand__facts { display: none; }
  .lg-panel { padding: 2.8rem var(--gutter) 5rem; }
  .lg-title { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-seal__ring--b { animation: none; }
  html:not(.is-booting) .lg-brand__mid > *, html:not(.is-booting) .lg-box > * { animation: none; }
  .lg-tabs__thumb { transition: none; }
}
