.woocommerce-form-login .password-input {
    position: relative; /* This is crucial. It sets the parent for the absolute positioning. */
}

.woocommerce-form-login .password-input .show-password-input, .woocommerce-form-login .password-input .show-password-input {
    all: unset; /* This resets all conflicting styles. */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23a0a0a0"><path d="M12 4.5c-5 0-9.27 3.11-12 7.5 2.73 4.39 7 7.5 12 7.5s9.27-3.11 12-7.5c-2.73-4.39-7-7.5-12-7.5zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>');
    background-size: 26px;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 12px; /* Adjust this value as needed */
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    z-index: 10;
}

.woocommerce-form-register .password-input {
    position: relative;
}

.woocommerce-form-register .password-input .show-password-input {
    all: unset;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23a0a0a0"><path d="M12 4.5c-5 0-9.27 3.11-12 7.5 2.73 4.39 7 7.5 12 7.5s9.27-3.11 12-7.5c-2.73-4.39-7-7.5-12-7.5zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>');
    background-size: 26px;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    z-index: 10;
}

input#rememberme {
    display: flex;
}

label.woocommerce-form__label.woocommerce-form__label-for-checkbox.woocommerce-form-login__rememberme {
    display: flex;
}