/* OGImpact login page (UX1, BACKLOG 149, design B1 approved by Kon 11/10/2026): the self-hosted Inter and the G1 palette, mobile first. No third-party library. */
@font-face {
  font-family: 'OGImpact Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'OGImpact Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'OGImpact Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter/inter-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'OGImpact Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --lg-ink: #0F172A; --lg-ink-2: #475569; --lg-ink-3: #64748B; --lg-line: #E2E8F0;
  --lg-paper: #F7F6F3; --lg-card: #FFFFFF;
  --lg-indigo: #4338CA; --lg-indigo-dark: #3730A3; --lg-indigo-tint: #EEF2FF;
  --lg-night: #0B1026; --lg-night-ink: #E6E8F5; --lg-night-dim: #B9BED6;
  --lg-red: #B91C1C; --lg-red-tint: #FEF2F2; --lg-green: #047857; --lg-green-tint: #ECFDF5;
  --lg-font: 'OGImpact Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lg-card); color: var(--lg-ink); font-family: var(--lg-font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--lg-indigo); }
a:hover { color: var(--lg-indigo-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--lg-indigo); outline-offset: 2px; }

/* mobile first: the form, then the programs */
.lg { display: grid; grid-template-columns: 1fr; min-height: 100vh; min-height: 100dvh; }
.lg-main { display: flex; flex-direction: column; padding: 24px 20px; }
.lg-box { width: 100%; max-width: 400px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; flex: 1; justify-content: center; }
.lg-logo { display: block; width: 168px; height: auto; margin-bottom: 8px; }
.lg-box h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.lg-sub { margin: -6px 0 4px; color: var(--lg-ink-2); font-size: 15px; }
.lg form, .lg-dialog form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.lg-fld { display: flex; flex-direction: column; gap: 6px; }
.lg-fld label { font-size: 14px; font-weight: 600; color: #334155; }
.lg-fld input[type=text], .lg-fld input[type=password], .lg-fld input[type=email] { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #CBD5E1; border-radius: 10px; background: #fff; color: var(--lg-ink); font: inherit; font-size: 16px; }
.lg-fld input:focus { border-color: var(--lg-indigo); outline: none; box-shadow: 0 0 0 3px var(--lg-indigo-tint); }
.lg-pw { position: relative; }
.lg-pw input { padding-right: 72px !important; }
.lg-show { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--lg-ink-2); font: 600 13px var(--lg-font); cursor: pointer; }
.lg-show:hover { background: var(--lg-paper); }
.lg-forgot { align-self: flex-end; margin-top: -6px; font-size: 14px; font-weight: 600; text-decoration: none; background: none; border: 0; padding: 2px 0; color: var(--lg-indigo); cursor: pointer; font-family: inherit; }
.lg-btn { width: 100%; height: 50px; border: 0; border-radius: 10px; background: var(--lg-indigo); color: #fff; font: 700 16px var(--lg-font); cursor: pointer; }
.lg-btn:hover { background: var(--lg-indigo-dark); }
.lg-join { margin: 0; color: #334155; font-size: 15px; }
.lg-join a { font-weight: 700; text-decoration: none; }
.lg .alert { padding: 12px 14px; border-radius: 10px; font-size: 15px; border: 1px solid; }
.lg .alert-danger, .lg .alert-warning { background: var(--lg-red-tint); border-color: #FECACA; color: var(--lg-red); }
.lg .alert-success, .lg .alert-info { background: var(--lg-green-tint); border-color: #A7F3D0; color: var(--lg-green); }

.lg-trust { max-width: 400px; width: 100%; margin: 28px auto 0; padding-top: 16px; border-top: 1px solid var(--lg-line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--lg-ink-3); }
.lg-trust a { color: var(--lg-ink-2); }
.lg-lock { display: inline-flex; align-items: center; gap: 5px; }
.lg-lock svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* the programs: the same source as /programs and the Products page */
.lg-side { background: radial-gradient(80% 60% at 100% 100%, rgba(242,107,79,.2), transparent 60%), radial-gradient(70% 60% at 0% 0%, rgba(67,56,202,.45), transparent 65%), var(--lg-night); color: var(--lg-night-ink); padding: 32px 20px 36px; }
.lg-side-in { max-width: 520px; margin: 0 auto; }
.lg-eye { margin: 0 0 8px; color: #A5B4FC; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.lg-side h2 { margin: 0 0 6px; color: #fff; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.lg-side-lead { margin: 0 0 16px; color: var(--lg-night-dim); font-size: 15px; }
.lg-groups { list-style: none; margin: 0 0 18px; padding: 0; }
.lg-grp { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.09); }
.lg-grp b { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 600; }
.lg-grp b i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.lg-grp span { color: #C9CDE3; font-size: 14px; }
.lg-grp a { color: #C9CDE3; text-decoration: none; }
.lg-grp a:hover { color: #fff; text-decoration: underline; }
.lg-all { color: #fff; font-weight: 700; text-decoration: none; }
.lg-all:hover { color: #fff; text-decoration: underline; }

/* forgot password */
.lg-dialog { width: min(440px, calc(100% - 32px)); border: 0; border-radius: 16px; padding: 24px; color: var(--lg-ink); box-shadow: 0 20px 50px rgba(15,23,42,.3); }
.lg-dialog:not([open]) { display: none; }
.lg-dialog::backdrop { background: rgba(15,23,42,.55); }
.lg-dialog h2 { margin: 0 0 6px; font-size: 20px; }
.lg-dialog p { margin: 0 0 14px; color: var(--lg-ink-2); font-size: 15px; }
.lg-dialog-x { float: right; margin: -8px -8px 0 0; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--lg-ink-2); }
.lg-dialog-x:hover { background: var(--lg-paper); }

@media (min-width: 900px) {
  .lg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lg-main { padding: 40px 48px; }
  .lg-side { display: flex; align-items: center; padding: 48px; }
  .lg-grp { grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: baseline; }
}
@media (prefers-reduced-motion: no-preference) { .lg-btn, .lg-show { transition: background .15s; } }

/* olylogin: the pre-enrollee login under the member login */
.lg-pre { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--lg-line); display: flex; flex-direction: column; gap: 10px; }
.lg-pre h2 { margin: 0; font-size: 17px; font-weight: 700; }
.lg-pre p { margin: 0; color: var(--lg-ink-2); font-size: 14px; }
.lg-btn-quiet { background: var(--lg-card); color: var(--lg-indigo-dark); border: 1px solid #C7D2FE; }
.lg-btn-quiet:hover { background: var(--lg-indigo-tint); }
