158 lines
3.7 KiB
HTML
158 lines
3.7 KiB
HTML
<!doctype html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>BackItUp - Login</title>
|
|
<style>
|
|
:root {
|
|
--bg-1: #f7f9fc;
|
|
--bg-2: #d9e8ff;
|
|
--bg-3: #ffe7c9;
|
|
--text: #10223a;
|
|
--muted: #3f5875;
|
|
--surface: rgba(255, 255, 255, 0.85);
|
|
--accent: #007d66;
|
|
--accent-strong: #005f4e;
|
|
--danger: #c2352a;
|
|
--border: rgba(16, 34, 58, 0.12);
|
|
--shadow: 0 20px 55px rgba(16, 34, 58, 0.2);
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
font-family: "Fira Sans", "Avenir Next", "Noto Sans", sans-serif;
|
|
color: var(--text);
|
|
background:
|
|
radial-gradient(1200px 700px at 10% -20%, var(--bg-2), transparent 65%),
|
|
radial-gradient(900px 600px at 90% 110%, var(--bg-3), transparent 60%),
|
|
linear-gradient(150deg, #eff5ff, var(--bg-1));
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 24px;
|
|
animation: fade-in 450ms ease-out;
|
|
}
|
|
|
|
.shell {
|
|
width: min(460px, 100%);
|
|
background: var(--surface);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid var(--border);
|
|
border-radius: 22px;
|
|
box-shadow: var(--shadow);
|
|
overflow: hidden;
|
|
animation: slide-up 500ms ease-out;
|
|
}
|
|
|
|
.head {
|
|
padding: 26px 26px 12px;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0;
|
|
font-size: clamp(26px, 6vw, 34px);
|
|
line-height: 1.08;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.content {
|
|
padding: 18px 26px 28px;
|
|
}
|
|
|
|
.field {
|
|
margin-bottom: 16px;
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
label {
|
|
font-size: 14px;
|
|
color: var(--muted);
|
|
font-weight: 600;
|
|
}
|
|
|
|
input {
|
|
width: 100%;
|
|
border: 1px solid var(--border);
|
|
background: #ffffff;
|
|
border-radius: 14px;
|
|
padding: 12px 14px;
|
|
font-size: 15px;
|
|
color: var(--text);
|
|
transition: border-color 180ms ease, box-shadow 180ms ease;
|
|
}
|
|
|
|
input:focus {
|
|
outline: none;
|
|
border-color: #5ca8ff;
|
|
box-shadow: 0 0 0 4px rgba(92, 168, 255, 0.17);
|
|
}
|
|
|
|
.error {
|
|
margin: 0 0 14px;
|
|
color: var(--danger);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
button {
|
|
width: 100%;
|
|
border: 0;
|
|
border-radius: 14px;
|
|
padding: 13px 14px;
|
|
color: #ffffff;
|
|
background: linear-gradient(135deg, var(--accent), #00a37f);
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: transform 120ms ease, filter 180ms ease;
|
|
}
|
|
|
|
button:hover {
|
|
filter: brightness(1.05);
|
|
}
|
|
|
|
button:active {
|
|
transform: translateY(1px);
|
|
background: linear-gradient(135deg, var(--accent-strong), #00795f);
|
|
}
|
|
|
|
@keyframes fade-in {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes slide-up {
|
|
from { transform: translateY(20px); opacity: 0; }
|
|
to { transform: translateY(0); opacity: 1; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main class="shell">
|
|
<header class="head">
|
|
<h1>BackItUp</h1>
|
|
</header>
|
|
<section class="content">
|
|
{% if error_message %}
|
|
<p class="error">{{ error_message }}</p>
|
|
{% endif %}
|
|
<form method="post" action="{{ url_for('login') }}">
|
|
<div class="field">
|
|
<label for="username">Benutzername</label>
|
|
<input id="username" name="username" type="text" autocomplete="username" required>
|
|
</div>
|
|
<div class="field">
|
|
<label for="password">Passwort</label>
|
|
<input id="password" name="password" type="password" autocomplete="current-password" required>
|
|
</div>
|
|
<button type="submit">Anmelden</button>
|
|
</form>
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|