To create a secure password input field in an HTML form, use the following code:
<form>
  <div>
    <label for="user-password">Password:</label>
    <input 
      type="password" 
      id="user-password" 
      name="password" 
      minlength="8" 
      required
    >
  </div>
  <button type="submit">Submit</button>
</form>