/* Codedetox — login page (standalone, no external dependencies) */
:root { --lg-blue: #1769f0; --lg-blue-dark: #0f4fc0; --lg-navy: #061f4d; --lg-ink: #0b2540; --lg-text: #1e293b; --lg-muted: #64748b; --lg-line: #dbe4ef; --lg-orange: #f97316; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.lg-body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--lg-text); background: #eef4fb; line-height: 1.5; overflow-x: clip; }
.lg-body a { color: var(--lg-blue); text-decoration: none; }
.lg-body a:hover { text-decoration: underline; }
.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.lg-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--lg-orange); outline-offset: 2px; border-radius: 6px; }

/* ---------- top bar ---------- */

/* ---------- stage ---------- */
.lg-stage { position: relative; flex: 1; display: flex; align-items: center; padding: 44px 0; background: radial-gradient(900px 500px at 20% 10%, rgba(23, 105, 240, .55), transparent 62%), radial-gradient(700px 420px at 90% 100%, rgba(56, 189, 248, .25), transparent 60%), linear-gradient(120deg, #041a44 0%, #0a3d91 55%, #1769f0 130%); color: #fff; overflow: hidden; }
.lg-stage::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-img, none); background-size: cover; background-position: center; opacity: .35; mix-blend-mode: luminosity; }
.lg-stage::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, #000 25%, transparent 85%); -webkit-mask-image: linear-gradient(to right, #000 25%, transparent 85%); pointer-events: none; }
.lg-bg { position: absolute; inset: 0; pointer-events: none; perspective: 900px; overflow: hidden; }
.lg-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.lg-blob-a { width: 360px; height: 360px; left: 8%; bottom: -120px; background: #38bdf8; animation: lgBlob 15s ease-in-out infinite alternate; }
.lg-blob-b { width: 300px; height: 300px; left: 46%; top: -110px; background: #6366f1; opacity: .35; animation: lgBlob 18s ease-in-out infinite alternate-reverse; }
@keyframes lgBlob { from { translate: 0 0; scale: 1; } to { translate: 50px -36px; scale: 1.2; } }
.lg-cube { --s: 40px; position: absolute; width: var(--s); height: var(--s); transform-style: preserve-3d; animation: lgSpin var(--t, 24s) linear infinite, lgDrift 9s ease-in-out infinite alternate; }
.lg-cube s { position: absolute; inset: 0; border: 1px solid rgba(147, 197, 253, .5); background: rgba(56, 189, 248, .10); }
.lg-cube s:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); } .lg-cube s:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.lg-cube s:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); } .lg-cube s:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.lg-cube s:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); } .lg-cube s:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.lg-c1 { left: 42%; top: 12%; --s: 44px; --t: 22s; } .lg-c2 { left: 3%; bottom: 24%; --s: 30px; --t: 28s; } .lg-c3 { left: 40%; bottom: 8%; --s: 52px; --t: 32s; }
.lg-c3 s { border-color: rgba(253, 186, 116, .55); background: rgba(249, 115, 22, .12); }
@keyframes lgSpin { from { transform: rotateX(0) rotateY(0); } to { transform: rotateX(360deg) rotateY(360deg); } }
@keyframes lgDrift { from { translate: 0 0; } to { translate: 22px -30px; } }

.lg-grid { position: relative; display: grid; gap: 34px; align-items: center; grid-template-columns: 1fr; }

/* ---------- hero (left) ---------- */
.lg-hero { animation: lgUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.lg-eyebrow { margin: 0 0 14px; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: #bfdbfe; }
.lg-title { margin: 0 0 16px; font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; color: #fff; }
.lg-title em { display: block; font-style: normal; background: linear-gradient(90deg, #38bdf8, #60a5fa 60%, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-lead { max-width: 34em; margin: 0 0 30px; font-size: clamp(1rem, 2vw, 1.2rem); color: #dbeafe; }
.lg-services { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 16px 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
.lg-services li { display: flex; align-items: center; gap: 12px; opacity: 0; animation: lgUp .7s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i) * 90ms + .3s); }
.lg-svc-ico { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .10); border: 1.5px solid rgba(147, 197, 253, .55); box-shadow: 0 0 18px rgba(56, 189, 248, .25); color: #fff; transition: transform .3s, background .3s; }
.lg-services li:hover .lg-svc-ico { transform: translateY(-3px) rotate(-6deg); background: rgba(56, 189, 248, .25); }
.lg-svc-ico .ico { width: 24px; height: 24px; }
.lg-services b { display: block; font-size: .95rem; line-height: 1.25; font-weight: 600; }
.lg-services small { display: block; margin-top: 2px; font-size: .78rem; color: #bfdbfe; line-height: 1.3; }
.lg-script { margin: 0 0 26px; font: italic 500 clamp(1.5rem, 3.4vw, 2.1rem)/1.15 "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive; color: #fff; text-shadow: 0 4px 18px rgba(0, 0, 0, .3); }
.lg-script::after { content: ""; display: block; width: 210px; height: 3px; margin-top: 8px; border-radius: 3px; background: linear-gradient(90deg, #38bdf8, transparent); }
.lg-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 0; }
.lg-stats li { padding: 0 26px; border-left: 1px solid rgba(255, 255, 255, .28); }
.lg-stats li:first-child { padding-left: 0; border-left: 0; }
.lg-stats b { display: block; font-size: 1.8rem; line-height: 1; font-weight: 800; }
.lg-stats span { display: block; margin-top: 4px; font-size: .82rem; color: #bfdbfe; }

/* ---------- login card (right) ---------- */
.lg-card { position: relative; width: 100%; max-width: 480px; margin: 0 auto; padding: 30px 30px 26px; background: rgba(255, 255, 255, .97); color: var(--lg-text); border-radius: 22px; box-shadow: 0 30px 70px rgba(2, 12, 40, .45); animation: lgUp .8s cubic-bezier(.2, .7, .2, 1) .1s both; }
.lg-card::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, #38bdf8, var(--lg-blue), var(--lg-orange)); }
.lg-card-logo { display: grid; justify-items: center; gap: 2px; margin-bottom: 14px; }
.lg-card-logo img { border-radius: 16px; }
.lg-card-name { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: var(--lg-ink); line-height: 1.1; }
.lg-card-tag { font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--lg-muted); }
.lg-card h1 { margin: 12px 0 6px; text-align: center; font-size: 1.65rem; font-weight: 800; color: var(--lg-ink); letter-spacing: -.01em; }
.lg-sub { margin: 0 0 20px; text-align: center; color: var(--lg-muted); font-size: .95rem; }
.lg-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 11px 14px; border-radius: 12px; font-size: .92rem; font-weight: 500; }
.lg-alert .ico { margin-top: 2px; }
.lg-alert.is-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.lg-alert.is-ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.lg-alert.is-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.lg-field { margin-bottom: 16px; }
.lg-field label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .95rem; color: var(--lg-ink); }
.lg-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #fff; border: 1.5px solid var(--lg-line); border-radius: 12px; color: var(--lg-muted); transition: border-color .2s, box-shadow .2s; }
.lg-input:focus-within { border-color: var(--lg-blue); box-shadow: 0 0 0 4px rgba(23, 105, 240, .14); color: var(--lg-blue); }
.lg-input input { flex: 1; min-width: 0; padding: .95rem 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--lg-text); }
.lg-input input::placeholder { color: #94a3b8; }
.lg-eye { display: grid; place-items: center; width: 34px; height: 34px; margin-right: -6px; border: 0; background: none; color: var(--lg-muted); cursor: pointer; border-radius: 8px; }
.lg-eye:hover { color: var(--lg-blue); background: #eff6ff; }
.lg-eye .lg-eye-off { display: none; }
.lg-eye.is-on .lg-eye-on { display: none; }
.lg-eye.is-on .lg-eye-off { display: block; }
.lg-row { display: flex; justify-content: flex-end; margin: -4px 0 18px; font-size: .9rem; font-weight: 600; }
.lg-btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 1rem 1.2rem; border: 0; border-radius: 12px; background: linear-gradient(135deg, #1e7bff, var(--lg-blue-dark)); color: #fff; font-family: inherit; font-weight: 700; font-size: 1.1rem; line-height: 1; cursor: pointer; box-shadow: 0 12px 26px rgba(23, 105, 240, .45); transition: transform .15s, box-shadow .2s; }
.lg-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(23, 105, 240, .55); }
.lg-btn::after { content: ""; position: absolute; top: 0; left: -70%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: lgShine 5s ease-in-out infinite; pointer-events: none; }
@keyframes lgShine { 0%, 60% { left: -70%; } 100% { left: 140%; } }
.lg-btn:disabled { opacity: .8; cursor: progress; transform: none; }
.lg-btn.is-busy .ico { display: none; }
.lg-foot { margin: 20px 0 0; text-align: center; color: var(--lg-muted); font-size: .92rem; }
.lg-foot a { font-weight: 700; }

/* ---------- footer ---------- */
.lg-bottom { background: #fff; border-top: 1px solid var(--lg-line); font-size: .85rem; color: var(--lg-muted); }
.lg-bottom-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
.lg-links { display: flex; gap: 26px; }
.lg-links a { color: var(--lg-ink); }
.lg-tagline { letter-spacing: .2em; text-transform: uppercase; font-size: .68rem; }

@keyframes lgUp { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

/* ---------- desktop: hero left, card right ---------- */
@media (min-width: 992px) {
  .lg-grid { grid-template-columns: minmax(0, 1.25fr) minmax(400px, 480px); gap: 60px; }
  .lg-card { order: 2; margin: 0; justify-self: end; }
  .lg-hero { order: 1; }
  .lg-stage { padding: 56px 0; }
}
/* ---------- tablet / phone ---------- */
@media (max-width: 991.98px) {
  .lg-hero { text-align: left; }
  .lg-stage { padding: 30px 0 40px; }
}
@media (max-width: 575.98px) {
  .lg-wrap { padding: 0 16px; }
  .lg-card { padding: 24px 20px 22px; border-radius: 18px; }
  .lg-card-logo img { width: 68px; height: 68px; }
  .lg-services { grid-template-columns: 1fr; }
  .lg-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .lg-stats li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .lg-stats li:nth-child(even) { padding-left: 22px; }
  .lg-links { gap: 16px; }
  .lg-bottom-in { justify-content: center; text-align: center; }
  .lg-c1, .lg-c2, .lg-c3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-blob, .lg-cube, .lg-btn::after { animation: none !important; }
  .lg-hero, .lg-card, .lg-services li { animation: none; opacity: 1; translate: none; }
}
