/* password-toggle.css — compartido por todas las pantallas auth */

.password-field {
  position: relative;
  display: block;
  width: 100%;
}

.password-field input[type="password"],
.password-field input[type="text"] {
  padding-right: 44px;
  width: 100%;
  box-sizing: border-box;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  padding: 0;
  transition: color 150ms ease, background 150ms ease, transform 100ms cubic-bezier(0.32, 0.72, 0, 1);
}

.password-toggle:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

.password-toggle:focus-visible {
  outline: 2px solid #FB670B;
  outline-offset: 2px;
  color: #FB670B;
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.92);
}

.password-toggle[aria-pressed="true"] {
  color: #FB670B;
}

.password-toggle svg {
  display: block;
  pointer-events: none;
}

/* Light mode */
@media (prefers-color-scheme: light) {
  .password-toggle {
    color: rgba(38, 38, 38, 0.55);
  }
  .password-toggle:hover {
    color: rgba(38, 38, 38, 0.9);
    background: rgba(0, 0, 0, 0.04);
  }
}

/* Mobile */
@media (max-width: 430px) {
  .password-toggle {
    width: 40px;
    height: 40px;
    right: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .password-toggle {
    transition: none;
  }
  .password-toggle:active {
    transform: translateY(-50%);
  }
}
