Files
acht-damen-tuerme-problem/app/static/css/login.css
T

298 lines
5.2 KiB
CSS

:root {
--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 {
font-family: "Geist Sans";
src: url("https://assets.codepen.io/605876/GeistVF.ttf") format("truetype");
}
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
color: var(--text-color);
font-family: "Geist Sans", system-ui, sans-serif;
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%;
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;
flex-wrap: wrap;
gap: 20px;
}
nav a {
color: white;
text-decoration: none;
font-size: 16px;
}
nav a:hover {
color: #93c5fd;
}
.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;
align-items: center;
justify-content: center;
padding: 32px 16px;
}
.settings-shell {
align-items: flex-start;
}
.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;
transform: translateY(15px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
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);
}
label {
margin-top: 8px;
font-size: 14px;
font-weight: 600;
}
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;
align-items: center;
gap: 10px;
margin: 10px 0 6px;
}
.checkbox-row input {
width: auto;
}
button {
margin-top: 14px;
padding: 12px 16px;
border: none;
border-radius: 10px;
background: linear-gradient(135deg, #eff6ff, #dbeafe);
color: #172033;
cursor: pointer;
font-size: 16px;
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 10px 24px rgba(15, 23, 42, 0.18);
}
button:active {
transform: scale(0.98);
}
.button-row {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.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;
}
}