/* BornToLead — halaman depan/login. Navy · silver · gold. Tanpa dependensi. */
:root {
  --navy-900: #050d20;
  --navy-800: #07122a;
  --navy-700: #0b1b3d;
  --navy-600: #12275a;
  --navy-500: #1b3a7a;
  --silver-100: #f2f5f9;
  --silver-200: #d9e0ea;
  --silver-400: #9aa8bd;
  --silver-500: #7d8ba1;
  --gold-300: #ffe39a;
  --gold-400: #f6cd5f;
  --gold-500: #e9b23c;
  --gold-600: #c98d1e;
  --danger: #ff8a8a;
  --ok: #8fe3b0;
  --radius: 22px;
  --font: "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--silver-100);
  background: var(--navy-800);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- latar imersif (gradien + cahaya, tanpa gambar besar) ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 30%, var(--navy-600) 0%, transparent 60%),
    radial-gradient(90% 80% at 85% 70%, #0f2149 0%, transparent 65%),
    linear-gradient(160deg, var(--navy-700) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
}
.bg-photo, .bg-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-photo img { object-fit: cover; object-position: 60% 50%; transform: scale(1.04); filter: blur(2px) saturate(.9); }
.bg-shade { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 32, .78) 0%, rgba(7, 18, 42, .55) 45%, rgba(7, 18, 42, .62) 70%, rgba(5, 13, 32, .82) 100%),
    linear-gradient(180deg, rgba(5, 13, 32, .35) 0%, rgba(5, 13, 32, .15) 40%, rgba(5, 13, 32, .85) 100%); }
@media (max-width: 959px) { .bg-shade { background: linear-gradient(180deg, rgba(5, 13, 32, .55), rgba(5, 13, 32, .88) 55%); } }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .3; mix-blend-mode: screen; }
.bg-glow--gold { width: 46vmax; height: 46vmax; left: -8vmax; top: 8vmax;
  background: radial-gradient(circle, rgba(233, 178, 60, .38), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.bg-glow--blue { width: 50vmax; height: 50vmax; right: -14vmax; bottom: -16vmax;
  background: radial-gradient(circle, rgba(60, 110, 230, .35), transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.bg-grid { position: absolute; inset: 0; opacity: .04;
  background-image: linear-gradient(var(--silver-200) 1px, transparent 1px), linear-gradient(90deg, var(--silver-200) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); }
@keyframes drift { to { transform: translate(4vmax, -3vmax) scale(1.06); } }

/* ---------- tata letak: desktop kiri-kanan, mobile atas-bawah ---------- */
.page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: clamp(8px, 3vw, 32px);
  padding: clamp(16px, 4vw, 48px) clamp(16px, 5vw, 72px) 48px;
  max-width: 1440px;
  margin: 0 auto;
}
@media (min-width: 960px) {
  .page { grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 72px); padding-bottom: 64px; }
}

/* ---------- branding ---------- */
.hero-art { display: block; width: min(86vw, 560px); }
@media (min-width: 960px) { .hero-art { width: min(44vw, 640px); } }
.hero-art img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(233, 178, 60, .2));
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.features {
  list-style: none; margin: clamp(4px, 2vw, 20px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); width: min(92vw, 560px);
}
.features li {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 4px 10px; text-align: center; font-weight: 600; font-size: clamp(12px, 1.4vw, 15px); line-height: 1.25; color: var(--silver-100);
}
.features li + li { border-left: 1px solid rgba(217, 224, 234, .22); }
.features svg { width: 30px; height: 30px; fill: var(--gold-400); filter: drop-shadow(0 2px 8px rgba(233, 178, 60, .35)); }
@media (max-width: 959px) { .features { display: none; } }

/* ---------- panel login (kaca navy dengan bingkai silver) ---------- */
.panel {
  position: relative; width: min(100%, 460px);
  padding: clamp(24px, 3.2vw, 40px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(27, 46, 92, .78), rgba(11, 25, 58, .86));
  border: 1px solid rgba(217, 224, 234, .28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  animation: rise .9s .12s cubic-bezier(.2, .8, .2, 1) both;
}
.panel::before { /* garis emas tipis di atas panel */
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent); opacity: .8;
}
.panel--solo { grid-column: 1 / -1; }
.panel h2 { margin: 6px 0 6px; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.01em; color: #fff; }
.subtitle { margin: 0 0 22px; color: var(--silver-200); font-size: 15px; line-height: 1.45; }

.lang { display: flex; width: max-content; margin: 0 0 6px auto; padding: 3px; border-radius: 999px;
  background: rgba(5, 13, 32, .55); border: 1px solid rgba(217, 224, 234, .18); }
.lang button { font: 700 13px/1 var(--font); color: var(--silver-200); background: transparent; border: 0;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--silver-100); color: var(--navy-800); }
.lang button:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }

.view { display: grid; gap: 14px; }
.view[hidden], [data-mode][hidden] { display: none !important; }
.field { position: relative; display: block; }
.field > svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: var(--silver-400); pointer-events: none; }
.field input {
  width: 100%; height: 54px; padding: 0 48px 0 48px;
  font: 500 16px var(--font); color: #fff;
  background: rgba(5, 13, 32, .5); border: 1px solid rgba(154, 168, 189, .45); border-radius: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input::placeholder { color: var(--silver-400); }
.field input:hover { border-color: rgba(217, 224, 234, .65); }
.field input:focus { outline: none; border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(246, 205, 95, .22); background: rgba(5, 13, 32, .7); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.reveal { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px;
  display: grid; place-items: center; background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
.reveal svg { width: 20px; height: 20px; fill: var(--silver-400); }
.reveal[aria-pressed="true"] svg { fill: var(--gold-400); }
.reveal:focus-visible { outline: 2px solid var(--gold-400); }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 4px; font-size: 15px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--silver-100); }
.check input { appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; cursor: pointer;
  border: 1px solid rgba(217, 224, 234, .5); background: rgba(5, 13, 32, .5); display: grid; place-items: center; }
.check input:checked { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); border-color: var(--gold-500); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--navy-800); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }
.link { color: var(--gold-400); font-weight: 600; text-underline-offset: 3px; }
.link:hover { color: var(--gold-300); }
.link:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 4px; }

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 58px; margin-top: 6px;
  font: 800 19px var(--font); color: var(--navy-900); letter-spacing: .01em; cursor: pointer;
  border: 1px solid #ffeab0; border-radius: 14px;
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-400) 45%, var(--gold-500) 100%);
  box-shadow: 0 10px 26px rgba(233, 178, 60, .32), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(150, 95, 10, .35);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn-gold svg { width: 22px; height: 22px; fill: currentColor; transition: transform .15s; }
.btn-gold:hover { filter: brightness(1.05); box-shadow: 0 14px 34px rgba(233, 178, 60, .42), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-gold:hover svg { transform: translateX(3px); }
.btn-gold:active { transform: translateY(1px); }
.btn-gold:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn-gold[aria-busy="true"] { cursor: progress; filter: saturate(.7) brightness(.95); }
.btn-gold[aria-busy="true"] span::after { content: " …"; }

.divider { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(217, 224, 234, .22); }
.divider span { width: 22px; height: 4px; background: radial-gradient(circle, var(--silver-400) 1.5px, transparent 2px) 0 0/7px 4px repeat-x; opacity: .7; }
.switch { margin: 6px 0 0; text-align: center; color: var(--silver-200); font-size: 15px; }
.hint { margin: 0; color: var(--silver-200); font-size: 14px; line-height: 1.45; }

.alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; border: 1px solid; }
.alert[data-kind="error"] { color: #ffd6d6; background: rgba(255, 90, 90, .12); border-color: rgba(255, 138, 138, .45); }
.alert[data-kind="ok"] { color: #d5f7e3; background: rgba(80, 200, 130, .12); border-color: rgba(143, 227, 176, .45); }
.config-warning { margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: var(--gold-300);
  background: rgba(233, 178, 60, .1); border: 1px dashed rgba(233, 178, 60, .5); }

.foot { text-align: center; padding: 0 16px 20px; color: var(--silver-500); }
.noscript { text-align: center; color: var(--gold-300); }

/* mobile: panel lebih rapat, logo di atas */
@media (max-width: 959px) {
  .page { align-content: start; }
  .panel { margin-top: -4px; }
}
@media (max-width: 380px) {
  .row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
