O body da tela de login do GLPI 11 é <body class="welcome-anonymous">; .page-anonymous fica no <main>. Os seletores body.page-anonymous nunca casavam e o cinza padrão do Tabler ficava por cima. Agora o fundo é aplicado em body.welcome-anonymous, body.login-page e main.page-anonymous (background-attachment: fixed alinha as camadas no viewport). Gotcha de dev: o cache do compileScss é chaveado pelo texto do @import, não pelo conteúdo do arquivo — editar login.scss exige ?reload=1 na URL do login para recompilar. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
80 lines
1.9 KiB
SCSS
80 lines
1.9 KiB
SCSS
/* Tema Nordic Minimal — claro, limpo, escandinavo */
|
|
|
|
$btn-background-color: #1e3a5f !default;
|
|
$btn-foreground-color: #ffffff !default;
|
|
|
|
body.welcome-anonymous,
|
|
body.login-page,
|
|
main.page-anonymous {
|
|
min-height: 100vh;
|
|
background-color: #f4f6f8;
|
|
background-image:
|
|
linear-gradient(rgba(30, 58, 95, 0.045) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(30, 58, 95, 0.045) 1px, transparent 1px),
|
|
radial-gradient(60% 50% at 100% 0%, rgba(30, 58, 95, 0.07) 0%, transparent 70%);
|
|
background-size: 32px 32px, 32px 32px, 100% 100%;
|
|
background-attachment: fixed;
|
|
}
|
|
|
|
.page-anonymous .main-content-card .card-body {
|
|
background: #ffffff;
|
|
border: 1px solid #e8ecf1;
|
|
border-radius: 16px;
|
|
padding: 2.4rem !important;
|
|
box-shadow: 0 20px 50px rgba(30, 58, 95, 0.10), 0 2px 8px rgba(30, 58, 95, 0.05);
|
|
}
|
|
|
|
.page-anonymous .card-header {
|
|
color: #1e293b;
|
|
border: 0;
|
|
background: transparent;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.page-anonymous .form-label {
|
|
color: #475569;
|
|
font-weight: 500;
|
|
font-size: 0.8rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.page-anonymous .form-control,
|
|
.page-anonymous .form-select {
|
|
background: #fafbfc;
|
|
border: 1px solid #dfe5ec;
|
|
border-radius: 10px;
|
|
color: #1e293b;
|
|
padding: 0.65rem 0.85rem;
|
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
|
|
&:focus {
|
|
background: #ffffff;
|
|
border-color: $btn-background-color;
|
|
box-shadow: 0 0 0 0.25rem rgba(30, 58, 95, 0.12);
|
|
}
|
|
}
|
|
|
|
.page-anonymous .btn.btn-primary {
|
|
background: $btn-background-color;
|
|
border: 0;
|
|
border-radius: 10px;
|
|
color: $btn-foreground-color;
|
|
padding: 0.7rem;
|
|
font-weight: 600;
|
|
transition: filter 0.15s ease, transform 0.15s ease;
|
|
|
|
&:hover {
|
|
filter: brightness(1.15);
|
|
transform: translateY(-1px);
|
|
}
|
|
}
|
|
|
|
.page-anonymous .text-muted,
|
|
.page-anonymous .copyright {
|
|
color: #94a3b8 !important;
|
|
}
|
|
|
|
.page-anonymous a {
|
|
color: #1e3a5f !important;
|
|
}
|