Files
oldmarketcustomserver/templates/login.html
drel 9eca006d8a succ
succ
2025-10-18 03:11:05 +03:00

132 lines
3.6 KiB
HTML

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Вход в админ-панель - OldMarket</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.login-container {
background: white;
padding: 40px;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
width: 100%;
max-width: 400px;
}
.login-header {
text-align: center;
margin-bottom: 30px;
}
.login-header h1 {
color: #2c3e50;
margin-bottom: 10px;
}
.login-header p {
color: #7f8c8d;
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
color: #2c3e50;
}
input {
width: 100%;
padding: 12px;
border: 2px solid #ecf0f1;
border-radius: 5px;
font-size: 16px;
transition: border-color 0.3s;
}
input:focus {
outline: none;
border-color: #3498db;
}
.btn {
background: #3498db;
color: white;
padding: 12px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
width: 100%;
transition: background 0.3s;
}
.btn:hover {
background: #2980b9;
}
.error {
background: #e74c3c;
color: white;
padding: 10px;
border-radius: 5px;
margin-bottom: 20px;
text-align: center;
}
.default-credentials {
margin-top: 20px;
padding: 15px;
background: #f8f9fa;
border-radius: 5px;
border-left: 4px solid #3498db;
}
.default-credentials h4 {
color: #2c3e50;
margin-bottom: 5px;
}
.default-credentials p {
color: #7f8c8d;
font-size: 14px;
}
</style>
</head>
<body>
<div class="login-container">
<div class="login-header">
<h1>OldMarket Admin</h1>
<p>Войдите в панель управления</p>
</div>
{% if error %}
<div class="error">
{{ error }}
</div>
{% endif %}
<form method="post">
<div class="form-group">
<label for="username">Имя пользователя:</label>
<input type="text" id="username" name="username" required>
</div>
<div class="form-group">
<label for="password">Пароль:</label>
<input type="password" id="password" name="password" required>
</div>
<button type="submit" class="btn">Войти</button>
</form>
<div class="default-credentials">
<h4>Демо доступ:</h4>
<p><strong>Логин:</strong> admin</p>
<p><strong>Пароль:</strong> admin123</p>
</div>
</div>
</body>
</html>