/* Sign-in / 2FA screens: split hero + glass card. Loaded after style.css and
   theme-aware through its custom properties. */
body.lg { min-height: 100vh; overflow-x: hidden; position: relative;
  background:
    radial-gradient(1000px 600px at 12% 10%, rgba(47,123,255,0.20), transparent 60%),
    radial-gradient(900px 600px at 95% 95%, rgba(124,92,255,0.18), transparent 60%),
    var(--bg);
}
:root[data-theme="light"] body.lg { background: linear-gradient(135deg, #eaf1ff, #f6f2ff); }

.lg-orb { position: fixed; border-radius: 50%; filter: blur(70px); opacity: 0.55; pointer-events: none; z-index: 0; animation: lg-float 16s ease-in-out infinite; }
.lg-orb-a { width: 380px; height: 380px; background: #2f7bff; top: -110px; left: -90px; }
.lg-orb-b { width: 320px; height: 320px; background: #7c5cff; bottom: -100px; right: 12%; animation-delay: -6s; }
.lg-orb-c { width: 240px; height: 240px; background: #22d3ee; top: 45%; left: 42%; opacity: 0.22; animation-delay: -11s; }
@keyframes lg-float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(28px,-34px) scale(1.08); } }

.lg-theme { position: fixed; top: 18px; right: 18px; z-index: 5; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  background: color-mix(in srgb, var(--panel) 70%, transparent); border: 1px solid var(--border); border-radius: 12px; color: var(--text); backdrop-filter: blur(8px); }
.lg-theme:hover { border-color: var(--accent); }
.lg-theme svg { width: 18px; height: 18px; }

.lg-split { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); }

/* hero */
.lg-hero { padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; gap: 18px; max-width: 760px; margin-left: auto; }
.lg-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.lg-brand-mark { height: 54px; filter: drop-shadow(0 8px 20px rgba(47,123,255,0.45)); }
.lg-brand-text { font-size: 38px; font-weight: 800; letter-spacing: -1.2px; line-height: 1; }
.lg-net { color: var(--text); }
.lg-miko, .lg-grad { background: linear-gradient(90deg, #22d3ee, #2f7bff 60%, #7c5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-brand-tag { font-size: 12px; color: var(--muted); letter-spacing: 0.6px; margin-top: 6px; }
.lg-headline { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -1.2px; margin: 8px 0 0; }
.lg-lede { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 520px; margin: 0; }
.lg-mesh { width: 100%; max-width: 560px; height: auto; margin-top: 4px; overflow: visible; }
.lg-links use { animation: lg-dash 6s linear infinite; }
@keyframes lg-dash { to { stroke-dashoffset: -90; } }
.lg-node { fill: #0d1a33; stroke: url(#lgLink); stroke-width: 2; }
.lg-node-core { fill: #143a86; stroke: #6fb0ff; stroke-width: 2; }
.lg-ring { fill: none; stroke: #4ea1ff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: lg-pulse 2.6s ease-out infinite; }
@keyframes lg-pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.4); opacity: 0; } }
:root[data-theme="light"] .lg-node { fill: #fff; }
.lg-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; }
.lg-chips li { padding: 6px 12px; font-size: 12px; border-radius: 999px; color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); }

/* card */
.lg-panel { display: flex; align-items: center; justify-content: center; padding: 32px; }
.lg-card { width: 100%; max-width: 420px; padding: 34px 32px 26px; border-radius: 22px; position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 78%, transparent), color-mix(in srgb, var(--panel) 86%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border)); backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px -24px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.03) inset, 0 0 60px -20px rgba(47,123,255,0.5);
  animation: lg-rise 0.5s ease-out both; }
@keyframes lg-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lg-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #2f7bff, #7c5cff, transparent); }
.lg-card-mark { height: 46px; display: block; margin: 0 auto 14px; filter: drop-shadow(0 6px 16px rgba(47,123,255,0.5)); }
.lg-title { text-align: center; font-size: 25px; font-weight: 800; letter-spacing: -0.4px; margin: 0; }
.lg-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 22px; }
.lg-label { display: block; font-size: 12px; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
.lg-field { position: relative; display: flex; align-items: center; }
.lg-field > svg { position: absolute; left: 13px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.lg-field input { width: 100%; height: 46px; padding: 0 44px 0 40px; border-radius: 12px; font-size: 14px;
  background: color-mix(in srgb, var(--bg) 70%, var(--panel)); border: 1px solid var(--border); color: var(--text); }
.lg-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); outline: none; }
.lg-field:focus-within > svg { color: var(--accent); }
.lg-code { text-align: center; letter-spacing: 10px; font-family: var(--mono); font-size: 20px !important; padding: 0 12px !important; }
.lg-eye { position: absolute; right: 6px; width: 34px; height: 34px; border: none; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.lg-eye svg { width: 17px; height: 17px; }
.lg-eye:hover, .lg-eye.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.lg-caps { margin-top: 8px; font-size: 12px; color: var(--warn); }
.lg-caps[hidden] { display: none; }
.lg-submit { width: 100%; height: 48px; margin-top: 22px; border: none; border-radius: 12px; cursor: pointer; color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #2f7bff, #6a5cff); box-shadow: 0 12px 26px -12px rgba(59,110,255,0.95);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease; }
.lg-submit svg { width: 18px; height: 18px; transition: transform 0.15s ease; }
.lg-submit:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 16px 30px -12px rgba(59,110,255,1); }
.lg-submit:hover svg { transform: translateX(4px); }
.lg-submit:active { transform: translateY(1px); }
.lg-back { text-align: center; margin-top: 14px; font-size: 13px; }
.lg-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 22px; font-size: 11px; color: var(--muted); text-align: center; }
.lg-secure svg { width: 13px; height: 13px; flex-shrink: 0; }
.lg-card .alert { margin: 0 0 4px; }

@media (max-width: 960px) {
  .lg-split { grid-template-columns: 1fr; }
  .lg-hero { display: none; }
  .lg-panel { min-height: 100vh; }
}
@media (prefers-reduced-motion: reduce) { .lg-orb, .lg-ring, .lg-links use, .lg-card { animation: none !important; } }
