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

View File

@@ -5,26 +5,64 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grepolis Remote Dashboard - Select Player</title>
<link rel="stylesheet" href="/static/css/styles.css">
<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', 'Segoe UI', sans-serif;
background-color: #0d1117;
min-height: 100vh;
color: #e6edf3;
}
/* --- Top nav --- */
.topbar {
background: #161b22;
border-bottom: 1px solid #30363d;
padding: 14px 32px;
display: flex;
align-items: center;
justify-content: space-between;
}
.topbar-logo { font-size: 1.1rem; font-weight: 700; color: #c8a44a; }
.topbar-nav { display: flex; gap: 16px; align-items: center; }
.topbar-nav a {
color: #8b949e; font-size: 0.875rem; text-decoration: none;
padding: 6px 12px; border-radius: 6px; transition: background 0.2s, color 0.2s;
}
.topbar-nav a:hover { background: #21262d; color: #e6edf3; }
.topbar-nav .user-badge { color: #c8a44a; font-size: 0.875rem; font-weight: 600; }
.btn-logout {
background: rgba(248,81,73,0.1); color: #f85149;
border: 1px solid rgba(248,81,73,0.3); padding: 6px 14px; border-radius: 6px;
font-size: 0.875rem; font-family: inherit; text-decoration: none;
transition: background 0.2s;
}
.btn-logout:hover { background: rgba(248,81,73,0.2) !important; }
/* --- Main content --- */
.main-content {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #1a1a24;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
align-items: flex-start;
padding: 60px 20px;
min-height: calc(100vh - 57px);
}
.landing-container {
background: #2a2a36;
background: #161b22;
border: 1px solid #30363d;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
border-radius: 10px;
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
text-align: center;
max-width: 500px;
max-width: 520px;
width: 100%;
}
.landing-container h1 { color: #c8a44a; margin-bottom: 5px; font-size: 1.5rem; }
.landing-container > p { color: #8b949e; margin-bottom: 20px; font-size: 0.9rem; }
.player-card {
background: #3a3a46;
background: #21262d;
margin: 10px 0;
padding: 15px;
border-radius: 6px;
@@ -33,66 +71,86 @@
color: white;
display: block;
transition: background 0.2s, transform 0.1s;
font-size: 1.1rem;
border: 1px solid #4a4a56;
font-size: 1rem;
border: 1px solid #30363d;
}
.player-card:hover {
background: #5a5a66;
transform: translateY(-2px);
border-color: #c8a44a;
.player-card:hover { background: #30363d; transform: translateY(-2px); border-color: #c8a44a; }
.player-card span { color: #8b949e; font-size: 0.8rem; margin-left: 8px; }
.no-clan-box {
background: rgba(200,164,74,0.1);
border: 1px solid rgba(200,164,74,0.3);
border-radius: 8px;
padding: 20px;
margin-top: 10px;
}
.player-card span {
color: #888;
font-size: 0.8rem;
margin-left: 10px;
}
h1 {
color: #c8a44a;
margin-bottom: 5px;
}
p {
color: #aaa;
margin-bottom: 20px;
.no-clan-box p { color: #c8a44a; margin-bottom: 12px; }
.btn-create {
display: inline-block;
background: #c8a44a; color: #0d1117;
padding: 9px 20px; border-radius: 6px;
font-weight: 700; font-size: 0.875rem; text-decoration: none;
transition: background 0.2s;
}
.btn-create:hover { background: #e0b85a; }
</style>
</head>
<body>
<div class="landing-container">
<h1>⚔️ Grepolis Remote</h1>
<p>Select an active account to manage</p>
{% if not players %}
<p style="color: #ffaa55;">No players found! Install the Tampermonkey script and log into the game first.</p>
{% endif %}
{% for p in players %}
<a href="/player/{{ p.player_id }}" class="player-card">
<div style="display: flex; justify-content: space-between; align-items: center;">
<div>
<strong>{{ p.player }}</strong> <span style="color: #6fcfcf;">[{{ p.world_id }}]</span> <span>(ID: {{ p.player_id }})</span>
</div>
<div style="display: flex; gap: 8px;">
{% if p.captcha_active %}
<span style="display: flex; align-items: center; gap: 6px; background: rgba(255, 100, 100, 0.2); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; color: #ff6464; font-weight: bold; border: 1px solid rgba(255, 100, 100, 0.5); box-shadow: 0 0 8px rgba(255, 100, 100, 0.4);">
⚠️ Captcha
</span>
{% endif %}
{% if p.is_online %}
<span style="display: flex; align-items: center; gap: 6px; background: rgba(50, 150, 50, 0.2); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; color: #7bcc7b; font-weight: bold; border: 1px solid rgba(123, 204, 123, 0.3);">
<span style="display: inline-block; width: 8px; height: 8px; background: #7bcc7b; border-radius: 50%; box-shadow: 0 0 6px #7bcc7b;"></span>
Online
</span>
{% else %}
<span style="display: flex; align-items: center; gap: 6px; background: rgba(150, 50, 50, 0.2); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; color: #cc7b7b; font-weight: bold; border: 1px solid rgba(204, 123, 123, 0.3);">
<span style="display: inline-block; width: 8px; height: 8px; background: #cc7b7b; border-radius: 50%;"></span>
Offline
</span>
{% endif %}
</div>
</div>
</a>
{% endfor %}
<div class="topbar">
<span class="topbar-logo">⚔️ Grepolis Remote</span>
<div class="topbar-nav">
{% if current_user.is_authenticated %}
<span class="user-badge">{{ current_user.username }}</span>
<a href="/auth/options">Ρυθμίσεις</a>
<a href="/auth/logout" class="btn-logout">Αποσύνδεση</a>
{% endif %}
</div>
</div>
<div class="main-content">
<div class="landing-container">
<h1>⚔️ Grepolis Remote</h1>
<p>Select an active account to manage</p>
{% if no_clan %}
<div class="no-clan-box">
<p>Δεν έχετε δημιουργήσει clan ακόμη. Πηγαίνετε στις Ρυθμίσεις για να ξεκινήσετε.</p>
<a href="/auth/options" class="btn-create">🏰 Δημιουργία Clan →</a>
</div>
{% elif not players %}
<p style="color:#ffaa55;">Κανένας παίκτης δεν έχει συνδεθεί ακόμη. Βεβαιωθείτε ότι το Loader script τρέχει με το σωστό Clan Key.</p>
{% endif %}
{% for p in players %}
<a href="/player/{{ p.player_id }}" class="player-card">
<div style="display: flex; justify-content: space-between; align-items: center;">
<div>
<strong>{{ p.player }}</strong>
<span style="color:#6fcfcf;">[{{ p.world_id }}]</span>
<span>(ID: {{ p.player_id }})</span>
</div>
<div style="display: flex; gap: 8px;">
{% if p.captcha_active %}
<span style="display:flex;align-items:center;gap:6px;background:rgba(255,100,100,0.2);padding:5px 12px;border-radius:20px;font-size:0.8rem;color:#ff6464;font-weight:bold;border:1px solid rgba(255,100,100,0.5);">
⚠️ Captcha
</span>
{% endif %}
{% if p.is_online %}
<span style="display:flex;align-items:center;gap:6px;background:rgba(50,150,50,0.2);padding:5px 12px;border-radius:20px;font-size:0.8rem;color:#7bcc7b;font-weight:bold;border:1px solid rgba(123,204,123,0.3);">
<span style="display:inline-block;width:8px;height:8px;background:#7bcc7b;border-radius:50%;box-shadow:0 0 6px #7bcc7b;"></span>Online
</span>
{% else %}
<span style="display:flex;align-items:center;gap:6px;background:rgba(150,50,50,0.2);padding:5px 12px;border-radius:20px;font-size:0.8rem;color:#cc7b7b;font-weight:bold;border:1px solid rgba(204,123,123,0.3);">
<span style="display:inline-block;width:8px;height:8px;background:#cc7b7b;border-radius:50%;"></span>Offline
</span>
{% endif %}
</div>
</div>
</a>
{% endfor %}
</div>
</div>
</body>
</html>

115
templates/login.html Normal file
View File

@@ -0,0 +1,115 @@
<!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/login">
<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="current-password" required>
</div>
<button type="submit" class="btn">Σύνδεση →</button>
</form>
<div class="footer-link">
Δεν έχετε λογαριασμό; <a href="/auth/register">Εγγραφή</a>
</div>
</div>
</body>
</html>

260
templates/options.html Normal file
View File

@@ -0,0 +1,260 @@
<!DOCTYPE html>
<html lang="el">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grepolis Remote — Ρυθμίσεις Clan</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; color: #e6edf3; min-height: 100vh; }
/* --- Top nav --- */
.topbar {
background: #161b22;
border-bottom: 1px solid #30363d;
padding: 14px 32px;
display: flex;
align-items: center;
justify-content: space-between;
}
.topbar-logo { font-size: 1.1rem; font-weight: 700; color: #c8a44a; text-decoration: none; }
.topbar-nav { display: flex; gap: 16px; align-items: center; }
.topbar-nav a {
color: #8b949e; font-size: 0.875rem; text-decoration: none;
padding: 6px 12px; border-radius: 6px; transition: background 0.2s, color 0.2s;
}
.topbar-nav a:hover { background: #21262d; color: #e6edf3; }
.topbar-nav a.active { color: #c8a44a; }
.topbar-nav .btn-logout {
background: rgba(248,81,73,0.1); color: #f85149;
border: 1px solid rgba(248,81,73,0.3); padding: 6px 14px; border-radius: 6px;
cursor: pointer; font-size: 0.875rem; font-family: inherit; text-decoration: none;
transition: background 0.2s;
}
.topbar-nav .btn-logout:hover { background: rgba(248,81,73,0.2); }
/* --- Page layout --- */
.page { max-width: 760px; margin: 40px auto; padding: 0 20px; }
.page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.page-subtitle { color: #8b949e; font-size: 0.9rem; margin-bottom: 32px; }
/* --- Cards --- */
.card {
background: #161b22;
border: 1px solid #30363d;
border-radius: 10px;
padding: 24px 28px;
margin-bottom: 24px;
}
.card-title {
font-size: 1rem; font-weight: 600;
margin-bottom: 18px; padding-bottom: 12px;
border-bottom: 1px solid #30363d;
display: flex; align-items: center; gap: 8px;
}
/* --- Key display --- */
.key-box {
background: #0d1117;
border: 1px solid #30363d;
border-radius: 6px;
padding: 14px 18px;
display: flex; align-items: center; justify-content: space-between;
gap: 12px; margin-bottom: 14px;
}
.key-value {
font-family: 'Courier New', monospace;
font-size: 1.4rem;
font-weight: 700;
color: #c8a44a;
letter-spacing: 3px;
}
.btn-copy {
background: #21262d; color: #e6edf3;
border: 1px solid #30363d; border-radius: 6px;
padding: 6px 14px; font-size: 0.8rem; cursor: pointer;
font-family: inherit; transition: background 0.2s; white-space: nowrap;
}
.btn-copy:hover { background: #30363d; }
/* --- Create clan form --- */
.inline-form { display: flex; gap: 10px; }
.inline-form input[type="text"] {
flex: 1; padding: 9px 14px;
background: #0d1117; border: 1px solid #30363d; border-radius: 6px;
color: #e6edf3; font-size: 0.9rem; font-family: inherit;
}
.inline-form input:focus { outline: none; border-color: #c8a44a; }
/* --- Buttons --- */
.btn-primary {
background: #c8a44a; color: #0d1117;
border: none; border-radius: 6px; padding: 9px 18px;
font-weight: 700; font-size: 0.875rem; font-family: inherit;
cursor: pointer; transition: background 0.2s, transform 0.1s; white-space: nowrap;
}
.btn-primary:hover { background: #e0b85a; transform: translateY(-1px); }
.btn-danger {
background: rgba(248,81,73,0.1); color: #f85149;
border: 1px solid rgba(248,81,73,0.3); border-radius: 6px;
padding: 5px 12px; font-size: 0.8rem; font-family: inherit;
cursor: pointer; transition: background 0.2s;
}
.btn-danger:hover { background: rgba(248,81,73,0.2); }
.btn-warning {
background: rgba(210,153,34,0.1); color: #d99512;
border: 1px solid rgba(210,153,34,0.3); border-radius: 6px;
padding: 7px 14px; font-size: 0.8rem; font-family: inherit;
cursor: pointer; transition: background 0.2s; margin-top: 6px;
}
.btn-warning:hover { background: rgba(210,153,34,0.2); }
/* --- Members table --- */
.members-table { width: 100%; border-collapse: collapse; }
.members-table th {
text-align: left; font-size: 0.75rem; color: #8b949e;
text-transform: uppercase; letter-spacing: 0.5px;
padding: 0 0 10px 0; border-bottom: 1px solid #30363d;
}
.members-table td {
padding: 12px 0; border-bottom: 1px solid #21262d;
font-size: 0.875rem; vertical-align: middle;
}
.members-table tr:last-child td { border-bottom: none; }
.player-name { font-weight: 600; }
.player-id { color: #8b949e; font-size: 0.78rem; font-family: monospace; }
.status-online { color: #3fb950; font-size: 0.78rem; font-weight: 600; }
.status-offline { color: #8b949e; font-size: 0.78rem; }
.empty-state {
text-align: center; padding: 32px 0;
color: #8b949e; font-size: 0.9rem;
}
.warn-box {
background: rgba(210,153,34,0.1);
border: 1px solid rgba(210,153,34,0.3);
border-radius: 6px; padding: 12px 16px;
color: #d99512; font-size: 0.85rem; margin-top: 10px;
}
</style>
</head>
<body>
<div class="topbar">
<a class="topbar-logo" href="/">⚔️ Grepolis Remote</a>
<div class="topbar-nav">
<a href="/">Clients</a>
<a href="/auth/options" class="active">Ρυθμίσεις</a>
<a href="/auth/logout" class="btn-logout">Αποσύνδεση</a>
</div>
</div>
<div class="page">
<div class="page-title">Ρυθμίσεις Clan</div>
<div class="page-subtitle">Διαχείριση της ομάδας σας και του κλειδιού πρόσβασης</div>
{% if clan %}
<!-- ===================== Clan Key Section ===================== -->
<div class="card">
<div class="card-title">🔑 Clan Key</div>
<p style="color:#8b949e; font-size:0.875rem; margin-bottom:14px;">
Μοιραστείτε αυτό το κλειδί με τους παίκτες σας. Πρέπει να το προσθέσουν στο Loader script τους για να συνδεθούν στην ομάδα σας.
</p>
<div class="key-box">
<span class="key-value" id="clanKeyDisplay">{{ clan.clan_key }}</span>
<button class="btn-copy" onclick="copyKey()">📋 Αντιγραφή</button>
</div>
<div class="warn-box">
⚠️ Εάν αναγεννήσετε το κλειδί, οι παίκτες σας θα πρέπει να ενημερώσουν το script τους με το νέο κλειδί.
</div>
<form method="POST" action="/auth/clan/regenerate-key"
onsubmit="return confirm('Σίγουρα; Οι παίκτες σου θα πρέπει να ανανεώσουν το κλειδί τους.');">
<button type="submit" class="btn-warning">🔄 Αναγέννηση Κλειδιού</button>
</form>
</div>
<!-- ===================== Members Section ===================== -->
<div class="card">
<div class="card-title">👥 Μέλη Clan — {{ clan.name }}</div>
{% if members %}
<table class="members-table">
<thead>
<tr>
<th>Παίκτης</th>
<th>Κατάσταση</th>
<th>Προστέθηκε</th>
<th></th>
</tr>
</thead>
<tbody>
{% for m in members %}
{% set last_seen = m.updated_at %}
{% if last_seen %}
{% set diff = (now - last_seen) | int %}
{% endif %}
<tr>
<td>
<div class="player-name">{{ m.player_name or 'Άγνωστος' }}</div>
<div class="player-id">ID: {{ m.player_id }}</div>
</td>
<td>
{% if m.updated_at and (now_ts - m.updated_at|string|int) < 150 %}
<span class="status-online">● Online</span>
{% else %}
<span class="status-offline">● Offline</span>
{% endif %}
</td>
<td style="color:#8b949e; font-size:0.8rem;">{{ m.joined_at[:10] }}</td>
<td style="text-align:right;">
<form method="POST" action="/auth/clan/remove-member/{{ m.player_id }}"
onsubmit="return confirm('Αφαίρεση παίκτη {{ m.player_name }}?');">
<button type="submit" class="btn-danger">Αφαίρεση</button>
</form>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<div class="empty-state">
Δεν υπάρχουν μέλη ακόμη.<br>
<span style="font-size:0.8rem; margin-top:6px; display:block;">
Μοιραστείτε το Clan Key με τους παίκτες σας για να συνδεθούν.
</span>
</div>
{% endif %}
</div>
{% else %}
<!-- ===================== Create Clan Section ===================== -->
<div class="card">
<div class="card-title">🏰 Δημιουργία Clan</div>
<p style="color:#8b949e; font-size:0.875rem; margin-bottom:18px;">
Δεν έχετε δημιουργήσει clan ακόμη. Δώστε ένα όνομα για να ξεκινήσετε.
</p>
<form method="POST" action="/auth/clan/create" class="inline-form">
<input type="text" name="clan_name" placeholder="π.χ. Alpha Squad" required>
<button type="submit" class="btn-primary">Δημιουργία →</button>
</form>
</div>
{% endif %}
</div>
<script>
function copyKey() {
const key = document.getElementById('clanKeyDisplay').textContent;
navigator.clipboard.writeText(key).then(() => {
const btn = document.querySelector('.btn-copy');
btn.textContent = '✅ Αντιγράφηκε!';
setTimeout(() => btn.textContent = '📋 Αντιγραφή', 2000);
});
}
</script>
</body>
</html>

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>