/* GeroInfra login — full-screen futuristic sign-in (SHELL agent). */
@property --lg-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --lg-card-bg: rgba(255, 255, 255, 0.74);
  --lg-card-border: rgba(31, 122, 82, 0.16);
  --lg-card-shadow: 0 30px 80px rgba(15, 61, 43, 0.18), 0 2px 8px rgba(15, 61, 43, 0.06);
  --lg-input-bg: rgba(255, 255, 255, 0.86);
  --lg-input-border: #CFDDD5;
  --lg-input-focus: #1F7A52;
  --lg-ring: rgba(47, 163, 107, 0.2);
  --lg-accent: #1F7A52;
  --lg-accent-2: #2FA36B;
  --lg-btn-text: #FFFFFF;
  --lg-btn-bg: linear-gradient(135deg, #1A6B47 0%, #1F7A52 40%, #2FA36B 100%);
  --lg-btn-glow: 0 12px 30px rgba(31, 122, 82, 0.32);
  --lg-title: #0F2A1E;
  --lg-tool-bg: rgba(255, 255, 255, 0.7);
  --lg-tool-border: rgba(31, 122, 82, 0.16);
  --lg-trace: rgba(31, 122, 82, 0.9);
}
:root[data-theme="dark"] {
  --lg-card-bg: rgba(8, 20, 15, 0.58);
  --lg-card-border: rgba(61, 220, 151, 0.16);
  --lg-card-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset, 0 0 80px rgba(61, 220, 151, 0.06);
  --lg-input-bg: rgba(4, 12, 9, 0.55);
  --lg-input-border: rgba(61, 220, 151, 0.16);
  --lg-input-focus: #3DDC97;
  --lg-ring: rgba(61, 220, 151, 0.18);
  --lg-accent: #3DDC97;
  --lg-accent-2: #2FA36B;
  --lg-btn-text: #03130B;
  --lg-btn-bg: linear-gradient(135deg, #2FA36B 0%, #3DDC97 55%, #7BF0BE 100%);
  --lg-btn-glow: 0 14px 40px rgba(61, 220, 151, 0.32), 0 0 0 1px rgba(61, 220, 151, 0.4);
  --lg-title: #F1FBF6;
  --lg-tool-bg: rgba(8, 20, 15, 0.55);
  --lg-tool-border: rgba(61, 220, 151, 0.16);
  --lg-trace: #3DDC97;
}

body.lg { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; background: var(--bg); }

/* ------------------------------------------------------------------ background */
.lg-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg); }
.lg-bg-img {
  position: absolute; inset: -3%;
  background:
    url('/static/img/login-bg.webp') 78% center / cover no-repeat,
    radial-gradient(60% 70% at 80% 40%, rgba(61, 220, 151, 0.22), transparent 70%),
    radial-gradient(40% 50% at 95% 90%, rgba(20, 163, 160, 0.18), transparent 70%),
    linear-gradient(160deg, #06100C 0%, #081A12 60%, #0A2318 100%);
  animation: lg-drift 48s ease-in-out infinite alternate;
  will-change: transform;
}
:root[data-theme="light"] .lg-bg-img {
  background:
    url('/static/img/login-bg-light.webp') 78% center / cover no-repeat,
    radial-gradient(60% 70% at 80% 40%, rgba(61, 220, 151, 0.22), transparent 70%),
    radial-gradient(40% 50% at 95% 90%, rgba(20, 163, 160, 0.12), transparent 70%),
    linear-gradient(160deg, #FFFFFF 0%, #F1F8F4 60%, #E2F3EA 100%);
}
@keyframes lg-drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); } }

.lg-bg-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 10, 8, 0.92) 0%, rgba(4, 10, 8, 0.66) 34%, rgba(4, 10, 8, 0.12) 62%, rgba(4, 10, 8, 0) 80%),
    linear-gradient(180deg, rgba(4, 10, 8, 0.5) 0%, transparent 22%, transparent 70%, rgba(4, 10, 8, 0.85) 100%);
}
:root[data-theme="light"] .lg-bg-shade {
  background:
    linear-gradient(90deg, rgba(247, 251, 249, 0.95) 0%, rgba(247, 251, 249, 0.75) 36%, rgba(247, 251, 249, 0.1) 66%, rgba(247, 251, 249, 0) 82%),
    linear-gradient(180deg, rgba(247, 251, 249, 0.6) 0%, transparent 22%, transparent 72%, rgba(236, 246, 240, 0.9) 100%);
}

/* perspective grid floor */
.lg-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%;
  background-image: linear-gradient(rgba(61, 220, 151, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(61, 220, 151, 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 100%);
  opacity: 0.35; animation: lg-floor 6s linear infinite;
}
:root[data-theme="light"] .lg-floor { background-image: linear-gradient(rgba(31, 122, 82, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 122, 82, 0.16) 1px, transparent 1px); opacity: 0.45; }
@keyframes lg-floor { to { background-position: 0 64px, 0 0; } }

.lg-aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; will-change: transform; }
.lg-aurora.a1 { width: 46vmax; height: 46vmax; left: -14vmax; top: -18vmax; background: radial-gradient(circle, rgba(61, 220, 151, 0.35), transparent 65%); animation: lg-float-a 22s ease-in-out infinite alternate; }
.lg-aurora.a2 { width: 38vmax; height: 38vmax; right: -10vmax; bottom: -16vmax; background: radial-gradient(circle, rgba(20, 163, 160, 0.35), transparent 65%); animation: lg-float-b 26s ease-in-out infinite alternate; }
:root[data-theme="light"] .lg-aurora { opacity: 0.45; }
@keyframes lg-float-a { to { transform: translate3d(10vmax, 6vmax, 0) scale(1.1); } }
@keyframes lg-float-b { to { transform: translate3d(-8vmax, -6vmax, 0) scale(1.15); } }

.lg-scan {
  position: absolute; left: 0; right: 0; top: -20%; height: 18%;
  background: linear-gradient(180deg, transparent 0%, rgba(61, 220, 151, 0.035) 45%, rgba(61, 220, 151, 0.07) 50%, rgba(61, 220, 151, 0.035) 55%, transparent 100%);
  animation: lg-scan 9s cubic-bezier(.45, 0, .55, 1) infinite;
}
:root[data-theme="light"] .lg-scan { background: linear-gradient(180deg, transparent 0%, rgba(47, 163, 107, 0.03) 45%, rgba(47, 163, 107, 0.06) 50%, rgba(47, 163, 107, 0.03) 55%, transparent 100%); }
@keyframes lg-scan { 0% { transform: translateY(0); } 100% { transform: translateY(700%); } }

.lg-particles i {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: var(--brand-mint);
  box-shadow: 0 0 8px var(--brand-mint), 0 0 2px #fff; opacity: 0; animation: lg-rise-p 14s linear infinite;
}
.lg-particles i:nth-child(1) { left: 6%; animation-delay: 0s; animation-duration: 16s; }
.lg-particles i:nth-child(2) { left: 14%; animation-delay: 3s; animation-duration: 12s; }
.lg-particles i:nth-child(3) { left: 23%; animation-delay: 7s; animation-duration: 18s; width: 2px; height: 2px; }
.lg-particles i:nth-child(4) { left: 31%; animation-delay: 1.5s; animation-duration: 15s; }
.lg-particles i:nth-child(5) { left: 42%; animation-delay: 9s; animation-duration: 13s; width: 2px; height: 2px; }
.lg-particles i:nth-child(6) { left: 51%; animation-delay: 5s; animation-duration: 17s; }
.lg-particles i:nth-child(7) { left: 60%; animation-delay: 11s; animation-duration: 14s; width: 4px; height: 4px; }
.lg-particles i:nth-child(8) { left: 68%; animation-delay: 2s; animation-duration: 19s; }
.lg-particles i:nth-child(9) { left: 76%; animation-delay: 6.5s; animation-duration: 12s; width: 2px; height: 2px; }
.lg-particles i:nth-child(10) { left: 84%; animation-delay: 4s; animation-duration: 16s; }
.lg-particles i:nth-child(11) { left: 91%; animation-delay: 8s; animation-duration: 14s; }
.lg-particles i:nth-child(12) { left: 97%; animation-delay: 12s; animation-duration: 18s; width: 2px; height: 2px; }
:root[data-theme="light"] .lg-particles i { background: #2FA36B; box-shadow: 0 0 6px rgba(47, 163, 107, 0.6); }
@keyframes lg-rise-p {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 0.9; }
  80% { opacity: 0.5; }
  100% { transform: translate3d(30px, -100vh, 0); opacity: 0; }
}

/* ------------------------------------------------------------------ top bar */
.lg-top {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(18px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) 10px;
  animation: lg-fade 0.7s var(--ease) both;
}
.lg-brand { display: flex; align-items: center; gap: 11px; color: var(--text); min-width: 0; }
.lg-brand:hover { text-decoration: none; }
.lg-logo { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; }
.lg-logo::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(61, 220, 151, 0.8), transparent 40%, transparent 60%, rgba(20, 163, 160, 0.7), transparent);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%); mask: radial-gradient(circle, transparent 62%, #000 64%);
  animation: spin 6s linear infinite; opacity: 0.8;
}
.lg-logo img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(61, 220, 151, 0.45)); }
.lg-brand-txt { display: flex; flex-direction: column; min-width: 0; }
.lg-brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; line-height: 1.1; color: var(--lg-title); }
.lg-brand-name b { font-weight: 800; color: var(--lg-accent); }
.lg-brand-sub { font-size: 11px; color: var(--text-3); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lg-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.lg-health, .lg-seg, .lg-iconbtn {
  background: var(--lg-tool-bg); border: 1px solid var(--lg-tool-border);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
}
.lg-health { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border-radius: 999px; font-size: 12px; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.lg-health .led { width: 8px; height: 8px; }
.lg-seg { display: inline-flex; padding: 3px; border-radius: 999px; gap: 2px; }
.lg-seg button {
  height: 30px; min-width: 42px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2);
  font-weight: 700; font-size: 12.5px; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur);
}
.lg-seg button:hover { color: var(--text); }
.lg-seg button[aria-pressed="true"] { background: var(--lg-accent); color: var(--lg-btn-text); box-shadow: 0 0 14px rgba(61, 220, 151, 0.35); }
:root[data-theme="light"] .lg-seg button[aria-pressed="true"] { box-shadow: 0 4px 12px rgba(31, 122, 82, 0.25); }
.lg-iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--text); cursor: pointer; transition: transform 160ms var(--ease), box-shadow var(--dur); }
.lg-iconbtn:hover { box-shadow: 0 0 0 4px var(--lg-ring); }
.lg-iconbtn:active { transform: scale(0.94); }
.lg-iconbtn svg { transition: transform 500ms var(--ease); }
.lg-iconbtn:hover svg { transform: rotate(30deg); }

/* ------------------------------------------------------------------ main grid */
.lg-main {
  position: relative; z-index: 2; flex: 1 0 auto; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 110px);
  width: min(1240px, 100%); margin: 0 auto; padding: 20px clamp(16px, 4vw, 48px) 28px;
  transition: opacity 400ms var(--ease), transform 400ms var(--ease), filter 400ms var(--ease);
}
body.lg-leaving .lg-main { opacity: 0; transform: scale(1.015); filter: blur(6px); }

/* intro */
.lg-intro { max-width: 600px; }
.lg-intro > * { animation: lg-rise 0.8s var(--ease) both; }
.lg-intro > :nth-child(1) { animation-delay: 60ms; }
.lg-intro > :nth-child(2) { animation-delay: 140ms; }
.lg-intro > :nth-child(3) { animation-delay: 220ms; }
.lg-intro > :nth-child(4) { animation-delay: 300ms; }
.lg-intro > :nth-child(5) { animation-delay: 380ms; }
.lg-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 14px 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lg-accent);
  background: color-mix(in srgb, var(--lg-accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--lg-accent) 28%, transparent);
}
.lg-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lg-accent); box-shadow: 0 0 10px var(--lg-accent); animation: lg-blink 2.4s ease-in-out infinite; }
@keyframes lg-blink { 50% { opacity: 0.35; } }
.lg-title {
  margin-top: 22px; font-size: clamp(40px, 4.6vw, 64px); font-weight: 820; line-height: 1.06; letter-spacing: -0.04em; color: var(--lg-title);
}
html[lang="ko"] .lg-title { letter-spacing: -0.03em; line-height: 1.16; }
.lg-title em {
  font-style: normal; background: linear-gradient(100deg, #3DDC97 0%, #7BF0BE 35%, #2CC7C2 70%, #3DDC97 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: lg-shimmer 6s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(61, 220, 151, 0.28));
}
:root[data-theme="light"] .lg-title em { background-image: linear-gradient(100deg, #1F7A52 0%, #2FA36B 35%, #14A3A0 70%, #1F7A52 100%); filter: none; }
@keyframes lg-shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.lg-lead { margin-top: 18px; max-width: 520px; font-size: 16.5px; line-height: 1.65; color: var(--text-2); }

.lg-features { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lg-features li {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; min-width: 0;
  background: color-mix(in srgb, var(--surface) 38%, transparent); border: 1px solid var(--lg-tool-border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
:root[data-theme="light"] .lg-features li { background: rgba(255, 255, 255, 0.62); }
.lg-features li:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--lg-accent) 45%, transparent); box-shadow: 0 10px 30px rgba(61, 220, 151, 0.1); }
.lg-fi {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--lg-accent);
  background: color-mix(in srgb, var(--lg-accent) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lg-accent) 26%, transparent);
}
:root[data-theme="dark"] .lg-fi svg { filter: drop-shadow(0 0 6px rgba(61, 220, 151, 0.6)); }
.lg-features strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; }
.lg-features small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); line-height: 1.45; }

.lg-hud { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--lg-tool-border); }
.lg-hud div { display: flex; flex-direction: column; gap: 2px; position: relative; padding-left: 14px; }
.lg-hud div::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--lg-accent), transparent); box-shadow: 0 0 8px var(--lg-accent); }
.lg-hud b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--lg-title); line-height: 1.1; }
.lg-hud b small { font-size: 14px; font-weight: 700; color: var(--text-3); margin-left: 2px; }
.lg-hud span { font-size: 12px; color: var(--text-3); font-weight: 600; }

/* ------------------------------------------------------------------ card */
.lg-card-wrap { position: relative; animation: lg-card-in 0.9s var(--ease) 120ms both; }
.lg-card-wrap::before { /* soft glow under the card */
  content: ''; position: absolute; inset: 8% 3% -4%; border-radius: 40px; background: radial-gradient(closest-side, rgba(61, 220, 151, 0.22), transparent);
  filter: blur(30px); z-index: -1; animation: lg-breathe 5s ease-in-out infinite;
}
:root[data-theme="light"] .lg-card-wrap::before { background: radial-gradient(closest-side, rgba(47, 163, 107, 0.18), transparent); }
@keyframes lg-breathe { 50% { opacity: 0.55; transform: scale(0.97); } }
.lg-card {
  position: relative; isolation: isolate; padding: 34px 32px 24px; border-radius: 28px;
  background: var(--lg-card-bg); border: 1px solid var(--lg-card-border); box-shadow: var(--lg-card-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
}
.lg-card::before { /* rotating neon trace on the border */
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--lg-angle), transparent 0deg, var(--lg-trace) 50deg, transparent 110deg, transparent 180deg, color-mix(in srgb, var(--lg-trace) 55%, transparent) 230deg, transparent 290deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: lg-trace 7s linear infinite; opacity: 0.85;
}
.lg-card::after { /* glass sheen */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, transparent 32%), radial-gradient(120% 60% at 50% -10%, rgba(61, 220, 151, 0.12), transparent 60%);
}
:root[data-theme="light"] .lg-card::after { background: linear-gradient(160deg, rgba(255, 255, 255, 0.9) 0%, transparent 40%), radial-gradient(120% 60% at 50% -10%, rgba(61, 220, 151, 0.12), transparent 60%); }
@keyframes lg-trace { to { --lg-angle: 360deg; } }
.lg-card.shake { animation: lg-shake 420ms cubic-bezier(.36, .07, .19, .97); }
@keyframes lg-shake { 15%, 85% { transform: translateX(-2px); } 30%, 70% { transform: translateX(5px); } 45%, 55% { transform: translateX(-7px); } }

.lg-card-head { text-align: center; margin-bottom: 22px; }
.lg-card-logo { position: relative; width: 72px; height: 72px; margin: 0 auto 16px; display: grid; place-items: center; }
.lg-card-logo img { position: relative; width: 48px; height: 48px; filter: drop-shadow(0 0 16px rgba(61, 220, 151, 0.5)); animation: lg-float 5s ease-in-out infinite; }
.lg-halo { position: absolute; inset: 0; border-radius: 50%; }
.lg-halo::before, .lg-halo::after { content: ''; position: absolute; border-radius: 50%; }
.lg-halo::before { inset: 0; border: 1.5px dashed color-mix(in srgb, var(--lg-accent) 45%, transparent); animation: spin 20s linear infinite; }
.lg-halo::after { inset: 7px; background: radial-gradient(circle, color-mix(in srgb, var(--lg-accent) 22%, transparent), transparent 70%); border: 1.5px solid transparent; border-top-color: var(--lg-accent); border-left-color: var(--lg-accent); animation: spin 3.6s linear infinite reverse; filter: drop-shadow(0 0 6px var(--lg-accent)); }
@keyframes lg-float { 50% { transform: translateY(-3px); } }
.lg-card-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; color: var(--lg-title); }
.lg-card-head p { margin-top: 6px; font-size: 14px; color: var(--text-3); }

.lg-alert {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 600; line-height: 1.45;
  color: var(--st-down); background: color-mix(in srgb, var(--st-down) 11%, transparent); border: 1px solid color-mix(in srgb, var(--st-down) 35%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--st-down) 14%, transparent); animation: lg-pop 260ms var(--ease);
}
.lg-alert[data-kind="warn"] { color: var(--st-degraded); background: color-mix(in srgb, var(--st-degraded) 12%, transparent); border-color: color-mix(in srgb, var(--st-degraded) 38%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--st-degraded) 14%, transparent); }
:root[data-theme="light"] .lg-alert { color: #B4232A; }
:root[data-theme="light"] .lg-alert[data-kind="warn"] { color: #9A5B00; }
.lg-alert-ic { flex: 0 0 auto; margin-top: 1px; }
@keyframes lg-pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }

.lg-form { display: flex; flex-direction: column; gap: 16px; }
.lg-field { display: flex; flex-direction: column; gap: 7px; }
.lg-field label { font-size: 12.5px; font-weight: 700; color: var(--text-2); letter-spacing: 0.01em; }
.lg-input-wrap { position: relative; }
.lg-input-wrap input {
  width: 100%; height: 50px; padding: 0 46px 0 44px; border-radius: 14px; font-size: 15px; color: var(--text);
  background: var(--lg-input-bg); border: 1px solid var(--lg-input-border); outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur);
}
.lg-input-wrap input::placeholder { color: var(--text-3); opacity: 0.8; }
.lg-input-wrap input:hover { border-color: color-mix(in srgb, var(--lg-input-focus) 40%, var(--lg-input-border)); }
.lg-input-wrap input:focus { border-color: var(--lg-input-focus); box-shadow: 0 0 0 4px var(--lg-ring), 0 0 24px color-mix(in srgb, var(--lg-input-focus) 18%, transparent); }
.lg-input-wrap input:-webkit-autofill { -webkit-text-fill-color: var(--text); transition: background-color 9999s ease-out 0s; caret-color: var(--text); }
.lg-in-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; transition: color var(--dur); }
.lg-input-wrap:focus-within .lg-in-ic { color: var(--lg-input-focus); }
.lg-eye {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 11px;
  display: grid; place-items: center; background: transparent; color: var(--text-3); cursor: pointer; transition: color var(--dur), background var(--dur);
}
.lg-eye:hover { color: var(--text); background: color-mix(in srgb, var(--lg-accent) 10%, transparent); }
.lg-eye.on { color: var(--lg-accent); }
.lg-eye.on::after { content: ''; position: absolute; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(-45deg); box-shadow: 0 0 0 2px var(--lg-input-bg); }
.lg-caps { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--st-degraded); }

.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: -2px; }
.lg-remember { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 13.5px; font-weight: 600; color: var(--text-2); min-height: 40px; }
.lg-remember input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lg-remember small { color: var(--text-3); font-weight: 500; font-size: 12.5px; }
.lg-check {
  position: relative; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong);
  background: var(--lg-input-bg); transition: background var(--dur), border-color var(--dur), box-shadow var(--dur);
}
.lg-check::after {
  content: ''; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px; border: solid var(--lg-btn-text); border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) scale(0); transition: transform 180ms var(--ease);
}
.lg-remember input:checked + .lg-check { background: var(--lg-accent); border-color: var(--lg-accent); box-shadow: 0 0 12px color-mix(in srgb, var(--lg-accent) 50%, transparent); }
.lg-remember input:checked + .lg-check::after { transform: rotate(45deg) scale(1); }
.lg-remember input:focus-visible + .lg-check { outline: 2px solid var(--focus); outline-offset: 2px; }

.lg-submit {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; margin-top: 2px;
  border: 0; border-radius: 15px; cursor: pointer; font-size: 15.5px; font-weight: 750; letter-spacing: -0.005em;
  color: var(--lg-btn-text); background: var(--lg-btn-bg); box-shadow: var(--lg-btn-glow);
  transition: transform 140ms var(--ease), box-shadow 240ms var(--ease), filter 240ms var(--ease);
}
.lg-submit:hover:not(:disabled) { filter: brightness(1.06) saturate(1.05); transform: translateY(-1px); }
.lg-submit:active:not(:disabled) { transform: translateY(1px); }
.lg-submit:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.lg-submit:disabled { cursor: progress; }
.lg-submit-shine {
  position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-18deg);
  animation: lg-shine 4.2s ease-in-out 1.2s infinite;
}
@keyframes lg-shine { 0% { left: -60%; } 28%, 100% { left: 130%; } }
.lg-submit-ic { display: inline-grid; transition: transform 240ms var(--ease); }
.lg-submit:hover:not(:disabled) .lg-submit-ic { transform: translateX(3px); }
.lg-submit.loading .lg-submit-shine { animation-duration: 1.1s; animation-delay: 0s; }
.lg-submit.success { filter: saturate(1.15); }

.lg-card-foot { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--lg-card-border); font-size: 12px; color: var(--text-3); text-align: center; }
.lg-card-foot svg { color: var(--lg-accent); flex: 0 0 auto; }

/* ------------------------------------------------------------------ footer */
.lg-foot {
  position: relative; z-index: 2; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 10px 16px max(18px, env(safe-area-inset-bottom));
  font-size: 12px; color: var(--text-3); animation: lg-fade 1s var(--ease) 400ms both;
}
.lg-foot .mono { font-size: 11.5px; }

@keyframes lg-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes lg-fade { from { opacity: 0; } }
@keyframes lg-card-in { from { opacity: 0; transform: translateY(26px) scale(0.97); filter: blur(6px); } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .lg-main { grid-template-columns: minmax(0, 1fr) minmax(0, 410px); gap: 40px; }
  .lg-features { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .lg-main { grid-template-columns: minmax(0, 1fr); width: min(480px, 100%); gap: 22px; align-content: center; padding-top: 8px; }
  .lg-intro { max-width: none; text-align: left; }
  .lg-features, .lg-hud { display: none; }
  .lg-title { margin-top: 16px; font-size: clamp(30px, 8.4vw, 40px); }
  .lg-lead { font-size: 14.5px; margin-top: 10px; }
  .lg-bg-img { background-position: 70% center, 0 0, 0 0, 0 0; }
  .lg-bg-shade { background: linear-gradient(180deg, rgba(4, 10, 8, 0.7) 0%, rgba(4, 10, 8, 0.45) 40%, rgba(4, 10, 8, 0.8) 100%); }
  :root[data-theme="light"] .lg-bg-shade { background: linear-gradient(180deg, rgba(247, 251, 249, 0.85) 0%, rgba(247, 251, 249, 0.55) 40%, rgba(236, 246, 240, 0.9) 100%); }
}
@media (max-width: 560px) {
  .lg-top { padding-left: 16px; padding-right: 16px; }
  .lg-brand-sub { display: none; }
  .lg-health { width: 36px; padding: 0; justify-content: center; }
  .lg-health .lg-health-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lg-seg button { min-width: 38px; padding: 0 10px; }
  .lg-main { padding-left: 16px; padding-right: 16px; }
  .lg-card { padding: 26px 18px 18px; border-radius: 24px; }
  .lg-card-logo { width: 60px; height: 60px; margin-bottom: 12px; }
  .lg-card-logo img { width: 40px; height: 40px; }
  .lg-card-head { margin-bottom: 18px; }
  .lg-card-head h2 { font-size: 21px; }
  .lg-input-wrap input { font-size: 16px; }
}
@media (max-width: 380px) {
  .lg-tools { gap: 6px; }
  .lg-brand-name { font-size: 17px; }
  .lg-seg button { min-width: 34px; padding: 0 8px; font-size: 12px; }
}
@media (max-height: 760px) and (min-width: 961px) {
  .lg-features { margin-top: 20px; }
  .lg-features li { padding: 11px; }
  .lg-hud { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-bg-img, .lg-floor, .lg-aurora, .lg-scan, .lg-particles i, .lg-card::before, .lg-submit-shine, .lg-title em, .lg-logo::before, .lg-halo::before, .lg-halo::after { animation: none !important; }
  .lg-particles, .lg-scan { display: none; }
}
