feat(auth): protect aggregate console with password login

This commit is contained in:
chick
2026-07-19 17:13:43 +08:00
parent 75682b8134
commit f2803896a8
16 changed files with 1165 additions and 11 deletions
+48
View File
@@ -1030,6 +1030,54 @@ main ul[aria-label='已配置实例'] {
grid-column: auto;
}
}
.auth-screen {
min-height: 100vh;
display: grid;
place-items: center;
padding: 1.5rem;
background:
radial-gradient(circle at 15% 10%, rgba(242, 169, 59, 0.18), transparent 34%), var(--background);
}
.auth-card {
width: min(100%, 27rem);
padding: 2rem;
border: 1px solid var(--border);
border-radius: 1.5rem;
background: var(--surface-raised);
box-shadow: var(--shadow);
}
.auth-card form,
.auth-password-fields {
display: grid;
gap: 0.75rem;
margin-top: 1.25rem;
}
.auth-card input,
.auth-settings input[type='password'] {
width: 100%;
}
.auth-settings {
max-width: 45rem;
display: grid;
gap: 1.25rem;
}
.toggle-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
}
.toggle-row span {
display: grid;
gap: 0.375rem;
}
.toggle-row input[type='checkbox'] {
width: 2.875rem;
height: 1.5rem;
flex: 0 0 auto;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,