diff --git a/note_kfet/templates/registration/login.html b/note_kfet/templates/registration/login.html
index 7cdec5b3c2ae7e095ba0974e0a6f54e93ee191bf..65eb9f3b7da5ad0c3e657ff70a13348c5187d7c1 100644
--- a/note_kfet/templates/registration/login.html
+++ b/note_kfet/templates/registration/login.html
@@ -19,13 +19,13 @@ SPDX-License-Identifier: GPL-2.0-or-later
         </h3>
         <div class="card-body">
             {% if user.is_authenticated %}
-                <p class="errornote">
+                <div class="alert alert-warning">
                     {% blocktrans trimmed with username=request.user.username %}
                         You are authenticated as {{ username }}, but are not authorized to
                         access this page. Would you like to login to a different account,
                         or with a higher permission mask?
                     {% endblocktrans %}
-                </p>
+                </div>
             {% endif %}
 
             {% if request.resolver_match.view_name == 'admin:login' %}