31 lines
1.5 KiB
HTML
31 lines
1.5 KiB
HTML
<!-- app/templates/login.html -->
|
|
<!DOCTYPE html>
|
|
<html lang="pt-BR">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Entrar — Painel de Clientes</title>
|
|
<style>
|
|
body { font-family: system-ui, sans-serif; margin: 0; background: #17171a; color: #f4f4f5; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
|
|
form { width: 320px; padding: 24px; background: #232326; border-radius: 10px; }
|
|
h1 { font-size: 1.2rem; margin-top: 0; }
|
|
label { display: block; margin-top: 10px; font-size: 0.85rem; color: #a1a1aa; }
|
|
input { width: 100%; padding: 8px; border-radius: 6px; border: 1px solid #3a3a3e; background: #17171a; color: #f4f4f5; box-sizing: border-box; }
|
|
button { margin-top: 16px; width: 100%; padding: 10px 16px; border: none; border-radius: 6px; background: #F5821F; color: #17171a; font-weight: 700; cursor: pointer; }
|
|
.mensagem.danger { padding: 10px; border-radius: 6px; margin-bottom: 12px; background: #7f1d1d; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<form method="post" action="/login">
|
|
<h1>Painel de Clientes</h1>
|
|
{% if erro %}<div class="mensagem danger">{{ erro }}</div>{% endif %}
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
|
|
<input type="hidden" name="next" value="{{ next }}">
|
|
<label for="usuario">Usuário</label>
|
|
<input type="text" id="usuario" name="usuario" required autofocus>
|
|
<label for="senha">Senha</label>
|
|
<input type="password" id="senha" name="senha" required>
|
|
<button type="submit">Entrar</button>
|
|
</form>
|
|
</body>
|
|
</html>
|