﻿.password-toggle-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

    /* Make room for the eye icon on the right */
    .password-toggle-wrapper input[type="password"],
    .password-toggle-wrapper input[type="text"] {
        padding-right: 2.5rem;
        box-sizing: border-box;
    }

.password-toggle-button {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    /* kill any framework/Browser focus styles that draw boxes */
    outline: none;
    box-shadow: none;
}

    /* Also remove focus/active outlines explicitly */
    .password-toggle-button:focus,
    .password-toggle-button:active {
        outline: none;
        box-shadow: none;
        background: transparent;
    }

/* Font Awesome icon styling */
.password-toggle-icon {
    font-size: 1.6rem;
    line-height: 1;
    user-select: none;
}
