text: from django import forms
  from django.contrib.auth.models import User
  from django.contrib.auth.forms import AuthenticationForm, UsernameField
  class LoginForm(forms.Form):
      username = forms.CharField()
      password = forms.CharField(widget=forms.PasswordInput)
  
  
  class RestaurantLoginForm(AuthenticationForm):
      def __init__(self, *args, **kwargs):
          super(RestaurantLoginForm, self).__init__(*args, **kwargs)
  
      username = UsernameField(widget=forms.TextInput(
          attrs={'class': 'form-control', 'placeholder': 'Username', 'id': 'id_username'}))
      password = forms.CharField(widget=forms.PasswordInput(
          attrs={
              'class': 'form-control',
              'placeholder': 'Password',
              'id': 'id_password',
          }
  ))