/* CS Repair — mostrar/ocultar palavra-passe */
.cs-pw-toggle-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
}

.cs-pw-toggle-wrap > .input,
.cs-pw-toggle-wrap > input[type="password"],
.cs-pw-toggle-wrap > input[type="text"] {
  width: 100%;
  max-width: 100%;
  padding-right: 44px !important;
  box-sizing: border-box;
}

.cs-pw-toggle-btn {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #546e7a;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.cs-pw-toggle-btn:hover {
  background: rgba(13, 71, 161, 0.08);
  color: #0d47a1;
}

.cs-pw-toggle-btn:focus-visible {
  outline: 2px solid #1565c0;
  outline-offset: 1px;
}

.cs-pw-toggle-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
  pointer-events: none;
}

.cs-pw-toggle-btn .cs-pw-toggle-icon--hide {
  display: none;
}

.cs-pw-toggle-btn.is-visible .cs-pw-toggle-icon--show {
  display: none;
}

.cs-pw-toggle-btn.is-visible .cs-pw-toggle-icon--hide {
  display: block;
}

body.admin.cs-mobile-ui .cs-pw-toggle-btn,
body.cs-mobile-ui .cs-pw-toggle-btn {
  width: var(--cs-pwa-touch, 44px);
  height: var(--cs-pwa-touch, 44px);
  min-width: var(--cs-pwa-touch, 44px);
  min-height: var(--cs-pwa-touch, 44px);
  right: 2px;
}
