188 lines
5.6 KiB
HTML
188 lines
5.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
|
<title>Anmeldung — WTC Kochbuch</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Lora:ital,wght@0,400;0,600;1,400&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,400&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="/static/cookbook.css?v=4.0">
|
|
<style>
|
|
body.login-body {
|
|
background-color: var(--creme, #faf6ee);
|
|
background-image:
|
|
radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
|
|
radial-gradient(circle at 0% 100%, rgba(30, 61, 47, 0.08) 0%, transparent 40%),
|
|
repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.015) 2px, rgba(0, 0, 0, 0.015) 4px);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
margin: 0;
|
|
font-family: var(--font-body, 'Lora', Georgia, serif);
|
|
color: var(--schwarz, #1a1a1a);
|
|
}
|
|
.login-card {
|
|
background: #ffffff;
|
|
border: 3px solid var(--tannengruen, #1e3d2f);
|
|
border-radius: 16px;
|
|
box-shadow: 6px 8px 0px rgba(30, 61, 47, 0.25);
|
|
width: 100%;
|
|
max-width: 420px;
|
|
padding: 36px 30px;
|
|
text-align: center;
|
|
position: relative;
|
|
}
|
|
.login-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 64px;
|
|
height: 64px;
|
|
background: var(--creme, #faf6ee);
|
|
border: 2px solid var(--gold, #d4af37);
|
|
border-radius: 50%;
|
|
font-size: 2rem;
|
|
margin-bottom: 12px;
|
|
box-shadow: 0 4px 10px rgba(0,0,0,0.06);
|
|
}
|
|
.login-title {
|
|
font-family: var(--font-hand, 'Caveat', cursive);
|
|
font-size: 2.2rem;
|
|
color: var(--tannengruen, #1e3d2f);
|
|
margin: 0 0 4px 0;
|
|
line-height: 1.1;
|
|
}
|
|
.login-subtitle {
|
|
font-size: 0.95rem;
|
|
color: #666;
|
|
margin: 0 0 24px 0;
|
|
}
|
|
.login-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
text-align: left;
|
|
}
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
.form-label {
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
color: var(--tannengruen, #1e3d2f);
|
|
}
|
|
.form-input {
|
|
padding: 10px 14px;
|
|
border: 2px solid #ddd;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
font-family: inherit;
|
|
background: #fafafa;
|
|
transition: border-color 0.2s, background-color 0.2s;
|
|
}
|
|
.form-input:focus {
|
|
outline: none;
|
|
border-color: var(--tannengruen, #1e3d2f);
|
|
background: #ffffff;
|
|
box-shadow: 0 0 0 3px rgba(30, 61, 47, 0.12);
|
|
}
|
|
.form-checkbox-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 0.88rem;
|
|
color: #555;
|
|
margin-top: 2px;
|
|
}
|
|
.form-checkbox-row input {
|
|
accent-color: var(--tannengruen, #1e3d2f);
|
|
width: 16px;
|
|
height: 16px;
|
|
cursor: pointer;
|
|
}
|
|
.login-btn {
|
|
background: var(--tannengruen, #1e3d2f);
|
|
color: var(--creme, #faf6ee);
|
|
border: 2px solid var(--tannengruen, #1e3d2f);
|
|
border-radius: 8px;
|
|
font-family: var(--font-hand, 'Caveat', cursive);
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
padding: 10px 16px;
|
|
cursor: pointer;
|
|
box-shadow: 3px 4px 0px rgba(0, 0, 0, 0.15);
|
|
transition: all 0.18s ease;
|
|
margin-top: 8px;
|
|
}
|
|
.login-btn:hover {
|
|
background: #274f3d;
|
|
border-color: #274f3d;
|
|
transform: translateY(-1px);
|
|
box-shadow: 3px 5px 0px rgba(0, 0, 0, 0.22);
|
|
}
|
|
.login-btn:active {
|
|
transform: translateY(0);
|
|
box-shadow: 1px 2px 0px rgba(0, 0, 0, 0.15);
|
|
}
|
|
.login-error {
|
|
background: #fdf2f2;
|
|
border: 1px solid #f8b4b4;
|
|
color: #9b1c1c;
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
font-size: 0.88rem;
|
|
margin-bottom: 16px;
|
|
text-align: left;
|
|
}
|
|
.login-footer {
|
|
margin-top: 24px;
|
|
font-size: 0.82rem;
|
|
color: #888;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="login-body">
|
|
<div class="login-card">
|
|
<div class="login-badge">📖</div>
|
|
<h1 class="login-title">WTC Kochbuch</h1>
|
|
<p class="login-subtitle">Privater Bereich • Bitte anmelden</p>
|
|
|
|
{% if error %}
|
|
<div class="login-error">
|
|
⚠️ {{ error }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<form method="POST" action="/login" class="login-form">
|
|
<input type="hidden" name="next" value="{{ next_url or '/cookbook' }}">
|
|
|
|
<div class="form-group">
|
|
<label class="form-label" for="username">Benutzername</label>
|
|
<input class="form-input" type="text" id="username" name="username" value="{{ username or 'admin' }}" required autofocus autocomplete="username">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label" for="password">Passwort</label>
|
|
<input class="form-input" type="password" id="password" name="password" required autocomplete="current-password" placeholder="Passwort eingeben">
|
|
</div>
|
|
|
|
<div class="form-checkbox-row">
|
|
<input type="checkbox" id="remember" name="remember" value="true" checked>
|
|
<label for="remember">Angemeldet bleiben (30 Tage)</label>
|
|
</div>
|
|
|
|
<button type="submit" class="login-btn">Anmelden ✨</button>
|
|
</form>
|
|
|
|
<div class="login-footer">
|
|
What To Cook? • Privates Rezeptarchiv & Kochbuch
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|