Toggle password visibility

<div class="container">
<!-- Text input -->
<input type="text" class="container__input" />
<!-- Toggle button sticks to the right -->
<button>
...
</button>
</div>
.container {
display: flex;
/* Border */
border: 1px solid rgba(0, 0, 0, 0.3);
}
.container__input {
border-color: transparent;
/* Take available width */
flex: 1;
}