implemented optional authentification app and stricter password and user rules.
Also against brute force.
This commit is contained in:
@@ -24,6 +24,29 @@ body {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.nav-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.nav-logout-form {
|
||||
margin: 0 0 0 15px;
|
||||
}
|
||||
|
||||
.nav-link-button {
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: none;
|
||||
color: white;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.nav-link-button:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* 📦 Layout */
|
||||
.container {
|
||||
max-width: 900px;
|
||||
@@ -40,6 +63,33 @@ body {
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.flash-stack {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.flash-message {
|
||||
margin: 0;
|
||||
padding: 12px 14px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.flash-message.success {
|
||||
color: #166534;
|
||||
background: #dcfce7;
|
||||
}
|
||||
|
||||
.flash-message.info {
|
||||
color: #1d4ed8;
|
||||
background: #dbeafe;
|
||||
}
|
||||
|
||||
.flash-message.error {
|
||||
color: #b91c1c;
|
||||
background: #fee2e2;
|
||||
}
|
||||
|
||||
.game-card {
|
||||
text-align: center;
|
||||
}
|
||||
@@ -305,6 +355,21 @@ body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.inline-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.inline-actions form {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.inline-actions .btn {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.btn.ghost {
|
||||
background: #e2e8f0;
|
||||
color: #1e293b;
|
||||
@@ -337,4 +402,8 @@ body {
|
||||
.navbar {
|
||||
padding: 15px 18px;
|
||||
}
|
||||
|
||||
.nav-logout-form {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
+210
-64
@@ -1,7 +1,12 @@
|
||||
:root {
|
||||
--primary-bg-color: #f4f6f8;
|
||||
--secondary-bg-color: white;
|
||||
--nav-bg-color: #333;
|
||||
--nav-bg-color: #172033;
|
||||
--panel-bg-color: rgba(255, 255, 255, 0.18);
|
||||
--panel-border-color: rgba(255, 255, 255, 0.24);
|
||||
--text-color: #172033;
|
||||
--muted-text-color: #475569;
|
||||
--success-color: #15803d;
|
||||
--info-color: #1d4ed8;
|
||||
--error-color: #b91c1c;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
@@ -18,24 +23,30 @@
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: var(--text-color);
|
||||
font-family: "Geist Sans", system-ui, sans-serif;
|
||||
|
||||
background: linear-gradient(135deg, #c6dff4, #7c8384);
|
||||
background:
|
||||
radial-gradient(circle at top left, rgba(255, 255, 255, 0.45), transparent 32%),
|
||||
linear-gradient(135deg, #d2ecff 0%, #b8c6db 48%, #7f8ea3 100%);
|
||||
}
|
||||
|
||||
|
||||
nav {
|
||||
width: 100%;
|
||||
background: var(--nav-bg-color);
|
||||
min-height: 68px;
|
||||
padding: 15px 30px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
background: var(--nav-bg-color);
|
||||
}
|
||||
|
||||
nav ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
flex-wrap: wrap;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
@@ -46,28 +57,68 @@ nav a {
|
||||
}
|
||||
|
||||
nav a:hover {
|
||||
color: #4facfe;
|
||||
color: #93c5fd;
|
||||
}
|
||||
|
||||
/* Center login section */
|
||||
main {
|
||||
min-height: calc(100vh - 60px);
|
||||
/* full screen minus navbar */
|
||||
.nav-form {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: auto;
|
||||
background: none;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
backdrop-filter: none;
|
||||
}
|
||||
|
||||
.nav-button {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: none;
|
||||
border: 0;
|
||||
color: white;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.nav-button:hover {
|
||||
transform: none;
|
||||
box-shadow: none;
|
||||
color: #93c5fd;
|
||||
}
|
||||
|
||||
.auth-shell {
|
||||
min-height: calc(100vh - 68px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 32px 16px;
|
||||
}
|
||||
|
||||
/* Title */
|
||||
main h1 {
|
||||
margin-bottom: 20px;
|
||||
.settings-shell {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
main {
|
||||
.auth-panel {
|
||||
width: min(420px, 100%);
|
||||
padding: 34px;
|
||||
border-radius: 20px;
|
||||
background: var(--panel-bg-color);
|
||||
border: 1px solid var(--panel-border-color);
|
||||
backdrop-filter: blur(16px);
|
||||
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
|
||||
animation: fadeIn 0.8s ease;
|
||||
}
|
||||
|
||||
.settings-panel {
|
||||
width: min(900px, 100%);
|
||||
}
|
||||
|
||||
.settings-grid {
|
||||
display: grid;
|
||||
gap: 24px;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
@@ -80,72 +131,167 @@ main {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Form box */
|
||||
form {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
backdrop-filter: blur(12px);
|
||||
padding: 35px;
|
||||
border-radius: 12px;
|
||||
width: 320px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
h1,
|
||||
h2 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.muted {
|
||||
margin: 0 0 20px;
|
||||
color: var(--muted-text-color);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
margin-top: 18px;
|
||||
padding: 24px;
|
||||
border-radius: 16px;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border: 1px solid rgba(255, 255, 255, 0.22);
|
||||
}
|
||||
|
||||
/* Labels */
|
||||
label {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 5px;
|
||||
margin-top: 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Inputs */
|
||||
form {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
backdrop-filter: blur(12px);
|
||||
padding: 35px;
|
||||
border-radius: 12px;
|
||||
width: 320px;
|
||||
input {
|
||||
width: 100%;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid rgba(71, 85, 105, 0.25);
|
||||
border-radius: 10px;
|
||||
font: inherit;
|
||||
background: rgba(255, 255, 255, 0.86);
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
input:focus {
|
||||
outline: 2px solid rgba(59, 130, 246, 0.35);
|
||||
border-color: rgba(59, 130, 246, 0.5);
|
||||
}
|
||||
|
||||
.field-hint {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
color: var(--muted-text-color);
|
||||
}
|
||||
|
||||
.checkbox-row {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin: 10px 0 6px;
|
||||
}
|
||||
|
||||
.checkbox-row input {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
/* Button */
|
||||
button {
|
||||
margin-top: 20px;
|
||||
padding: 12px;
|
||||
margin-top: 14px;
|
||||
padding: 12px 16px;
|
||||
border: none;
|
||||
background: linear-gradient(135deg, #e9eff5, #daebf0);
|
||||
color: rgb(0, 0, 0);
|
||||
border-radius: 8px;
|
||||
border-radius: 10px;
|
||||
background: linear-gradient(135deg, #eff6ff, #dbeafe);
|
||||
color: #172033;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
|
||||
transition: all 0.2s ease;
|
||||
font-weight: 600;
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
|
||||
}
|
||||
|
||||
button:active {
|
||||
transform: scale(0.97);
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
|
||||
/* Error message */
|
||||
.error {
|
||||
color: red;
|
||||
margin-bottom: 15px;
|
||||
.button-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
/* button anim */
|
||||
.button-row button {
|
||||
flex: 1 1 160px;
|
||||
}
|
||||
|
||||
.secondary-button {
|
||||
background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
|
||||
}
|
||||
|
||||
.message {
|
||||
margin: 0 0 14px;
|
||||
padding: 12px 14px;
|
||||
border-radius: 10px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.message.error {
|
||||
color: var(--error-color);
|
||||
background: rgba(254, 226, 226, 0.92);
|
||||
}
|
||||
|
||||
.message.success {
|
||||
color: var(--success-color);
|
||||
background: rgba(220, 252, 231, 0.92);
|
||||
}
|
||||
|
||||
.message.info {
|
||||
color: var(--info-color);
|
||||
background: rgba(219, 234, 254, 0.92);
|
||||
}
|
||||
|
||||
.qr-panel {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin: 8px 0 6px;
|
||||
padding: 18px;
|
||||
border-radius: 16px;
|
||||
background: rgba(255, 255, 255, 0.38);
|
||||
border: 1px solid rgba(255, 255, 255, 0.24);
|
||||
}
|
||||
|
||||
.qr-code {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 220px;
|
||||
min-height: 220px;
|
||||
padding: 10px;
|
||||
border-radius: 14px;
|
||||
background: #ffffff;
|
||||
color: var(--muted-text-color);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.qr-code img {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
nav {
|
||||
padding: 16px 20px;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.auth-shell {
|
||||
padding: 20px 12px 28px;
|
||||
}
|
||||
|
||||
.auth-panel {
|
||||
padding: 24px 18px;
|
||||
}
|
||||
|
||||
form {
|
||||
padding: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user