/* ============================================================
   MyCPNS — Indikator Kekuatan Password + Gradasi Tombol Auth
   Pasangan: password-strength.js
   Warna level: Lemah #dc2626 · Sedang #d97706 · Kuat #16a34a
   Gradasi tombol (pilihan Danzen): Ungu #8b5cf6 -> Biru #2e6be6
   ============================================================ */

/* --- Blok indikator (dibuat otomatis oleh JS) --- */
.pw-strength {
  margin-top: 9px;
}
.pw-bars {
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.pw-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.65, 0, 0.35, 1), background-color 0.35s ease;
}
.pw-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: baseline;
  min-height: 19px;
  margin-top: 6px;
  font-size: 12.5px;
  color: #64748b;
}
.pw-line .pw-lvl {
  font-weight: 700;
}
.pw-line .pw-hint {
  color: #94a3b8;
}

/* --- Penanda kecocokan konfirmasi password --- */
.pw-match {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 600;
}
.pw-match.show {
  display: flex;
}
.pw-match.ok {
  color: #16a34a;
}
.pw-match.bad {
  color: #dc2626;
}
.pw-match svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* --- Gradasi tombol auth (fallback umum di luar .auth-card) --- */
.btn-gradient:not(.auth-card *),
button.btn-gradient:not(.auth-card *),
.btn.btn-primary.btn-gradient,
a.btn-gradient:not(.auth-card *) {
  background-color: #2e6be6 !important;
  background-image: linear-gradient(90deg, #8b5cf6 0%, #2e6be6 100%) !important;
  color: #ffffff !important;
  border: none !important;
}
.btn-gradient:not(.auth-card *):hover,
button.btn-gradient:not(.auth-card *):hover,
.btn.btn-primary.btn-gradient:hover,
a.btn-gradient:not(.auth-card *):hover {
  filter: brightness(1.07);
  opacity: 1 !important;
}
