/* Sign-in / 2FA / forgot-password screens: hero + light card.
   Loaded after style.css. Everything is scoped to body.lg. Dark is the default theme; the
   card stays light in both themes (it is a "paper" card), the hero follows the theme. */

body.lg {
  --lg-bg: #040a1d; --lg-bg2: #081a4c;
  --lg-text: #f3f6ff; --lg-muted: #aebbe0;
  --lg-tile: rgba(12, 26, 66, 0.62); --lg-tile-b: rgba(120, 160, 255, 0.24);
  --lg-grad-a: #28b4ff; --lg-grad-b: #8b5cf6;
  --lg-chip-bg: #0a1c4a; --lg-chip-b: #4d8bff; --lg-chip-t: #ffffff;
  --lg-tile-fill: #0b1d52; --lg-glyph: #5fd4ff;
  --lg-art-dot: #3f7bff; --lg-art-city: #bfe6ff; --lg-grat: rgba(120, 170, 255, 0.22);
  --lg-g1: #1d46b0; --lg-g2: #0a1f5c; --lg-g3: #050f33;
  --lg-halo1: rgba(59, 130, 246, 0.0); --lg-halo2: rgba(59, 130, 246, 0.0);
  --lg-pill-bg: rgba(14, 28, 70, 0.7); --lg-pill-b: rgba(120, 160, 255, 0.3); --lg-pill-on: linear-gradient(135deg, #2f7bff, #7c5cff);
  --lg-nd: #8fd4ff;

  --lc-text: #0f1b3d; --lc-muted: #4a5878; --lc-link: #2250d8; --lc-border: #cfd9ee;
  --lc-input: #ffffff; --lc-ph: #66738f; --lc-icon: #5a6a8f;

  margin: 0; min-height: 100vh; overflow-x: hidden; position: relative; color: var(--lg-text);
  background:
    radial-gradient(900px 620px at 52% 38%, rgba(37, 99, 235, 0.28), transparent 65%),
    radial-gradient(800px 700px at 96% 100%, rgba(124, 92, 255, 0.34), transparent 62%),
    radial-gradient(700px 500px at 0% 0%, rgba(20, 60, 160, 0.35), transparent 60%),
    linear-gradient(160deg, var(--lg-bg), var(--lg-bg2) 120%);
  background-attachment: fixed;
}
:root[data-theme="light"] body.lg {
  --lg-bg: #f1f6ff; --lg-bg2: #efeaff;
  --lg-text: #0e1a3b; --lg-muted: #44537a;
  --lg-tile: rgba(255, 255, 255, 0.78); --lg-tile-b: rgba(60, 100, 200, 0.22);
  --lg-grad-a: #0a74d6; --lg-grad-b: #6d3fe0;
  --lg-chip-bg: #ffffff; --lg-chip-b: #4d7fe0; --lg-chip-t: #11214f;
  --lg-tile-fill: #e3edff; --lg-glyph: #1b5fd0;
  --lg-art-dot: #3b6fd8; --lg-art-city: #1c4fb8; --lg-grat: rgba(40, 90, 200, 0.22);
  --lg-g1: #e9f1ff; --lg-g2: #cfe0ff; --lg-g3: #b7cdfb;
  --lg-pill-bg: rgba(255, 255, 255, 0.85); --lg-pill-b: rgba(60, 100, 200, 0.3);
  --lg-nd: #1c6fe0;
  background:
    radial-gradient(900px 620px at 52% 38%, rgba(120, 170, 255, 0.35), transparent 65%),
    radial-gradient(800px 700px at 96% 100%, rgba(160, 130, 255, 0.28), transparent 62%),
    linear-gradient(160deg, var(--lg-bg), var(--lg-bg2) 120%);
  background-attachment: fixed;
}

.lg-glow { position: fixed; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(80px); }
.lg-glow-a { width: 420px; height: 420px; right: -80px; top: 18%; background: rgba(124, 92, 255, 0.28); }
.lg-glow-b { width: 360px; height: 360px; left: 34%; bottom: -160px; background: rgba(34, 211, 238, 0.14); }
:root[data-theme="light"] .lg-glow-a { background: rgba(140, 120, 255, 0.22); }
:root[data-theme="light"] .lg-glow-b { background: rgba(80, 200, 255, 0.16); }

/* ---------- theme pill ---------- */
.lg-themepill { position: absolute; top: 20px; right: 34px; z-index: 6; display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: var(--lg-pill-bg); border: 1px solid var(--lg-pill-b); backdrop-filter: blur(8px); }
.lg-tp { width: 38px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--lg-muted); cursor: pointer; }
.lg-tp svg { width: 17px; height: 17px; }
.lg-tp:hover { color: var(--lg-text); }
.lg-tp[aria-pressed="true"] { background: var(--lg-pill-on, linear-gradient(135deg, #2f7bff, #7c5cff)); color: #fff; }
:root[data-theme="light"] .lg-tp[aria-pressed="true"] { background: linear-gradient(135deg, #2f7bff, #7c5cff); }
.lg-themepill button:focus-visible, .lg-eye:focus-visible, .lg-submit:focus-visible, .lg-link:focus-visible, .lg-legal a:focus-visible, .lg-check input:focus-visible {
  outline: 3px solid #7aa7ff; outline-offset: 2px; }

/* ---------- layout ---------- */
.lg-split { position: relative; z-index: 1; min-height: 100vh; display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(430px, 35vw, 580px); }

/* ---------- hero ---------- */
.lg-hero { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
  padding: clamp(18px, 3.4vh, 30px) clamp(24px, 3vw, 56px) clamp(14px, 2.4vh, 24px) clamp(28px, 3.8vw, 62px); gap: clamp(10px, 1.9vh, 22px); }
.lg-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 22vh; pointer-events: none; z-index: 0; opacity: .9; }
.lg-hero > *:not(.lg-wave):not(.lg-art) { position: relative; z-index: 2; }

.lg-brand { display: flex; align-items: center; gap: 14px; }
.lg-brand-mark { width: clamp(48px, 7.9vh, 66px); height: auto; border-radius: 16px; box-shadow: 0 10px 28px rgba(47, 123, 255, 0.45); flex-shrink: 0; }
.lg-wordmark { font-size: clamp(30px, 4.8vh, 42px); font-weight: 800; letter-spacing: -1px; line-height: 1; }
.lg-net { color: var(--lg-text); }
.lg-grad2 { background: linear-gradient(90deg, #22b8ff, #4f6dff 55%, #7c5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-brand-tag { margin-top: 6px; font-size: 13.5px; letter-spacing: .5px; color: var(--lg-muted); }

.lg-copy { margin-top: clamp(2px, 1.4vh, 16px); max-width: 560px; }
.lg-headline { margin: 0; font-size: clamp(36px, 7.1vh, 62px); line-height: 1.05; font-weight: 800; letter-spacing: -1.4px; color: var(--lg-text); }
.lg-grad { background: linear-gradient(90deg, var(--lg-grad-a), #5b7bff 55%, var(--lg-grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-lede { margin: clamp(10px, 2.2vh, 24px) 0 0; font-size: clamp(14px, 1.15vw + 2px, 17px); line-height: 1.55; color: var(--lg-muted); max-width: 500px; }

/* art: sits on the right of the hero, behind the cards */
.lg-art { position: absolute; z-index: 1; right: 0; top: clamp(40px, 9vh, 90px); width: min(50%, 560px); pointer-events: none; }
.lg-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.lg-s-halo1 { stop-color: rgba(59, 130, 246, 0.34); } .lg-s-halo2 { stop-color: rgba(59, 130, 246, 0); }
.lg-s-g1 { stop-color: var(--lg-g1); } .lg-s-g2 { stop-color: var(--lg-g2); } .lg-s-g3 { stop-color: var(--lg-g3); }
:root[data-theme="light"] .lg-s-halo1 { stop-color: rgba(90, 140, 255, 0.28); }
.lg-dot { fill: var(--lg-art-dot); opacity: .95; }
.lg-city circle { fill: var(--lg-art-city); opacity: .9; }
.lg-grat { stroke: var(--lg-grat); }
.lg-arc { stroke-width: 2; }
.lg-arc-glow { stroke-width: 7; opacity: .28; filter: blur(3px); }
.lg-arc:not(.lg-arc-glow) { stroke-dasharray: 5 7; animation: lg-flow 7s linear infinite; }
@keyframes lg-flow { to { stroke-dashoffset: -96; } }
.lg-nd { fill: var(--lg-nd); stroke: #fff; stroke-width: 1.2; }
.lg-nd-o { fill: #ffb347; } .lg-nd-p { fill: #c084fc; }
:root[data-theme="light"] .lg-nd { stroke: #fff; }
.lg-hub-glow { fill: rgba(255, 170, 60, 0.35); filter: blur(4px); }
.lg-ring { fill: none; stroke: var(--lg-nd); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: lg-pulse 2.8s ease-out infinite; }
.lg-ring-o { stroke: #ffb347; animation-delay: .8s; }
@keyframes lg-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
.lg-chip rect { fill: var(--lg-chip-bg); stroke: var(--lg-chip-b); stroke-width: 1.2; }
.lg-chip text { fill: var(--lg-chip-t); font: 600 14px var(--sans); }
.lg-chip-sd rect { stroke: #ff6b6b; }
.lg-tile { fill: var(--lg-tile-fill); stroke: var(--lg-chip-b); stroke-width: 1.2; }
.lg-glyph { fill: none; stroke: var(--lg-glyph); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lg-glyph-cloud { fill: #4ea1ff; stroke: none; }
.lg-glyph-cloud path { fill: #5fb0ff; }

/* feature cards */
.lg-feats { list-style: none; margin: clamp(2px, 1vh, 12px) 0 0; padding: 0; width: min(100%, 700px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.1vw, 12px); }
.lg-feats li, .lg-stats { background: var(--lg-tile); border: 1px solid var(--lg-tile-b); border-radius: 16px; backdrop-filter: blur(6px); }
.lg-feats li { display: flex; align-items: center; gap: 12px; padding: clamp(10px, 1.7vh, 16px) 12px; min-width: 0; }
.lg-feats b, .lg-stats b { display: block; font-size: 14.5px; font-weight: 700; color: var(--lg-text); }
.lg-feats li span:not(.lg-fi) { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--lg-muted); }
.lg-fi, .lg-si { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; }
.lg-fi svg { width: 25px; height: 25px; }
.lg-fi-blue { background: rgba(59, 130, 246, 0.2); color: #4da3ff; }
.lg-fi-green { background: rgba(34, 197, 94, 0.18); color: #2fd58a; }
.lg-fi-red { background: rgba(255, 77, 109, 0.18); color: #ff6b86; }
.lg-fi-purple { background: rgba(139, 92, 246, 0.22); color: #a98bff; }
.lg-fi-orange { background: rgba(255, 138, 52, 0.2); color: #ff8f4a; }
.lg-fi-cyan { background: rgba(34, 211, 238, 0.18); color: #38d3f0; }
:root[data-theme="light"] .lg-fi-blue { color: #1c64d8; } :root[data-theme="light"] .lg-fi-green { color: #12804a; }
:root[data-theme="light"] .lg-fi-red { color: #c4223f; } :root[data-theme="light"] .lg-fi-purple { color: #6b3fd8; }
:root[data-theme="light"] .lg-fi-orange { color: #b4520e; } :root[data-theme="light"] .lg-fi-cyan { color: #0b7c93; }

/* stats strip */
.lg-stats { list-style: none; margin: 0; padding: clamp(10px, 1.8vh, 16px) 8px; width: min(100%, 840px); display: grid; grid-template-columns: 1fr 1.45fr 1.1fr 1.1fr; }
.lg-stats li { display: flex; align-items: center; gap: 11px; padding: 0 12px; min-width: 0; }
.lg-stats li + li { border-left: 1px solid var(--lg-tile-b); }
.lg-stats b { font-size: 17px; }
.lg-stats li span:not(.lg-si) { display: block; margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--lg-muted); }
.lg-si { width: 42px; height: 42px; border-radius: 50%; }
.lg-si svg { width: 21px; height: 21px; }

.lg-devs { list-style: none; margin: auto 0 0; padding: clamp(6px, 1.6vh, 18px) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; font-size: 13px; color: var(--lg-muted); }
.lg-devs li { padding: 0 18px; }
.lg-devs li:first-child { padding-left: 0; }
.lg-devs li + li { border-left: 1px solid var(--lg-tile-b); }

/* ---------- right: card ---------- */
.lg-panel { display: flex; align-items: center; justify-content: center; padding: 64px clamp(18px, 2vw, 34px) 20px 6px; min-width: 0; }
.lg-cardwrap { width: 100%; max-width: 540px; padding: 2px; border-radius: 30px;
  background: linear-gradient(140deg, #8db4ff 0%, #c6b6ff 38%, #7fe7ff 70%, #8b7bff 100%);
  box-shadow: 0 0 0 6px rgba(120, 140, 255, 0.14), 0 0 70px -6px rgba(99, 102, 241, 0.6), 0 40px 80px -30px rgba(0, 0, 40, 0.8);
  animation: lg-rise .5s ease-out both; }
:root[data-theme="light"] .lg-cardwrap { box-shadow: 0 0 0 6px rgba(120, 140, 255, 0.12), 0 0 50px -10px rgba(99, 102, 241, 0.4), 0 30px 60px -30px rgba(40, 60, 140, 0.45); }
@keyframes lg-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lg-card { position: relative; overflow: hidden; border-radius: 28px; color: var(--lc-text);
  padding: clamp(22px, 4.4vh, 40px) clamp(22px, 2.6vw, 42px) clamp(18px, 3vh, 30px);
  background: linear-gradient(180deg, #f8faff 0%, #eef3ff 100%); }
.lg-card-wave { position: absolute; left: 0; top: 40px; width: 100%; height: 110px; pointer-events: none; }
.lg-card > *:not(.lg-card-wave) { position: relative; }
.lg-card-brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: clamp(14px, 3vh, 30px); }
.lg-card-mark { width: clamp(52px, 8vh, 66px); height: auto; border-radius: 16px; box-shadow: 0 12px 26px -8px rgba(47, 123, 255, 0.6); }
.lg-card .lg-net { color: #0d1636; }
.lg-card .lg-brand-tag { color: var(--lc-muted); font-size: 12.5px; }
.lg-card .lg-wordmark { font-size: clamp(32px, 4.8vh, 40px); }
.lg-card .lg-grad2 { background-image: linear-gradient(90deg, #1ea0f0, #4a63f0 60%, #6d4be0); }

.lg-title { margin: 0; text-align: center; font-size: clamp(27px, 4vh, 32px); font-weight: 800; letter-spacing: -.5px; color: #0d1636; }
.lg-sub { margin: 8px 0 clamp(12px, 2.2vh, 22px); text-align: center; font-size: 15.5px; color: var(--lc-muted); }
.lg-label { display: block; margin: clamp(10px, 1.8vh, 16px) 0 7px; font-size: 14px; font-weight: 700; color: var(--lc-text); }
.lg-field { position: relative; display: flex; align-items: center; }
.lg-field > svg { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--lc-icon); pointer-events: none; }
.lg-field input { width: 100%; height: clamp(44px, 6.2vh, 50px); padding: 0 46px 0 46px; font: 400 15px var(--sans); color: var(--lc-text);
  background: var(--lc-input); border: 1px solid var(--lc-border); border-radius: 10px; box-shadow: 0 1px 0 rgba(20, 40, 100, .04); }
.lg-field input::placeholder { color: var(--lc-ph); opacity: 1; }
.lg-field input:focus { outline: none; border-color: #4a7cf5; box-shadow: 0 0 0 4px rgba(74, 124, 245, .2); }
.lg-field:focus-within > svg { color: #2f62e0; }
.lg-code { text-align: center; letter-spacing: 10px; font-family: var(--mono) !important; font-size: 20px !important; padding: 0 12px 0 46px !important; }
.lg-eye { position: absolute; right: 7px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--lc-icon); cursor: pointer; border-radius: 8px; }
.lg-eye svg { width: 20px; height: 20px; }
.lg-eye:hover, .lg-eye.on { color: #2250d8; background: rgba(47, 98, 224, .08); }
.lg-caps { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: #8a4b00; }
.lg-caps[hidden] { display: none; }
.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: clamp(10px, 1.9vh, 16px) 0 clamp(12px, 2.4vh, 20px); flex-wrap: wrap; }
.lg-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--lc-text); cursor: pointer; }
.lg-check input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 22px; height: 22px; margin: 0; border-radius: 6px; cursor: pointer;
  background: #fff; border: 1.5px solid #9fb0d6; }
.lg-check input:checked { border-color: #2f62e0; background: #2f62e0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 80% no-repeat; }
.lg-link { color: var(--lc-link); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.lg-link:hover { text-decoration: underline; }
.lg-submit { width: 100%; height: clamp(46px, 6.6vh, 54px); border: 0; border-radius: 12px; cursor: pointer; color: #fff; font: 700 17px var(--sans); text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 4px;
  background: linear-gradient(100deg, #7c4dff 0%, #4a6cff 48%, #12b5f5 100%); box-shadow: 0 14px 28px -12px rgba(60, 100, 255, .9), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease; }
.lg-submit svg { width: 20px; height: 20px; transition: transform .15s ease; }
.lg-submit:hover { transform: translateY(-1px); filter: brightness(1.06); text-decoration: none; color: #fff; }
.lg-submit:hover svg { transform: translateX(4px); }
.lg-submit:active { transform: translateY(1px); }
.lg-field + .lg-submit { margin-top: 22px; }
.lg-back { text-align: center; margin-top: 16px; }
.lg-alert { margin: 0 0 6px; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #8f1d1d; background: #fff0f0; border: 1px solid #f0b3b3; }
.lg-note { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--lc-border); }
.lg-note svg { width: 22px; height: 22px; flex: 0 0 auto; color: #2f62e0; margin-top: 1px; }
.lg-note p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--lc-text); }

.lg-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: clamp(12px, 2.4vh, 20px); font-size: 12.5px; }
.lg-legal a { color: var(--lc-link); text-decoration: none; font-weight: 500; }
.lg-legal a:hover { text-decoration: underline; }
.lg-secure { display: block; margin-top: clamp(14px, 3vh, 26px); font-size: 12.5px; line-height: 1.45; color: var(--lc-muted); text-align: center; }
.lg-secure svg { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.lg-copyright { margin-top: 8px; font-size: 12.5px; color: var(--lc-muted); text-align: center; }

/* ---------- compact layout ---------- */
@media (max-width: 900px) {
  body.lg { background-attachment: scroll; }
  .lg-split { grid-template-columns: 1fr; min-height: 0; }
  .lg-hero { padding: 22px 18px 6px; gap: 12px; }
  .lg-wave, .lg-art, .lg-lede, .lg-feats, .lg-stats, .lg-devs { display: none; }
  .lg-brand { padding-right: 96px; }
  .lg-brand-mark { width: 44px; border-radius: 12px; }
  .lg-wordmark { font-size: 28px; }
  .lg-brand-tag { font-size: 12px; margin-top: 4px; }
  .lg-copy { margin-top: 4px; }
  .lg-headline { font-size: clamp(26px, 7.4vw, 40px); letter-spacing: -.8px; }
  .lg-themepill { top: 18px; right: 16px; }
  .lg-panel { padding: 14px 14px 24px; }
  .lg-cardwrap { max-width: 560px; }
  .lg-card-brand, .lg-card-wave { display: none; }
  .lg-card { padding: 24px 20px 18px; }
}
@media (max-width: 400px) { .lg-card { padding: 22px 16px 16px; } .lg-row { gap: 8px; } }
/* short desktop screens: let the hero breathe by dropping the least important rows */
@media (min-width: 901px) and (max-height: 700px) { .lg-devs { display: none; } }
@media (min-width: 901px) and (max-width: 1500px) { .lg-art { width: 45%; right: -26px; top: clamp(28px, 5vh, 50px); } .lg-lede { max-width: 440px; } }
@media (min-width: 901px) and (max-width: 1180px) { .lg-feats li { flex-direction: column; align-items: flex-start; gap: 8px; } .lg-art { width: 42%; } }
@media (prefers-reduced-motion: reduce) {
  .lg-arc, .lg-ring, .lg-cardwrap { animation: none !important; }
  .lg-submit, .lg-submit svg { transition: none; }
}

/* ---- organisation tenant address: tenant name + logo instead of the product mark */
.lg-tenant-logo { max-height: clamp(44px, 7vh, 60px); max-width: 160px; width: auto; height: auto; object-fit: contain; border-radius: 10px; background: #fff; padding: 5px; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .35); flex-shrink: 0; }
.lg-tenant-name { overflow-wrap: break-word; }
.lg-brand-tenant { width: 100%; max-width: 560px; }
.lg-brand-tenant > div:last-child { min-width: 0; }
.lg-card-brand-tenant > div:last-child { min-width: 0; }
.lg-brand-tenant .lg-tenant-name, .lg-card-brand-tenant .lg-tenant-name { font-size: clamp(24px, 3.8vh, 32px); letter-spacing: -.5px; }
.lg-card-brand-tenant { text-align: left; }
.lg-card .lg-tenant-name { color: #0d1636; }
@media (max-width: 900px) {
  .lg-card-brand, .lg-card-wave { display: none; }
  .lg-tenant-logo { max-height: 34px; max-width: 72px; padding: 3px; border-radius: 8px; }
  .lg-brand-tenant { gap: 10px; }
  .lg-brand-tenant .lg-tenant-name, .lg-card-brand-tenant .lg-tenant-name { font-size: 19px; letter-spacing: -.2px; }
  .lg-brand-tenant .lg-brand-tag { font-size: 11px; }
}
