<form class="form-login login" method="POST" action="{% url 'login' %}">
{% csrf_token %}
<div class="form__input">
<div class="form__input_gr">
<input type="text" name="username" id="username" placeholder="Login" required>
<i class="fas fa-user"></i>
</div>
</div>
<div class="form__input" >
<div class="form__input_gr">
<input type="password" name="password" id="password" placeholder="Password" required>
<i class="fas fa-lock"></i>
</div>
</div>
<div class="form__input">
<input type="submit" value="Войти">
</div>
</form>