/* Show/hide password toggle — use with .password-input-wrap around the input */

.password-input-wrap {
    position: relative;
    width: 100%;
    display: block;
    overflow: visible;
}

/* Room for icon; override stronger login rules e.g. .form-field input { padding: 12px 16px } */
.password-input-wrap > input[type="password"],
.password-input-wrap > input[type="text"] {
    padding-right: 2.75rem !important;
    width: 100%;
    box-sizing: border-box;
}

.login-form .form-field .password-input-wrap > input[type="password"],
.login-form .form-field .password-input-wrap > input[type="text"] {
    padding-right: 2.75rem !important;
}

.password-toggle-btn {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: #475569;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
    line-height: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.password-toggle-btn:hover {
    color: var(--primary-color, #0d47a1);
    background: rgba(0, 0, 0, 0.05);
}

.password-toggle-btn:focus-visible {
    outline: 2px solid var(--primary-color, #0d47a1);
    outline-offset: 1px;
}

.password-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    pointer-events: none;
}

.password-toggle-icon svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    display: block;
    overflow: visible;
    vertical-align: middle;
}
