Redesign login page with improved UX and branding

Refactored `LoginSenderPage.razor` to introduce a modern layout, dynamic branding support, and enhanced validation. Updated localization files (`de-DE`, `en-US`, `fr-FR`) with new keys for improved messaging. Added client-side validation for required fields and error handling for invalid credentials.

Enabled anonymous access to `CustomImagesController` for displaying branding before authentication. Updated CSS for consistent theming and responsive design. Cleaned up redundant code and improved maintainability. Footer now dynamically displays the current year and company name.
This commit is contained in:
2026-11-12 11:57:00 +01:00
parent 2b580f5e3d
commit 23f2056421
6 changed files with 254 additions and 129 deletions

View File

@@ -20,7 +20,9 @@ public class CustomImagesController(IOptions<CustomImagesOptions> options) : Con
{
/// <summary>
/// Returns the signFLOW app logo and company logo configuration.
/// Anonymous access allowed so the login page can display branding before the user authenticates.
/// </summary>
[HttpGet]
[AllowAnonymous]
public ActionResult<CustomImagesOptions> Get() => Ok(options.Value);
}

View File

@@ -312,6 +312,35 @@ article {
padding: 0 16px;
}
.sender-login-page {
min-height: calc(100vh - 36px);
background: linear-gradient(160deg, #1e2e3e 0%, #2c3e50 40%, #3498db 100%);
padding: 24px 16px;
}
.sender-login-content {
width: 100%;
max-width: 520px;
}
.sender-login-card {
margin: 0 auto;
border-radius: 12px !important;
overflow: hidden;
}
.sender-login-back-link {
color: #1f4f93;
font-size: 0.875rem;
font-weight: 600;
text-decoration: none;
}
.sender-login-back-link:hover {
color: #2f77d2;
text-decoration: underline;
}
.home-card {
border-radius: 12px !important;
overflow: hidden;
@@ -695,6 +724,10 @@ article {
background: linear-gradient(160deg, #1a0533 0%, #3b0764 45%, #6b21a8 100%);
}
[data-sf-theme="purple"] .sender-login-page {
background: linear-gradient(160deg, #1a0533 0%, #3b0764 45%, #6b21a8 100%);
}
[data-sf-theme="purple"] .home-btn-primary {
background: linear-gradient(135deg, #6b21a8 0%, #9333ea 100%);
}
@@ -710,6 +743,14 @@ article {
background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important;
}
/* signFLOW logo inside the sender login card header: centered, larger than nav */
.sender-login-card .card-header .signflow-app-logo {
margin: 0 auto;
height: 5rem !important; /* override inline appsettings height for this context */
width: auto;
opacity: 0.92;
}
[data-sf-theme="purple"] .login-card .card-header {
background: linear-gradient(135deg, #1a0533 0%, #6b21a8 100%) !important;
}
@@ -718,6 +759,10 @@ article {
background: linear-gradient(160deg, #0a0f1e 0%, #111827 50%, #1e1b4b 100%);
}
[data-sf-theme="blazing-dark"] .sender-login-page {
background: linear-gradient(160deg, #0a0f1e 0%, #111827 50%, #1e1b4b 100%);
}
[data-sf-theme="blazing-dark"] .home-btn-primary {
background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
}