def anzeigen(fehlertext = ""):
    if fehlertext != "":
        fehlertext = f'<p class="fehler">{fehlertext}<p>'
    return f"""
<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title>SnackXPress Login</title>
    <style>
        p.fehler {{
        color: red
        }}
        body {{
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
        }}

        .container {{
            width: 300px;
            margin: auto;
            padding: 20px;
            border: 1px solid #ccc;
            margin-top: 100px;
            background-color: #fff;
        }}

        label {{
            display: block;
            margin-bottom: 8px;
        }}

        input {{
            width: 100%;
            padding: 8px;
            margin-bottom: 15px;
            box-sizing: border-box;
        }}

        button {{
            background-color: #4CAF50;
            color: white;
            padding: 10px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }}

        .register-link {{
            text-align: center;
            margin-top: 10px;
        }}
</style>
</head>
<body>

<div class="container">
   <h2>Anmeldung</h2>
   <!-- anmeldeformular-->
    <form action="/snackxpress/python/login.py" method="post"> 
      
       {fehlertext}
     
       <!-- Benutzernamefeld -->
        <label for="username">Benutzername:</label>
        <input type="text" id="username" name="username" required>

       <!-- Passwortfeld -->
        <label for="password">Passwort:</label>
        <input type="password" id="password" name="password" required>
 <!-- Anmeldebutton -->
        <button type="submit">Anmelden</button>
    </form>
   
<p>Falle Sie noch kein SnackXpress-Nutzer sind, bitte registrieren:</p>   
   <!-- Registrierbutton -->
    <form action="/snackxpress/html/registrieren.html" method="get">
        <button type="submit">Registrieren</button>
    </form>
   <!-- login -->
</div>
</body>
</html>
"""
