/* UX addons (2026-11-30, owner feature batch): styles for the password
   visibility toggle and the submit-loading state in js/ux-addons.js.
   Loaded site-wide from layouts/site.blade.php; every rule matches only
   add-on markup, so pages without those surfaces are unaffected. */

/* Password visibility toggle */
.pw-wrap { position: relative; display: block; }
.pw-wrap > input { padding-right: 52px !important; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 10px; background: transparent;
  color: #5b6b7b; cursor: pointer; padding: 0;
}
.pw-toggle:hover { background: rgba(10, 147, 216, .08); color: #0777b0; }
.pw-toggle:focus-visible { outline: 2px solid #0a93d8; outline-offset: 1px; }
.pw-toggle svg { width: 20px; height: 20px; }

/* Submit-loading spinner (button content is swapped by ux-addons.js) */
.btn-spinner {
  display: inline-block; width: 15px; height: 15px; margin-right: 8px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; vertical-align: -2px;
  animation: ck-spin .7s linear infinite;
}
@keyframes ck-spin { to { transform: rotate(360deg); } }
button.is-loading, input.is-loading { cursor: progress; }
@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation-duration: 1.8s; }
}
