title: HTML/CSS to put icon inside password input field
body: <p>Trying to fit this <code>fa fa-eye-slash</code> icon all the way at the right inside the password input field.</p>
  <p>Here's the relevant HTML &amp; CSS.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.join-login-main-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
  }
  
  .join-login-text {
    font-size: 3.5em;
    font-weight: bold;
    margin: 0;
  }
  
  .accent-text {
    color: #BC3A80;
  }
  
  .join-login-form {
    background-color: #202027;
    width: 50vw;
    max-width: 50%;
    padding: 2rem 4rem;
    border-radius: 20px;
  }
  
  .input-group {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
  }
  
  .input-group:last-child {
    margin-bottom: 0;
  }
  
  .input-group label {
    font-weight: bold;
    margin-bottom: .5rem;
  }
  
  .input-group input {
    outline: none;
    background: none;
    border: 1px solid #374669;
    font-size: 1em;
    padding: .5em;
    color: inherit;
    border-radius: 5px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;section class="join-login-main-section"&gt;
    &lt;h1 className="join-login-text"&gt;
      Join and
      &lt;span class="accent-text"&gt; generate!&lt;/span&gt;
    &lt;/h1&gt;
    &lt;form class="join-login-form"&gt;
      &lt;div class="input-group" name="username"&gt;
        &lt;label&gt;Username:&lt;/label&gt;
        &lt;input type="text"/&gt;
        &lt;p class ="registerMsg"&gt;
          * Between 3 and 15 chars
        &lt;/p&gt;
      &lt;/div&gt;
      &lt;div class="input-group" name="password"&gt;
        &lt;label&gt;Password:&lt;/label&gt;
        &lt;input type="password"/&gt;
        &lt;i class="fa fa-eye-slash"&gt;&lt;/i&gt;
        &lt;p class ="registerMsg"&gt;
          * Between 4 and 30 chars
        &lt;/p&gt;
      &lt;/div&gt;
      &lt;div className="input-group"&gt;
        &lt;button type="submit" class="btn"&gt;Join Now&lt;/button&gt;
      &lt;/div&gt;
    &lt;/form&gt;
  &lt;/section&gt;</code></pre>
  </div>
  </div>
  </p>