/* Halaman login admin & member (views/secret/login/index.php, views/site/login.php).
   Semua aturan di bawah .lx agar tidak memengaruhi halaman lain di layout yang sama. */

.lx {
  --lx-a: #12306e; --lx-b: #2f7dea; --lx-c: #38bdf8; --lx-accent: #ffb238;
  --lx-ink: #101828; --lx-muted: #667085; --lx-line: #e4e8f0; --lx-field: #f7f9fc;
  flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  min-height: inherit; background: #f4f6fb; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--lx-ink);
}
.lx.is-member { --lx-a: #0f2a63; --lx-b: #1c4fae; --lx-c: #2f7dea; --lx-accent: #ffb238; }

/* ---------- Panel kiri ---------- */
.lx-hero {
  position: relative; overflow: hidden; color: #fff; padding: clamp(1.8rem, 4vw, 3.2rem);
  display: flex; flex-direction: column; gap: 2rem; justify-content: space-between;
  background: linear-gradient(135deg, var(--lx-a) 0%, var(--lx-b) 55%, var(--lx-c) 120%);
}
.lx-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(160deg, #000 0%, transparent 75%);
}
.lx-orb { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .55; pointer-events: none; animation: lx-float 14s ease-in-out infinite; }
.lx-orb.o1 { width: 340px; height: 340px; background: var(--lx-c); top: -90px; right: -80px; }
.lx-orb.o2 { width: 280px; height: 280px; background: var(--lx-accent); bottom: -110px; left: -60px; opacity: .32; animation-delay: -5s; }
.lx-orb.o3 { width: 200px; height: 200px; background: #a78bfa; top: 45%; left: 55%; opacity: .28; animation-delay: -9s; }
@keyframes lx-float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(24px, -18px) scale(1.06); } 66% { transform: translate(-18px, 20px) scale(.96); } }

.lx-hero > :not(.lx-orb) { position: relative; z-index: 1; }
.lx-brand { display: flex; align-items: center; gap: .9rem; }
.lx-brand .logo { height: 60px; padding: 10px 16px; border-radius: 14px; background: #fff; display: inline-flex; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.18); flex: 0 0 auto; }
.lx-brand .logo img { display: block; height: 100%; width: auto; max-width: 200px; object-fit: contain; }
.lx-brand .name { font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.lx-brand .tag { font-size: .8rem; opacity: .8; }

.lx-headline .hello { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; padding: .35rem .75rem; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.lx-headline h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.15; margin: 1rem 0 .7rem; letter-spacing: -.01em; }
.lx-headline h1 span { color: var(--lx-accent); }
.lx-headline p { opacity: .85; max-width: 32rem; margin: 0; line-height: 1.6; font-size: .95rem; }

.lx-slides { position: relative; min-height: 112px; max-width: 30rem; }
.lx-slide {
  position: absolute; inset: 0 0 auto 0; display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem;
  border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease;
}
.lx-slide.is-on { opacity: 1; transform: translateY(0); }
.lx-slide .ic { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: rgba(255,255,255,.18); }
.lx-slide b { display: block; font-size: .95rem; margin-bottom: .15rem; }
.lx-slide span { font-size: .82rem; opacity: .85; line-height: 1.5; }
.lx-dots { display: flex; gap: .4rem; margin-top: .9rem; }
.lx-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.35); transition: width .3s, background .3s; cursor: pointer; }
.lx-dots button.is-on { width: 22px; background: #fff; }

.lx-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.lx-chip { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; padding: .45rem .8rem; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.lx-chip .live { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: lx-pulse 2s infinite; }
@keyframes lx-pulse { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

/* ---------- Panel kanan ---------- */
.lx-main { display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem); }
.lx-card { width: 100%; max-width: 420px; animation: lx-in .6s ease both; }
@keyframes lx-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lx-card .eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lx-b); background: #eaf1fd; padding: .3rem .7rem; border-radius: 999px; }
.lx-card h2 { font-size: 1.75rem; font-weight: 800; margin: .8rem 0 .35rem; letter-spacing: -.01em; }
.lx-card .lead { color: var(--lx-muted); font-size: .92rem; margin-bottom: 1.6rem; }

.lx-field { position: relative; margin-bottom: 1.05rem; }
.lx-field input[type=text], .lx-field input[type=password] {
  width: 100%; height: 56px; border-radius: 14px; border: 1.5px solid var(--lx-line); background: var(--lx-field);
  padding: 1.35rem 3rem .45rem 2.9rem; font-size: .95rem; color: var(--lx-ink); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.lx-field input:hover { border-color: #cfd6e3; }
.lx-field input:focus { border-color: var(--lx-b); background: #fff; box-shadow: 0 0 0 4px rgba(47,125,234,.14); }
.lx-field > label {
  position: absolute; left: 2.9rem; top: 50%; transform: translateY(-50%); font-size: .92rem; color: var(--lx-muted);
  pointer-events: none; transition: top .18s, font-size .18s, color .18s; margin: 0;
}
.lx-field input:focus ~ label, .lx-field input:not(:placeholder-shown) ~ label { top: 15px; font-size: .7rem; font-weight: 600; color: var(--lx-b); }
.lx-field .ico { position: absolute; left: 1rem; top: 28px; transform: translateY(-50%); color: #98a2b3; font-size: 1.05rem; transition: color .2s; }
.lx-field input:focus ~ .ico { color: var(--lx-b); }
.lx-field .eye { position: absolute; right: .55rem; top: 28px; transform: translateY(-50%); border: 0; background: transparent; width: 40px; height: 40px; border-radius: 10px; color: #98a2b3; }
.lx-field .eye:hover { background: #eef2f8; color: var(--lx-ink); }
.lx-caps { display: none; font-size: .75rem; color: #b45309; margin-top: .35rem; }
.lx-caps.is-on { display: block; }
.lx .errorMessage { font-size: .78rem; color: #d92d20; margin-top: .35rem; }
.lx .error input { border-color: #f97066; background: #fff; }

.lx-captcha { display: flex; gap: .6rem; align-items: center; margin-bottom: .55rem; }
.lx-captcha img { height: 48px; border-radius: 12px; border: 1.5px solid var(--lx-line); background: #fff; }
.lx-captcha a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--lx-line); color: var(--lx-muted); text-decoration: none; font-size: 1.05rem; }
.lx-captcha a:hover { color: var(--lx-b); border-color: var(--lx-b); }

.lx-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .4rem 0 1.4rem; font-size: .86rem; }
.lx-row a { color: var(--lx-b); font-weight: 600; text-decoration: none; }
.lx-row a:hover { text-decoration: underline; }
.lx-switch { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; color: var(--lx-ink); user-select: none; margin: 0; }
.lx-switch input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 99px; background: #d0d5dd; position: relative; cursor: pointer; transition: background .2s; margin: 0; flex: 0 0 auto; }
.lx-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.lx-switch input:checked { background: var(--lx-b); }
.lx-switch input:checked::after { transform: translateX(16px); }
.lx-switch input:focus-visible { outline: 3px solid rgba(47,125,234,.35); outline-offset: 2px; }

.lx-submit {
  width: 100%; height: 54px; border: 0; border-radius: 14px; color: #fff; font-weight: 700; font-size: 1rem;
  background: linear-gradient(135deg, var(--lx-b), var(--lx-c)); box-shadow: 0 12px 24px -10px rgba(47,125,234,.7);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; transition: transform .15s, box-shadow .2s, filter .2s;
}
.lx.is-member .lx-submit { background: linear-gradient(135deg, var(--lx-b), var(--lx-c)); }
.lx-submit:hover { filter: brightness(1.05); box-shadow: 0 16px 28px -12px rgba(47,125,234,.8); }
.lx-submit:active { transform: translateY(1px); }
.lx-submit i { transition: transform .2s; }
.lx-submit:hover i { transform: translateX(3px); }
.lx-submit .spinner-border { width: 1.1rem; height: 1.1rem; border-width: .16em; display: none; }
.lx-submit.is-loading { pointer-events: none; filter: saturate(.7); }
.lx-submit.is-loading .spinner-border { display: inline-block; }
.lx-submit.is-loading i { display: none; }

.lx-help { margin-top: 1.4rem; display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem; border-radius: 14px; background: #fff; border: 1px solid var(--lx-line); font-size: .84rem; color: var(--lx-muted); }
.lx-help .ic { flex: 0 0 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #e8f7ee; color: #15803d; font-size: 1.1rem; }
.lx-help a { color: var(--lx-ink); font-weight: 600; text-decoration: none; }
.lx-help a:hover { color: var(--lx-b); }
.lx-foot { margin-top: 1.6rem; font-size: .76rem; color: #98a2b3; text-align: center; }
.lx-foot a { color: inherit; }

.lx .alert { border-radius: 12px; font-size: .86rem; }

/* ---------- Responsif ---------- */
@media (max-width: 991.98px) {
  .lx { grid-template-columns: 1fr; }
  .lx-hero { padding: 1.4rem 1.25rem 1.6rem; gap: 1rem; }
  .lx-brand .logo { height: 50px; padding: 8px 14px; }
  .lx-brand .logo img { max-width: 160px; }
  .lx-headline h1 { font-size: 1.45rem; margin: .7rem 0 .3rem; }
  .lx-headline p, .lx-slides, .lx-dots, .lx-chips .hide-sm { display: none; }
  .lx-main { align-items: flex-start; padding-top: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-orb, .lx-card, .lx-chip .live { animation: none; }
  .lx-slide { transition: none; }
}
