From 180314d43dd3f486a4c30b9892c07f59c43c0321 Mon Sep 17 00:00:00 2001 From: HotSwapp <47397945+HotSwapp@users.noreply.github.com> Date: Tue, 7 Oct 2025 21:37:10 -0500 Subject: [PATCH] UI: Simplify login page styling, remove purple gradient background, stop global .container overrides; add scoped .auth-wrapper; neutralize buttons/cards; rebuild verified via smoke test --- app/templates/login.html | 2 +- static/css/custom.css | 30 ++++++++++++------------------ 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/app/templates/login.html b/app/templates/login.html index d1e33b7..f276162 100644 --- a/app/templates/login.html +++ b/app/templates/login.html @@ -3,7 +3,7 @@ {% block title %}Login - Delphi Database{% endblock %} {% block content %} -
+
diff --git a/static/css/custom.css b/static/css/custom.css index 46bc5e9..75c8cf6 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -1,28 +1,25 @@ /* Custom CSS for Delphi Database */ -/* Additional styles can be added here */ +/* Base: keep it neutral and let pages decide backgrounds */ body { - background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + background-color: #f5f7fb; /* light neutral */ min-height: 100vh; - display: flex; - align-items: center; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } -/* Login page specific styles */ -.container { - min-height: 100vh; +/* Avoid overriding Bootstrap's global .container layout. + Provide a scoped helper for auth pages instead. */ +.auth-wrapper { + min-height: calc(100vh - 120px); /* account for navbar+footer */ display: flex; align-items: center; justify-content: center; - padding: 20px; + padding: 32px 16px; } /* Enhanced card styling for login */ .card { - backdrop-filter: blur(10px); - background: rgba(255, 255, 255, 0.95); - border: 1px solid rgba(255, 255, 255, 0.2); + background: #ffffff; } /* Logo styling */ @@ -55,19 +52,15 @@ body { /* Button styling */ .btn-primary { - background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); - border: none; border-radius: 8px; padding: 12px 24px; font-size: 16px; font-weight: 600; - transition: all 0.3s ease; + transition: all 0.2s ease; } .btn-primary:hover { - background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%); - transform: translateY(-2px); - box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); + transform: translateY(-1px); } /* Custom navbar styles */ @@ -78,7 +71,8 @@ body { /* Custom card styles */ .card { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); - border: 1px solid rgba(0, 0, 0, 0.125); + border: 1px solid rgba(0, 0, 0, 0.1); + border-radius: 12px; } /* Custom button styles */