WEB-563 feat(login): modernize login UI with Material Design 3 and production mode (#3061)
improve improve improve
This commit is contained in:
+227
-142
@@ -5,45 +5,143 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
// Version Info Table
|
||||
.login-version-table {
|
||||
|
||||
// ===== Version Info Section - Modern Card Style =====
|
||||
.login-version-info {
|
||||
margin-bottom: 1rem;
|
||||
width: 100%;
|
||||
margin: 0 5px;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.75rem;
|
||||
color: var(--md-sys-color-on-surface, #1a1c1e);
|
||||
background: none;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.login-version-table td {
|
||||
padding: 0.4rem 0.7rem;
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
.version-info-container {
|
||||
width: 100%;
|
||||
background: var(--md-sys-color-surface-container, #f3f3f6);
|
||||
border-radius: 12px;
|
||||
padding: 0.75rem 1rem;
|
||||
border: 1px solid var(--md-sys-color-outline-variant, #c4c6d0);
|
||||
}
|
||||
|
||||
.version-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0.4rem 0;
|
||||
border-bottom: 1px solid var(--md-sys-color-outline-variant, #e0e0e0);
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
.version-label {
|
||||
font-weight: 500;
|
||||
font-size: 0.75rem;
|
||||
color: var(--md-sys-color-on-surface-variant, #44474e);
|
||||
width: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.version-value {
|
||||
font-weight: 400;
|
||||
font-size: 0.75rem;
|
||||
color: var(--md-sys-color-on-surface, #1a1c1e);
|
||||
width: 50%;
|
||||
word-break: break-all;
|
||||
text-align: right;
|
||||
word-break: break-word;
|
||||
max-width: 60%;
|
||||
}
|
||||
|
||||
// Responsive
|
||||
/* stylelint-disable-next-line media-feature-range-notation -- Safari compatibility */
|
||||
@media (max-width: 768px) {
|
||||
.login-version-table {
|
||||
font-size: 0.85rem;
|
||||
max-width: 100%;
|
||||
// ===== Resources Branding =====
|
||||
.resources-branding {
|
||||
text-align: center;
|
||||
margin-bottom: 0.75rem;
|
||||
|
||||
.branding-text {
|
||||
font-size: 0.8rem;
|
||||
color: var(--md-sys-color-on-surface-variant, #44474e);
|
||||
font-weight: 400;
|
||||
|
||||
a {
|
||||
color: var(--md-sys-color-primary, #1074b9);
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ===== Dark Mode Support =====
|
||||
:host-context(.dark-theme),
|
||||
:host-context([data-theme='dark']) {
|
||||
.version-info-container {
|
||||
background: var(--md-sys-color-surface-container-low, #2a2a2a);
|
||||
border-color: var(--md-sys-color-outline-variant, #3d3d3d);
|
||||
}
|
||||
|
||||
.login-version-table td {
|
||||
padding: 0.3rem 0.4rem;
|
||||
.version-item {
|
||||
border-bottom-color: var(--md-sys-color-outline-variant, #3d3d3d);
|
||||
}
|
||||
|
||||
.version-label {
|
||||
color: var(--md-sys-color-on-surface-variant, #c4c6cf);
|
||||
}
|
||||
|
||||
.version-value {
|
||||
color: var(--md-sys-color-on-surface, #e2e2e5);
|
||||
}
|
||||
|
||||
.resources-branding {
|
||||
.branding-text {
|
||||
color: var(--md-sys-color-on-surface-variant, #c4c6cf);
|
||||
|
||||
a {
|
||||
color: var(--md-sys-color-primary, #a8c8ff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.resource-button {
|
||||
color: var(--md-sys-color-primary, #a8c8ff);
|
||||
|
||||
&:hover {
|
||||
background: rgb(168 200 255 / 12%);
|
||||
}
|
||||
}
|
||||
|
||||
.login-card {
|
||||
border: 1px solid var(--md-sys-color-outline-variant, #3d3d3d);
|
||||
}
|
||||
|
||||
.login-header {
|
||||
::ng-deep mifosx-theme-toggle button,
|
||||
::ng-deep mifosx-server-selector,
|
||||
::ng-deep mifosx-language-selector {
|
||||
color: var(--md-sys-color-on-surface, #e2e2e5);
|
||||
}
|
||||
}
|
||||
|
||||
.logo-section {
|
||||
border-bottom-color: var(--md-sys-color-outline-variant, #3d3d3d);
|
||||
}
|
||||
}
|
||||
|
||||
// Responsive for version info
|
||||
/* stylelint-disable-next-line media-feature-range-notation -- Safari compatibility */
|
||||
@media (max-width: 768px) {
|
||||
.version-info-container {
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
|
||||
.version-item {
|
||||
padding: 0.35rem 0;
|
||||
}
|
||||
|
||||
.version-label,
|
||||
.version-value {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,6 +156,7 @@
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: var(--md-sys-color-background, #fafafa);
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
// ===== Hero Panel (Left Side) =====
|
||||
@@ -68,7 +167,7 @@
|
||||
background-size: cover;
|
||||
overflow: hidden;
|
||||
|
||||
// Dark overlay for better text contrast
|
||||
// Overlay removed for clean image view
|
||||
.hero-overlay {
|
||||
position: absolute;
|
||||
/* stylelint-disable declaration-block-no-redundant-longhand-properties -- Safari compatibility */
|
||||
@@ -77,7 +176,7 @@
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
/* stylelint-enable declaration-block-no-redundant-longhand-properties */
|
||||
background: linear-gradient(135deg, #1074b99e 0%, #004989a6 100%);
|
||||
background: transparent;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
@@ -93,10 +192,16 @@
|
||||
}
|
||||
|
||||
.hero-text {
|
||||
max-width: 600px;
|
||||
max-width: 550px;
|
||||
color: #fff;
|
||||
animation: fade-in-up 0.8s ease-out;
|
||||
flex: 0 1 auto;
|
||||
// Minimal backdrop - more image visibility
|
||||
background: rgb(0 0 0 / 35%);
|
||||
border-radius: 20px;
|
||||
padding: 2rem;
|
||||
border: 1px solid rgb(255 255 255 / 15%);
|
||||
box-shadow: 0 4px 24px rgb(0 0 0 / 20%);
|
||||
}
|
||||
|
||||
// Footer in hero panel
|
||||
@@ -142,65 +247,66 @@
|
||||
margin: 0 0 1.5rem;
|
||||
line-height: 1.2;
|
||||
letter-spacing: -0.02em;
|
||||
background: linear-gradient(135deg, #fff 0%, #e3f2fd 100%);
|
||||
/* stylelint-disable-next-line property-no-vendor-prefix -- Safari compatibility */
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
color: #fff;
|
||||
text-shadow:
|
||||
0 2px 4px rgb(0 0 0 / 30%),
|
||||
0 4px 12px rgb(0 0 0 / 15%);
|
||||
}
|
||||
|
||||
.hero-subtitle {
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.6;
|
||||
margin: 0 0 3rem;
|
||||
opacity: 0.95;
|
||||
margin: 0 0 2rem;
|
||||
font-weight: 400;
|
||||
color: rgb(255 255 255 / 95%);
|
||||
text-shadow: 0 1px 3px rgb(0 0 0 / 40%);
|
||||
}
|
||||
|
||||
.hero-highlight {
|
||||
font-weight: 600;
|
||||
color: #b4d575;
|
||||
text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
|
||||
}
|
||||
|
||||
.hero-features {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 3rem;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.feature-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
background: #ffffff1a;
|
||||
border-radius: 12px;
|
||||
/* stylelint-disable-next-line property-no-vendor-prefix -- Safari compatibility */
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
backdrop-filter: blur(10px);
|
||||
gap: 0.75rem;
|
||||
padding: 0.5rem 0;
|
||||
background: transparent;
|
||||
border-radius: 8px;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
background: #ffffff26;
|
||||
transform: translateX(8px);
|
||||
transform: translateX(4px);
|
||||
}
|
||||
}
|
||||
|
||||
.feature-icon {
|
||||
font-size: 1.5rem;
|
||||
font-size: 1.25rem;
|
||||
color: #b4d575;
|
||||
filter: drop-shadow(0 1px 2px rgb(0 0 0 / 30%));
|
||||
}
|
||||
|
||||
.feature-text {
|
||||
font-size: 1rem;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 500;
|
||||
color: rgb(255 255 255 / 95%);
|
||||
text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
|
||||
}
|
||||
|
||||
.hero-links {
|
||||
display: flex;
|
||||
gap: 2rem;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.hero-link {
|
||||
@@ -211,20 +317,54 @@
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.75rem 1.5rem;
|
||||
border: 2px solid #ffffff4d;
|
||||
border: 1px solid rgb(255 255 255 / 30%);
|
||||
border-radius: 24px;
|
||||
background: rgb(255 255 255 / 10%);
|
||||
/* stylelint-disable-next-line property-no-vendor-prefix -- Safari compatibility */
|
||||
-webkit-backdrop-filter: blur(4px);
|
||||
backdrop-filter: blur(4px);
|
||||
transition: all 0.3s ease;
|
||||
text-shadow: 0 1px 2px rgb(0 0 0 / 20%);
|
||||
box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
|
||||
|
||||
&:hover {
|
||||
background: #ffffff1a;
|
||||
border-color: #fff;
|
||||
background: rgb(255 255 255 / 20%);
|
||||
border-color: rgb(255 255 255 / 50%);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 16px rgb(0 0 0 / 15%);
|
||||
}
|
||||
|
||||
fa-icon {
|
||||
opacity: 0.7;
|
||||
opacity: 0.85;
|
||||
}
|
||||
}
|
||||
|
||||
// ===== Production Mode Styles =====
|
||||
&.production-mode {
|
||||
.hero-content {
|
||||
justify-content: flex-end;
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
}
|
||||
|
||||
.hero-branding-bottom {
|
||||
animation: fade-in-up 0.8s ease-out;
|
||||
}
|
||||
|
||||
.hero-title-minimal {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
text-shadow:
|
||||
0 2px 8px rgb(0 0 0 / 40%),
|
||||
0 4px 16px rgb(0 0 0 / 20%);
|
||||
letter-spacing: -0.01em;
|
||||
margin: 0;
|
||||
padding: 1.5rem 2rem;
|
||||
background: rgb(0 0 0 / 30%);
|
||||
border-radius: 16px;
|
||||
border: 1px solid rgb(255 255 255 / 15%);
|
||||
}
|
||||
}
|
||||
|
||||
// ===== Login Panel (Right Side) =====
|
||||
@@ -234,19 +374,21 @@
|
||||
flex-direction: column;
|
||||
background: var(--md-sys-color-surface, #fff);
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
min-height: -webkit-fill-available; // Safari fix: use available height
|
||||
overflow-y: auto;
|
||||
min-height: 100vh;
|
||||
overflow: hidden auto;
|
||||
}
|
||||
|
||||
.login-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 1rem 1.5rem;
|
||||
padding: 0.75rem 1rem;
|
||||
background: transparent;
|
||||
flex-shrink: 0; // Safari fix: prevent header from growing
|
||||
max-height: 76px; // Safari fix: constrain header height
|
||||
flex-wrap: nowrap;
|
||||
overflow: hidden;
|
||||
|
||||
.header-control {
|
||||
opacity: 0.8;
|
||||
@@ -282,7 +424,8 @@
|
||||
|
||||
// Language Selector Outlined Styles
|
||||
::ng-deep mifosx-language-selector {
|
||||
width: 20%;
|
||||
min-width: 80px;
|
||||
max-width: 100px;
|
||||
flex-shrink: 0; // Safari fix
|
||||
|
||||
#language-selector.outlined-variant {
|
||||
@@ -318,8 +461,9 @@
|
||||
|
||||
// Server Selector Outlined Styles
|
||||
::ng-deep mifosx-server-selector {
|
||||
width: 70%;
|
||||
flex-shrink: 0; // Safari fix
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
max-width: 250px;
|
||||
|
||||
#server-selector.outlined-variant {
|
||||
width: 100%;
|
||||
@@ -360,7 +504,7 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: flex-start; // Safari fix: avoid center calculation issues
|
||||
padding: 1rem;
|
||||
padding: 0 1rem 1rem;
|
||||
min-height: 0; // Safari fix: allows flex item to shrink below content size
|
||||
animation: fade-in 0.6s ease-out;
|
||||
}
|
||||
@@ -388,31 +532,23 @@
|
||||
// ===== Logo Section =====
|
||||
.logo-section {
|
||||
text-align: center;
|
||||
margin-bottom: 1rem;
|
||||
margin-bottom: 0.75rem;
|
||||
padding-bottom: 0.75rem;
|
||||
border-bottom: 1px solid var(--md-sys-color-outline-variant, #e8eaed);
|
||||
flex-shrink: 0;
|
||||
animation: fade-in-down 0.6s ease-out 0.2s both;
|
||||
animation: fade-in 0.5s ease-out 0.1s both;
|
||||
}
|
||||
|
||||
.logo-image {
|
||||
max-width: 180px;
|
||||
height: auto;
|
||||
margin-bottom: 1rem;
|
||||
filter: drop-shadow(0 2px 8px #0000001a);
|
||||
}
|
||||
height: 130px;
|
||||
width: auto;
|
||||
margin: 8px 24px;
|
||||
opacity: 0.95;
|
||||
transition: opacity 0.3s ease;
|
||||
|
||||
.welcome-text {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 600;
|
||||
margin: 0 0 0.5rem;
|
||||
color: var(--md-sys-color-on-surface, #1a1c1e);
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.welcome-subtitle {
|
||||
font-size: 0.95rem;
|
||||
color: var(--md-sys-color-on-surface-variant, #44474e);
|
||||
margin: 0;
|
||||
font-weight: 400;
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
// ===== Form Section =====
|
||||
@@ -429,15 +565,6 @@
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
// ===== Version Info Section =====
|
||||
.login-version-info {
|
||||
margin-bottom: 1rem;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
// ===== Resources Section =====
|
||||
.resources-section {
|
||||
margin-top: auto;
|
||||
@@ -446,34 +573,6 @@
|
||||
animation: fade-in-up 0.6s ease-out 0.4s both;
|
||||
}
|
||||
|
||||
.resources-divider {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
margin-bottom: 1.5rem;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: var(--md-sys-color-outline-variant, #c4c6d0);
|
||||
}
|
||||
|
||||
.divider-text {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding: 0 1rem;
|
||||
background: var(--md-sys-color-surface-container-low, #fff);
|
||||
color: var(--md-sys-color-on-surface-variant, #44474e);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
}
|
||||
|
||||
.resources-links {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@@ -504,19 +603,13 @@
|
||||
.login-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
padding: 1rem 1.5rem;
|
||||
padding: 0.75rem 1.5rem;
|
||||
position: relative;
|
||||
margin-top: auto;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
|
||||
mifosx-footer {
|
||||
flex: 1;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.reload-button {
|
||||
color: var(--mat-app-text-color, #c4c6d0);
|
||||
opacity: 0.6;
|
||||
@@ -652,7 +745,7 @@
|
||||
}
|
||||
|
||||
.login-card-container {
|
||||
padding: 1rem;
|
||||
padding: 0 1rem 1rem;
|
||||
justify-content: center;
|
||||
height: auto;
|
||||
min-height: calc(100vh - 56px); // 56px for header
|
||||
@@ -700,16 +793,14 @@
|
||||
}
|
||||
|
||||
.logo-section {
|
||||
margin-bottom: 1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.logo-image {
|
||||
max-width: 140px;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.welcome-text {
|
||||
font-size: 1.5rem;
|
||||
height: 100px;
|
||||
width: auto;
|
||||
margin: 8px 20px;
|
||||
}
|
||||
|
||||
// Hide resources section on medium and small screens
|
||||
@@ -755,7 +846,7 @@
|
||||
}
|
||||
|
||||
.login-card-container {
|
||||
padding: 0.5rem;
|
||||
padding: 0 0.5rem 0.5rem;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@@ -764,20 +855,14 @@
|
||||
}
|
||||
|
||||
.logo-section {
|
||||
margin-bottom: 0.75rem;
|
||||
margin-bottom: 0.5rem;
|
||||
padding-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.logo-image {
|
||||
max-width: 110px;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.welcome-text {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.welcome-subtitle {
|
||||
font-size: 0.875rem;
|
||||
height: 80px;
|
||||
width: auto;
|
||||
margin: 4px 16px;
|
||||
}
|
||||
|
||||
.form-section {
|
||||
|
||||
Reference in New Issue
Block a user