Use the .navbar-form class to vertically align form elements (same padding as links) inside the navbar.
The .input-group class is a container to enhance an input by adding an icon, text or a button in front or behind it as a "help text".
The .input-group-btn class attaches a button next to an input field. This is often used as a search bar: