.password-field__control {
    position: relative;
    display: flex;
    align-items: stretch;
}

.password-field__input {
    padding-right: 2.75rem;
}

.password-field__toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted, #6c757d);
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.password-field__toggle:hover:not(:disabled) {
    color: var(--brand-primary, #4f6ef7);
    background: rgba(79, 110, 247, 0.08);
}

.password-field__toggle:focus-visible {
    outline: 2px solid var(--brand-primary, #4f6ef7);
    outline-offset: 2px;
}

.password-field__toggle:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.password-field__toggle[aria-pressed="true"] {
    color: var(--brand-primary, #4f6ef7);
    background: rgba(79, 110, 247, 0.1);
}

.password-field__icon {
    width: 1.125rem;
    height: 1.125rem;
    pointer-events: none;
}

.password-field__toggle[aria-pressed="true"] .password-field__icon--show {
    display: none;
}

.password-field__toggle[aria-pressed="true"] .password-field__icon--hide {
    display: block;
}

.password-field__toggle[aria-pressed="false"] .password-field__icon--hide {
    display: none;
}

.password-field__toggle[aria-pressed="false"] .password-field__icon--show {
    display: block;
}
