added password reset

This commit is contained in:
tom.hempel
2026-06-01 21:23:33 +02:00
parent 82a1614a58
commit 890232f58f
5 changed files with 432 additions and 21 deletions

View File

@ -367,6 +367,22 @@ code {
width: 20px;
height: 20px;
}
.user-actions-cell {
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: center;
}
.mobile-logout-btn {
display: none;
position: fixed;
top: 12px;
right: 12px;
z-index: 150;
box-shadow: var(--shadow);
}
.coach-supervisor-select {
max-width: 100%;
min-width: 160px;
@ -873,6 +889,12 @@ th.sort-desc::after { content: ' \2193'; opacity: 1; }
.sidebar.open { transform: translateX(0); }
.main-content { margin-left: 0; padding: 16px; }
.q-grid { grid-template-columns: 1fr; }
body.logged-in .mobile-logout-btn {
display: inline-flex;
}
body.logged-in .page-header {
padding-right: 88px;
}
}
@media (max-width: 520px) {
@ -1232,6 +1254,114 @@ table.data-table tbody tr.row-orphan-category td {
cursor: pointer;
}
/* Modal dialog */
.modal-overlay {
position: fixed;
inset: 0;
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
background: color-mix(in srgb, var(--bg) 30%, rgba(0, 0, 0, 0.65));
}
.modal-overlay[hidden] {
display: none;
}
body.modal-open {
overflow: hidden;
}
.modal-dialog {
width: 100%;
max-width: 460px;
max-height: calc(100vh - 32px);
overflow: auto;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow-lg);
padding: 24px;
}
.modal-dialog h2 {
margin: 0 0 6px;
font-size: 1.15rem;
}
.modal-dialog .modal-subtitle {
margin: 0 0 16px;
font-size: 0.9rem;
color: var(--text-secondary);
line-height: 1.45;
}
.modal-dialog .modal-subtitle strong {
color: var(--text);
}
.modal-dialog .modal-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: flex-end;
margin-top: 20px;
}
.password-mode-fieldset {
border: none;
margin: 0 0 16px;
padding: 0;
}
.password-mode-fieldset > legend {
font-size: 0.85rem;
font-weight: 600;
margin-bottom: 10px;
padding: 0;
}
.password-mode-options {
display: flex;
flex-direction: column;
gap: 8px;
}
.password-mode-option {
display: block;
padding: 12px 14px;
border: 1px solid var(--border);
border-radius: 8px;
cursor: pointer;
transition: border-color 0.15s, background 0.15s;
}
.password-mode-option:hover {
background: var(--surface-hover);
}
.password-mode-option:has(input:checked) {
border-color: var(--primary);
background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}
.password-mode-option input {
margin: 0 10px 0 0;
vertical-align: top;
accent-color: var(--primary);
}
.password-mode-option-title {
display: block;
font-weight: 600;
font-size: 0.9rem;
margin-bottom: 4px;
}
.password-mode-option-desc {
display: block;
font-size: 0.8rem;
color: var(--text-secondary);
line-height: 1.4;
margin-left: 26px;
}
.modal-hint {
font-size: 0.8rem;
color: var(--text-secondary);
margin: 0 0 14px;
line-height: 1.45;
padding: 10px 12px;
background: var(--surface-muted);
border-radius: 6px;
border: 1px solid var(--border);
}
/* Options builder (inside add-question form) */
.options-builder {
border-top: 1px solid var(--border);