/* ui-kit.css — cross-page micro-interactions loaded by every layout (main, marketing, guest). */
/* ---------- Submit buttons lock and spin while the form is in flight ---------- */
.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  text-shadow: none !important;
}
.is-loading > * { visibility: hidden; }
.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .28);
  border-top-color: currentColor;
  color: #fff;
  animation: uiSpin .7s linear infinite;
}
.btn-secondary.is-loading::after,
.btn-outline-secondary.is-loading::after,
.btn-light.is-loading::after {
  border-color: rgba(124, 176, 255, .28);
  border-top-color: #7cb0ff;
}
@keyframes uiSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .is-loading::after { animation-duration: 1.6s; }
}

/* ---------- Pagination: range summary + compact on phones ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
}
.pager .pagination { margin: 0; }
.pager-summary {
  font-size: 12.5px;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
}
.pager-summary strong { color: var(--text-primary, #e2e8f0); font-weight: 600; }
@media (max-width: 640px) {
  .pager { justify-content: center; }
  .pager .page-item.d-none { display: none !important; }
  .pager .pager-summary { order: -1; width: 100%; text-align: center; }
}

/* ---------- Skip link for keyboard users ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 999px;
  background: #0b1226;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 0 2px rgba(24, 231, 255, .55);
}
.skip-link:focus { top: 12px; outline: none; }

/* ---------- Show/hide toggle auto-attached to password fields ---------- */
.pw-field { position: relative; display: block; }
.pw-field > input { padding-right: 48px !important; }
.pw-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 6px;
  margin: auto 0;
  width: 40px;
  height: 40px;
  transform: none !important;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: #18e7ff; background: rgba(24, 231, 255, .08); outline: none; }
@media (max-width: 768px) { .pw-toggle { width: 44px; height: 44px; } }
