morozovka-portal/app/templates/login.html

51 lines
2.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Вход — Morozovka Portal</title>
<style>
body { background: #0d1117; color: #e6edf3; font-family: sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; }
.card { background: #161b22; padding: 30px; border-radius: 8px; border: 1px solid #30363d; width: 300px; }
h2 { color: #58a6ff; margin-top: 0; text-align: center; }
.form-group { margin-bottom: 15px; display: flex; flex-direction: column; }
label { margin-bottom: 5px; color: #8b949e; font-size: 0.85rem; }
input { padding: 10px; background: #0d1117; color: white; border: 1px solid #30363d; border-radius: 5px; }
button { width: 100%; padding: 10px; background: #238636; color: white; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; margin-top: 10px; }
button:hover { background: #2ea043; }
.gitea-btn { background: #30363d; margin-top: 15px; display: block; text-align: center; text-decoration: none; padding: 10px; border-radius: 5px; color: white; font-weight: bold; font-size: 0.9rem; }
.gitea-btn:hover { background: #21262d; }
.links { margin-top: 15px; text-align: center; font-size: 0.85rem; }
.links a { color: #58a6ff; text-decoration: none; display: block; margin-bottom: 5px; }
.msg { color: #3fb950; text-align: center; margin-bottom: 15px; font-size: 0.9rem; }
.error { color: #f85149; text-align: center; margin-bottom: 15px; font-size: 0.9rem; }
</style>
</head>
<body>
<div class="card">
<h2>Вход</h2>
{% if msg %}<div class="msg">{{ msg }}</div>{% endif %}
{% if error %}<div class="error">{{ error }}</div>{% endif %}
<form method="POST">
<div class="form-group">
<label>Логин</label>
<input type="text" name="username" required>
</div>
<div class="form-group">
<label>Пароль</label>
<input type="password" name="password" required>
</div>
<button type="submit">Войти</button>
</form>
<a href="/login/gitea" class="gitea-btn">Войти через Gitea</a>
<div class="links">
<a href="/register">Нет аккаунта? Регистрация</a>
<a href="/forgot_password">Забыли пароль?</a>
<a href="/" style="color: #8b949e;">← На главную</a>
</div>
</div>
</body>
</html>