/* Show/hide control for the password value being typed (never a stored hash).

   The toggle is a flex sibling of the input — not absolutely positioned —
   so it stays inside the field, never overlaps typed characters, and stays
   correct in RTL even when the input itself is direction:ltr.
*/
.da-pw-field {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.da-pw-field:focus-within {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.da-pw-field > input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  padding-block: 0.7rem;
  padding-inline-start: 0.75rem;
  padding-inline-end: 0.35rem !important;
  box-sizing: border-box;
}

.da-pw-toggle {
  flex: 0 0 auto;
  position: static;
  inset: auto;
  transform: none;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  min-height: 2.35rem;
  margin: 0 0.2rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  line-height: 0;
}

.da-pw-toggle:hover {
  color: #ea580c;
  background: rgba(249, 115, 22, 0.08);
}

.da-pw-toggle:focus {
  outline: none;
}

.da-pw-toggle:focus-visible {
  color: #ea580c;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.28);
}

.da-pw-toggle .da-pw-icon {
  display: block;
}

.da-pw-toggle .da-pw-icon--hide,
.da-pw-field.is-visible .da-pw-icon--show {
  display: none;
}

.da-pw-field.is-visible .da-pw-icon--hide {
  display: block;
}

.da-ua-field .da-pw-field > input[type="text"],
.da-ua-field .da-pw-field > input[type="password"] {
  height: 2.75rem;
}

.da-ua-pw-hint {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
}

.lp-form .da-pw-field > input,
.lp-field .da-pw-field > input,
.auth-modal__form .da-pw-field > input,
.membership-modal__field .da-pw-field > input,
.auth-form .da-pw-field > input {
  direction: ltr;
  text-align: left;
}
