.login-body{
  background:linear-gradient(180deg,#0B1020,#0C1124 60%);
  color:var(--text);
  margin:0; font:14px/1.6 system-ui,Segoe UI,Roboto,Ubuntu;
}
.login-wrap{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  padding:24px;
}
.login-card{
  width:100%; max-width:380px; background:var(--surface);
  border:1px solid var(--border); border-radius:14px; padding:20px;
}
.login-card .brand{display:flex; align-items:center; gap:10px; margin-bottom:6px}
.login-card h1{margin:.1em 0 .8em; font-size:22px}
.input{
  width:100%; padding:10px; border:1px solid var(--border); border-radius:8px;
  background:#0f1836; color:#fff; margin:.2rem 0 .8rem;
}
.btn{
  width:100%; padding:10px; border:0; border-radius:8px; background:var(--accent);
  color:#fff; font-weight:700; cursor:pointer; margin-top:2px;
}
.alert{
  background:#3b1320; border:1px solid #71263a; color:#ffd6e0; border-radius:8px; padding:10px; margin-bottom:10px
}
.muted{color:var(--muted); font-size:12px}
.center{text-align:center}
.input-wrap{
  position: relative;
}
.input-wrap .input{
  padding-right: 44px;      /* ruang untuk tombol mata */
}
.toggle-pwd{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
}
.toggle-pwd:focus{
  outline: 2px solid rgba(13,110,253,.5);
  outline-offset: 2px;
}
.toggle-pwd svg{
  width: 20px;
  height: 20px;
  fill: #6b7280;
}
.toggle-pwd:hover svg{
  filter: brightness(0.8);
}
/* default: eye on terlihat, eye-off disembunyikan */
.toggle-pwd .icon-eye-off{ display: none; }
/* ketika aktif: ganti icon */
.toggle-pwd.is-on .icon-eye{ display: none; }
.toggle-pwd.is-on .icon-eye-off{ display: block; }
