Files
Verso/services/web/frontend/stylesheets/pages/login-register.scss
T
claude 7df583a3b2
Build and Deploy Verso / deploy (push) Successful in 15m23s
feat: creative footer, card tags, selection bar theme, i18n fixes
- Footer: dark navy (#0d1b24) with noise texture, teal→blue gradient
  top stripe; serif author credit on the left, monospace/uppercase
  meta links on the right; same design on login page
- Thumbnail: larger inset (14px top, 12px sides) so more background
  gradient shows around the preview; subtle drop shadow added
- Card tags: projects now show their label chips on the card (colored
  dot + name, read-only, max 3, no close button inside the link)
- Selection bar: btn-secondary recoloured to Lumière palette; dropdown
  menus rounded with teal accent on hover
- i18n fr.json: add n_projects_selected, n_projects_selected_plural,
  toolbar_selected_projects (×4 variants)

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

218 lines
5.5 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: 520px;
}
}
// ── Login page footer — Lumière override ──────────────────────────────────────
// Same dark-navy treatment as the project page footer.
body:has(.login-page) footer.site-footer {
position: relative;
background-color: #0d1b24 !important;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E") !important;
background-size: 200px 200px !important;
background-repeat: repeat !important;
border-top: none !important;
color: rgba(255, 255, 255, 0.38) !important;
font-size: 0.78rem;
letter-spacing: 0.03em;
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, #2a9d8f 0%, #3d7ebf 100%);
pointer-events: none;
}
a {
color: rgba(255, 255, 255, 0.38) !important;
text-decoration: none;
transition: color 0.15s ease;
&:hover {
color: #2a9d8f !important;
}
}
.col-lg-9 .site-footer-items > li:first-child a {
font-family: Georgia, 'Times New Roman', 'DejaVu Serif', serif;
color: rgba(255, 255, 255, 0.55) !important;
}
.col-lg-3 {
font-family: ui-monospace, 'SFMono-Regular', 'Fira Code', Consolas, monospace;
font-size: 0.70rem;
text-transform: uppercase;
letter-spacing: 0.07em;
}
.text-muted {
color: rgba(255, 255, 255, 0.16) !important;
}
--link-color: rgba(255, 255, 255, 0.38);
--link-hover-color: #2a9d8f;
--link-visited-color: rgba(255, 255, 255, 0.38);
}
.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
}
}
}