/* =====================================================================
   HALAMAN LOGIN — panel merek (kontur + sungai) di kiri, formulir di kanan
   ===================================================================== */
body.login-page { background: var(--ink-950); }

.login-shell {
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
  background: var(--surface);
}

/* ---------- panel merek ---------- */
.login-art {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(28px, 4vw, 56px); color: #d9e4f2;
  background: var(--ink-800);
}
.login-art .topo {
  position: absolute; z-index: -1; width: 120%; aspect-ratio: 1; left: -10%; top: -20%;
  background: url('../images/topo.svg') center / contain no-repeat; opacity: .26;
  animation: topo-drift 150s linear infinite;
}
.login-art .topo.t2 { width: 70%; left: auto; right: -25%; top: auto; bottom: -35%; opacity: .16; animation-duration: 110s; animation-direction: reverse; }
.login-art .waves { position: absolute; z-index: -1; left: 0; bottom: 0; width: 100%; height: 150px; overflow: hidden; }
.login-art .waves svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.login-art .waves .w1 path { fill: rgba(255, 255, 255, .05); } .login-art .waves .w1 { animation: wave-slide 26s linear infinite; }
.login-art .waves .w2 path { fill: rgba(255, 255, 255, .06); } .login-art .waves .w2 { animation: wave-slide 17s linear infinite reverse; height: 80%; }
.login-art .waves .w3 path { fill: rgba(157, 189, 227, .1); } .login-art .waves .w3 { animation: wave-slide 11s linear infinite; height: 55%; }

.login-art .brand { border: 0; margin: 0; padding: 0; }
.login-art .brand-text { font-size: 13.5px; }
.login-pitch { max-width: 560px; padding-block: 40px; }
.login-pitch h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.login-pitch h2 em { font-style: normal; color: var(--silt-300); }
.login-pitch p { margin-top: 18px; max-width: 460px; font-size: 15.5px; line-height: 1.65; color: #b7c8e0; }
.login-points { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.login-points li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #d6e1f0; }
.login-points i { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 15px; color: var(--silt-300); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.login-art small { font-size: 12px; color: #8aa0bf; }

/* ---------- panel formulir ---------- */
.login-main { display: grid; place-items: center; padding: 32px clamp(20px, 5vw, 64px); background: var(--bg); position: relative; }
.login-card { width: 100%; max-width: 420px; }
.login-card.has-error { animation: shake .5s var(--ease-in-out); }
.login-card .mobile-brand { display: none; }
.login-card h1 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; }
.login-card .desc { margin: 8px 0 28px; color: var(--muted); font-size: 14.5px; }

.alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; }
.alert-error { color: var(--red); background: var(--red-bg); border: 1px solid var(--red-line); animation: rise-sm var(--t-med) var(--ease-out) both; }

.field .input-icon .input { height: 52px; border-radius: 13px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  border: 0; border-radius: 10px; display: grid; place-items: center; font-size: 17px;
  background: transparent; color: var(--muted); transition: background var(--t-fast), color var(--t-fast);
}
.pw-toggle:hover { background: var(--brand-100); color: var(--brand-600); }
.input-icon.has-toggle .input { padding-right: 52px; }
.login-options { margin: 4px 0 22px; }
.remember { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; user-select: none; }
.remember input { width: 18px; height: 18px; accent-color: var(--brand-600); cursor: pointer; }
.login-btn { width: 100%; min-height: 54px; font-size: 15.5px; border-radius: 14px; }
.login-foot { margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--line-strong); text-align: center; font-size: 12.5px; color: var(--muted); }

/* masuk berurutan */
.login-card > *, .login-pitch > *, .login-art > .brand, .login-art > small { animation: rise .8s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + .1s); }

.login-theme { position: absolute; top: 18px; right: 18px; }

@media (max-width: 960px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-card .mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
  .login-card .mobile-brand .brand-text { color: var(--text); }
  .login-card .mobile-brand .brand-text .sub { color: var(--silt-500); }
}
