/* Login BAMS — padanan visual LoginPageRich (web-ui). Mandiri, tidak bergantung tema Sneat. */
.lg-page, .lg-page * { box-sizing: border-box; }
.lg-page { margin: 0; }
.lg-page svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.lg-root {
  --card-bg: #FFFFFF; --card-fg: #16161A; --muted: #7C7C84; --label: #4A4A50;
  --field-bg: #F1F4FA; --field-bd: #DCE3F0; --field-bd-focus: #1F4A8E; --field-bg-focus: #FFFFFF;
  --input-fg: #16161A; --input-ph: #7C7C84; --icon: #7C7C84; --icon-focus: #1F4A8E;
  --err-bg: #FBEAEC; --err-fg: #C51F35; --err-bd: #F3C5CB; --divider: #E3E3DB;
  --badge-bg: #E8EEFC; --badge-fg: #1F4A8E; --card-shadow: 0 30px 80px -20px rgba(5,20,50,.6);
  --bg: linear-gradient(135deg, #2457A8 0%, #1F4A8E 35%, #12315F 70%, #0B2142 100%);
  position: relative; min-height: 100vh; width: 100%; overflow: clip; color: #FAFAF7;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.lg-root[data-theme="dark"] {
  --card-bg: #0E1E3A; --card-fg: #E8EEF9; --muted: #8FA3C4; --label: #C3D0E6;
  --field-bg: #0A1730; --field-bd: #233A63; --field-bd-focus: #5B8FDB; --field-bg-focus: #0A1730;
  --input-fg: #E8EEF9; --input-ph: #5C7196; --icon: #5C7196; --icon-focus: #8DB4F2;
  --err-bg: #3A1620; --err-fg: #FF8A98; --err-bd: #6B2433; --divider: #233A63;
  --badge-bg: #183057; --badge-fg: #8DB4F2; --card-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  --bg: linear-gradient(135deg, #12315F 0%, #0B2142 50%, #060F20 100%);
}

/* Latar */
.lg-grid { position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; }
.lg-orb { position: absolute; border-radius: 50%; pointer-events: none; animation: lg-orb 14s ease-in-out infinite; }
.lg-orb.a { top: -160px; left: -160px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(91,143,219,.55), transparent 65%); }
.lg-orb.b { bottom: -192px; right: -120px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(220,34,41,.45), transparent 65%); animation-delay: -6s; }
.lg-stripe { position: absolute; top: 0; right: -160px; width: 96px; height: 140%; transform: rotate(24deg); pointer-events: none;
  background: linear-gradient(180deg, rgba(220,34,41,0), rgba(220,34,41,.55), rgba(220,34,41,0)); }
.lg-net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Tombol tema */
.lg-tools { position: absolute; top: 20px; right: 20px; z-index: 30; display: flex; gap: 8px; }
.lg-theme { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #FAFAF7; font-size: 16px; transition: background .2s; }
.lg-theme:hover { background: rgba(255,255,255,.26); }
.lg-root[data-theme="light"] .lg-ic-sun, .lg-root[data-theme="dark"] .lg-ic-moon { display: none; }

/* Layout */
.lg-wrap { position: relative; z-index: 10; min-height: 100vh; max-width: 80rem; margin: 0 auto; padding: 56px 24px;
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.lg-left { display: none; }
@media (min-width: 1024px) {
  .lg-wrap { grid-template-columns: 1.15fr 1fr; padding: 56px 48px; }
  .lg-left { display: block; }
  .lg-mobile-logo { display: none !important; }
}

/* Kiri */
.lg-left { animation: lg-in-left .5s ease-out both; }
.lg-logo { display: block; height: 96px; width: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); }
.lg-chip { margin-top: 32px; display: flex; width: fit-content; align-items: center; gap: 8px; height: 32px; padding: 0 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.lg-dot { width: 6px; height: 6px; border-radius: 50%; background: #DC2229; }
.lg-h1 { margin: 20px 0 0; font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
@media (min-width: 1280px) { .lg-h1 { font-size: 48px; } }
.lg-h1 span { color: #FF6B75; }
.lg-lead { margin: 16px 0 0; max-width: 32rem; font-size: 15px; color: rgba(250,250,247,.75); line-height: 1.6; }
.lg-feats { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 36rem; }
.lg-feat { border-radius: 16px; padding: 16px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  transition: background .2s; animation: lg-in-up .4s ease-out both; }
.lg-feat:hover { background: rgba(255,255,255,.15); }
.lg-feat:nth-child(1) { animation-delay: .15s; } .lg-feat:nth-child(2) { animation-delay: .23s; }
.lg-feat:nth-child(3) { animation-delay: .31s; } .lg-feat:nth-child(4) { animation-delay: .39s; }
.lg-feat-ic { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #DC2229;
  box-shadow: 0 8px 20px -6px rgba(220,34,41,.8); color: #fff; font-size: 18px; }
.lg-feat b { display: block; margin-top: 12px; font-size: 15px; font-weight: 700; }
.lg-feat p { margin: 4px 0 0; font-size: 13px; color: rgba(250,250,247,.65); line-height: 1.5; }
  animation: lg-float 7s ease-in-out infinite; }

/* Kartu form */
.lg-main { width: 100%; max-width: 28rem; margin: 0 auto; animation: lg-in-card .45s ease-out both; }
.lg-mobile-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.lg-mobile-logo img { height: 64px; width: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); }
.lg-card { border-radius: 28px; overflow: hidden; background: var(--card-bg); color: var(--card-fg); box-shadow: var(--card-shadow); }
.lg-bar { height: 6px; background: linear-gradient(90deg, #1F4A8E, #5B8FDB 50%, #DC2229); }
.lg-body { padding: 32px; }
@media (min-width: 640px) { .lg-body { padding: 40px; } }
.lg-title { margin: 16px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: inherit; }
.lg-sub { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.lg-err { margin-top: 20px; display: flex; align-items: flex-start; gap: 10px; border-radius: 12px; border: 1px solid var(--err-bd); padding: 12px 14px;
  font-size: 13px; font-weight: 500; background: var(--err-bg); color: var(--err-fg); animation: lg-in-down .25s ease-out both; }
.lg-err svg { width: 16px; height: 16px; margin-top: 1px; }
.lg-form { margin-top: 24px; display: grid; gap: 16px; }
.lg-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--label); }
.lg-field { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--field-bd);
  background: var(--field-bg); transition: border-color .2s, background .2s; }
.lg-field:focus-within { border-color: var(--field-bd-focus); background: var(--field-bg-focus); }
.lg-field > svg { width: 16px; height: 16px; color: var(--icon); transition: color .2s; }
.lg-field:focus-within > svg { color: var(--icon-focus); }
.lg-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--input-fg); padding: 0; box-shadow: none; }
.lg-field input::placeholder { color: var(--input-ph); }
.lg-eye { border: 0; background: transparent; padding: 0; cursor: pointer; color: var(--muted); display: flex; font-size: 16px; }
.lg-eye:hover { opacity: .7; }
.lg-eye .off { display: none; } .lg-eye.on .off { display: block; } .lg-eye.on .show { display: none; }
.lg-submit { margin-top: 8px; width: 100%; height: 48px; border: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #1F4A8E 0%, #2F63B8 55%, #DC2229 140%);
  transition: filter .2s, box-shadow .2s, transform .1s; }
.lg-submit:hover { filter: brightness(1.1); box-shadow: 0 14px 30px -10px rgba(31,74,142,.9); }
.lg-submit:active { transform: scale(.99); }
.lg-submit:disabled { opacity: .5; cursor: not-allowed; }
.lg-submit .arrow { transition: transform .2s; font-size: 16px; }
.lg-submit:hover .arrow { transform: translateX(4px); }
.lg-submit .spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: lg-spin .8s linear infinite; }
.lg-submit.loading .spin { display: block; } .lg-submit.loading .arrow { display: none; }
.lg-foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--divider); text-align: center; font-size: 13px; color: var(--muted); }

/* Animasi */
@keyframes lg-pulse { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.lg-pulse { animation: lg-pulse 4s ease-in-out infinite; }
@keyframes lg-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes lg-orb { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-20px) scale(1.08); } }
@keyframes lg-dot { 0%,80%,100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
@keyframes lg-spin { to { transform: rotate(360deg); } }
@keyframes lg-in-left { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes lg-in-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lg-in-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes lg-in-card { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lg-pulse, .lg-orb, .lg-left, .lg-feat, .lg-main, .lg-err { animation: none; }
}
