Files
Verso/services/web/frontend/stylesheets/pages/login-register.scss
T
claude e3929572c3
Build and Deploy Verso / deploy (push) Successful in 14m31s
Fix Lumière visual regressions: login, footer, logo, notifications
- Login: centre logo (display:block + margin:auto, max-width 300px) and
  increase h1 from 1.4rem to 1.75rem
- Sidebar logo: switch from width:120%/margin-left:-10% to transform:scale(1.2)
  so the image scales symmetrically from centre and isn't cut on the left
- Footer: use !important on background-color/color to beat the dark-theme
  selector's higher specificity (:root [data-theme] = 0,4,0 vs our 0,3,0)
- Notifications: replace near-transparent rgba backgrounds with solid
  opaque colours so the teal page gradient can't bleed through; make the
  CTA button neutral slate-grey (not teal) with border-radius:8px

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-12 08:10:52 +00:00

163 lines
3.7 KiB
SCSS

:root {
--password-visibility-toggle-width: 35px;
}
.login-register-or-text-container {
display: flex;
gap: var(--spacing-05);
padding: var(--spacing-08) 0 var(--spacing-05) 0;
align-items: center;
font-size: var(--font-size-02);
line-height: 1;
margin: 0;
&::before,
&::after {
content: '';
display: block;
flex-grow: 1;
height: 1px;
background-color: var(--neutral-20);
}
}
.login-register-form {
padding: var(--spacing-08) var(--spacing-08) 0 var(--spacing-08);
border-bottom: solid 1px var(--border-divider);
&:last-child {
border-bottom-width: 0;
}
}
// ── Lumière Login Page ───────────────────────────────────────────────────────
// .login-page is set on main#main-content in login.pug; always applied
// (login users haven't set a theme yet).
.login-page {
background-image:
$lum-noise,
radial-gradient(ellipse 80% 50% at 20% 10%, rgba(42, 157, 143, 0.22) 0%, transparent 55%),
radial-gradient(ellipse 70% 60% at 85% 90%, rgba(61, 126, 191, 0.15) 0%, transparent 55%);
background-size: 200px 200px, cover, cover;
background-repeat: repeat, no-repeat, no-repeat;
background-color: #f0faf8;
min-height: 100vh;
.verso-login-logo {
display: block;
margin: 0 auto;
max-width: 300px;
}
}
.login-lumiere-card {
padding: 0 !important;
background: #fff;
border: 1px solid $lum-border;
border-radius: 16px;
overflow: hidden;
box-shadow:
0 6px 28px rgba(42, 157, 143, 0.12),
0 1px 4px rgba(0, 0, 0, 0.06);
margin-top: 0.5rem;
margin-bottom: 2rem;
position: relative;
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, $lum-teal 0%, $lum-blue 100%);
pointer-events: none;
}
.page-header {
padding: 1.75rem 1.5rem 1.25rem;
border-bottom-color: $lum-border;
margin-top: 0;
h1 {
font-size: 1.75rem;
font-weight: 700;
color: #1a5c52;
margin: 0;
}
}
form {
padding: 1.25rem 1.5rem 1.5rem;
}
label {
color: #1a5c52;
font-weight: 500;
font-size: 0.9rem;
}
.form-control:focus {
border-color: rgba(42, 157, 143, 0.5);
box-shadow: 0 0 0 0.2rem rgba(42, 157, 143, 0.18);
}
.btn-primary {
background: linear-gradient(135deg, $lum-teal 0%, darken($lum-teal, 8%) 100%);
border-color: darken($lum-teal, 10%);
border-radius: 8px;
font-weight: 600;
box-shadow: 0 2px 8px rgba(42, 157, 143, 0.3);
transition: all 0.15s ease;
&:hover,
&:focus {
background: linear-gradient(135deg, lighten($lum-teal, 4%) 0%, $lum-teal 100%);
box-shadow: 0 4px 14px rgba(42, 157, 143, 0.4);
}
}
a.float-end {
color: $lum-teal;
font-size: 0.875rem;
text-decoration: none;
&:hover {
color: darken($lum-teal, 10%);
text-decoration: underline;
}
}
}
.form-group-password {
display: flex;
position: relative;
flex-direction: column;
.form-group-password-input {
input.form-control,
// needlessly specific selectors to override competing styles
input.form-control.form-control-ds.form-control-lg {
padding-right: var(--password-visibility-toggle-width);
}
}
.visibility-toggle {
position: absolute;
right: 0;
top: 0;
width: var(--password-visibility-toggle-width);
height: 100%;
display: flex;
align-items: center;
justify-content: center;
border: unset;
background-color: unset;
#visibility-icon-off {
margin-top: 2px; // workaround for the icon not having the same center as the non-slashed one
}
}
}