Major update 2 / login

This commit is contained in:
2026-04-26 16:33:04 +03:00
parent 5bff9a287d
commit e8fd35105f
15 changed files with 999 additions and 96 deletions

112
templates/register.html Normal file
View File

@@ -0,0 +1,112 @@
<!DOCTYPE html>
<html lang="el">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grepolis Remote — Εγγραφή</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Inter', sans-serif;
background: #0d1117;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
color: #e6edf3;
}
.card {
background: #161b22;
border: 1px solid #30363d;
border-radius: 12px;
padding: 40px 36px;
width: 100%;
max-width: 400px;
box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.logo { text-align: center; margin-bottom: 28px; }
.logo h1 { font-size: 1.6rem; font-weight: 700; color: #c8a44a; }
.logo p { color: #8b949e; font-size: 0.9rem; margin-top: 6px; }
.form-group { margin-bottom: 18px; }
label { display: block; font-size: 0.85rem; font-weight: 500; color: #8b949e; margin-bottom: 6px; }
input[type="text"], input[type="password"] {
width: 100%;
padding: 10px 14px;
background: #0d1117;
border: 1px solid #30363d;
border-radius: 6px;
color: #e6edf3;
font-size: 0.95rem;
font-family: inherit;
transition: border-color 0.2s;
}
input:focus { outline: none; border-color: #c8a44a; }
.btn {
width: 100%;
padding: 11px;
background: #c8a44a;
color: #0d1117;
border: none;
border-radius: 6px;
font-size: 0.95rem;
font-weight: 700;
font-family: inherit;
cursor: pointer;
transition: background 0.2s, transform 0.1s;
margin-top: 4px;
}
.btn:hover { background: #e0b85a; transform: translateY(-1px); }
.error {
background: rgba(248,81,73,0.12);
border: 1px solid rgba(248,81,73,0.4);
border-radius: 6px;
padding: 10px 14px;
color: #f85149;
font-size: 0.875rem;
margin-bottom: 18px;
}
.footer-link {
text-align: center;
margin-top: 22px;
font-size: 0.85rem;
color: #8b949e;
}
.footer-link a { color: #c8a44a; text-decoration: none; }
.footer-link a:hover { text-decoration: underline; }
</style>
</head>
<body>
<div class="card">
<div class="logo">
<h1>⚔️ Grepolis Remote</h1>
<p>Δημιουργία νέου λογαριασμού</p>
</div>
{% if error %}
<div class="error">{{ error }}</div>
{% endif %}
<form method="POST" action="/auth/register">
<div class="form-group">
<label for="username">Όνομα Χρήστη</label>
<input type="text" id="username" name="username" autocomplete="username" required>
</div>
<div class="form-group">
<label for="password">Κωδικός</label>
<input type="password" id="password" name="password" autocomplete="new-password" required>
</div>
<div class="form-group">
<label for="confirm">Επαλήθευση Κωδικού</label>
<input type="password" id="confirm" name="confirm" autocomplete="new-password" required>
</div>
<button type="submit" class="btn">Εγγραφή →</button>
</form>
<div class="footer-link">
Έχετε ήδη λογαριασμό; <a href="/auth/login">Σύνδεση</a>
</div>
</div>
</body>
</html>