.input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.input-group > .form-control {
    flex: 1 1 auto;
}

.input-group > .btn.btn-password-toggle {
    flex: 0 0 auto;
}

.input-group .btn.btn-password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    padding-top: 0;
    padding-bottom: 0;
    background: #f8f9fa;
    border-color: #ced4da;
    color: #6c757d;
    align-self: stretch;
}

.input-group .btn.btn-password-toggle:hover {
    background: #eef1f4;
    color: #495057;
}

.input-group .btn.btn-password-toggle:focus {
    box-shadow: none;
}

.input-group .btn.btn-password-toggle i {
    font-size: 1rem;
    line-height: 1;
}

.input-group > .form-control {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .btn.btn-password-toggle {
    border-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group:focus-within > .form-control,
.input-group:focus-within > .btn.btn-password-toggle {
    border-color: #86b7fe;
}
