security hardening
This commit is contained in:
49
settings-site/public/css/login.css
Normal file
49
settings-site/public/css/login.css
Normal file
@@ -0,0 +1,49 @@
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
font-family: 'Inter', sans-serif;
|
||||
background: #0f1117;
|
||||
color: #e0e0e0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.login-card {
|
||||
background: #1e2235;
|
||||
border: 1px solid #2a2d3e;
|
||||
border-radius: 16px;
|
||||
padding: 48px 40px;
|
||||
width: 380px;
|
||||
text-align: center;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
.login-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
|
||||
.login-card p { font-size: 14px; color: #888; margin-bottom: 32px; }
|
||||
.login-card input {
|
||||
width: 100%;
|
||||
padding: 12px 16px;
|
||||
background: #0f1117;
|
||||
border: 1px solid #2a2d3e;
|
||||
border-radius: 8px;
|
||||
color: #e0e0e0;
|
||||
font-size: 14px;
|
||||
margin-bottom: 16px;
|
||||
outline: none;
|
||||
transition: border-color 200ms;
|
||||
}
|
||||
.login-card input:focus { border-color: #5865f2; }
|
||||
.login-card button {
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
background: #5865f2;
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: background 200ms;
|
||||
}
|
||||
.login-card button:hover { background: #4752c4; }
|
||||
.error { color: #ed4245; font-size: 13px; margin-top: 8px; display: none; }
|
||||
.error.visible { display: block; }
|
||||
@@ -132,3 +132,26 @@ body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--tex
|
||||
.loading.hidden { display: none; }
|
||||
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
/* Notifications section */
|
||||
#s-notifications .notif-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
|
||||
#s-notifications .notif-tab-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
|
||||
#s-notifications .notif-tab-btn.active { border-color: var(--accent); color: var(--accent); }
|
||||
#s-notifications .notif-panel.hidden { display: none; }
|
||||
#s-notifications .notif-editor { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 14px; background: var(--surface); }
|
||||
#s-notifications .notif-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; min-height: 28px; }
|
||||
#s-notifications .notif-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
|
||||
#s-notifications .notif-chip button { border: none; background: transparent; color: var(--text-muted); cursor: pointer; padding: 0; line-height: 1; font-size: 14px; }
|
||||
#s-notifications .notif-input-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
|
||||
#s-notifications .notif-input-row input { width: 220px; }
|
||||
#s-notifications .notif-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
|
||||
#s-notifications .notif-presets button { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; }
|
||||
#s-notifications .notif-trigger { margin-top: 10px; }
|
||||
#s-notifications .notif-trigger summary { cursor: pointer; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; }
|
||||
|
||||
/* Logging section cross-link hint */
|
||||
.logging-hint { color: var(--text-muted); font-size: 13px; }
|
||||
.logging-hint a { color: var(--accent); }
|
||||
|
||||
/* Logout form inline layout */
|
||||
.logout-form { display: inline; }
|
||||
|
||||
Reference in New Issue
Block a user