"""
Auth Frontend Views - Login page
"""
from fastapi import APIRouter, Request
from fastapi.responses import HTMLResponse
from fastapi.templating import Jinja2Templates

router = APIRouter()
templates = Jinja2Templates(directory="app")


@router.get("/login", response_class=HTMLResponse)
async def login_page(request: Request):
    """
    Render login page
    """
    return templates.TemplateResponse(
        "auth/frontend/login.html",
        {"request": request}
    )
