273 lines
7.6 KiB
HTML
273 lines
7.6 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="pt-br">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>Login | SGMP PROD</title>
|
||
|
|
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>📊</text></svg>">
|
||
|
|
<style>
|
||
|
|
/*
|
||
|
|
* CSS LOCAL
|
||
|
|
* Isolado para não afetar o restante do sistema (base.html)
|
||
|
|
* Design moderno sem frameworks (Bootstrap/Tailwind)
|
||
|
|
*/
|
||
|
|
|
||
|
|
:root {
|
||
|
|
--primary-color: #2563eb; /* Azul corporativo */
|
||
|
|
--primary-hover: #1d4ed8;
|
||
|
|
--bg-left: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
|
||
|
|
--text-color: #333333;
|
||
|
|
--text-muted: #666666;
|
||
|
|
--border-color: #e5e7eb;
|
||
|
|
--radius: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
* {
|
||
|
|
box-sizing: border-box;
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
body {
|
||
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||
|
|
height: 100vh;
|
||
|
|
display: flex;
|
||
|
|
overflow: hidden; /* Evita scroll desnecessário */
|
||
|
|
}
|
||
|
|
|
||
|
|
/* LAYOUT DIVIDIDO */
|
||
|
|
.login-wrapper {
|
||
|
|
display: flex;
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* PAINEL ESQUERDO (VISUAL) */
|
||
|
|
.panel-visual {
|
||
|
|
flex: 1;
|
||
|
|
background: var(--bg-left);
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
justify-content: center;
|
||
|
|
align-items: center;
|
||
|
|
color: white;
|
||
|
|
padding: 2rem;
|
||
|
|
text-align: center;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* DETALHE DISCRETO: Badge PROD no canto superior direito */
|
||
|
|
.prod-badge {
|
||
|
|
position: absolute;
|
||
|
|
top: 20px;
|
||
|
|
right: 20px;
|
||
|
|
background: rgba(255, 255, 255, 0.15);
|
||
|
|
backdrop-filter: blur(10px);
|
||
|
|
padding: 6px 12px;
|
||
|
|
border-radius: 20px;
|
||
|
|
font-size: 0.75rem;
|
||
|
|
font-weight: 600;
|
||
|
|
letter-spacing: 0.5px;
|
||
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.panel-visual h1 {
|
||
|
|
font-size: 3rem;
|
||
|
|
margin-bottom: 1rem;
|
||
|
|
letter-spacing: -1px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.panel-visual p {
|
||
|
|
font-size: 1.2rem;
|
||
|
|
opacity: 0.9;
|
||
|
|
max-width: 400px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* PAINEL DIREITO (FORMULÁRIO) */
|
||
|
|
.panel-form {
|
||
|
|
flex: 1;
|
||
|
|
display: flex;
|
||
|
|
justify-content: center;
|
||
|
|
align-items: center;
|
||
|
|
background-color: #ffffff;
|
||
|
|
padding: 2rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.login-card {
|
||
|
|
width: 100%;
|
||
|
|
max-width: 400px;
|
||
|
|
padding: 2rem;
|
||
|
|
/* Opcional: Borda suave se o fundo não for branco puro */
|
||
|
|
}
|
||
|
|
|
||
|
|
.login-header {
|
||
|
|
margin-bottom: 2rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.login-header h2 {
|
||
|
|
font-size: 1.8rem;
|
||
|
|
color: var(--text-color);
|
||
|
|
margin-bottom: 0.5rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.login-header p {
|
||
|
|
color: var(--text-muted);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ESTILIZAÇÃO DO FORMULÁRIO */
|
||
|
|
form p {
|
||
|
|
margin-bottom: 1rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Labels */
|
||
|
|
form label {
|
||
|
|
display: block;
|
||
|
|
margin-bottom: 0.5rem;
|
||
|
|
font-weight: 500;
|
||
|
|
color: var(--text-color);
|
||
|
|
font-size: 0.9rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Inputs */
|
||
|
|
form input[type="text"],
|
||
|
|
form input[type="password"],
|
||
|
|
form input[type="email"] {
|
||
|
|
width: 100%;
|
||
|
|
padding: 0.75rem 1rem;
|
||
|
|
border: 1px solid var(--border-color);
|
||
|
|
border-radius: var(--radius);
|
||
|
|
font-size: 1rem;
|
||
|
|
transition: border-color 0.2s;
|
||
|
|
outline: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
form input:focus {
|
||
|
|
border-color: var(--primary-color);
|
||
|
|
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Botão de Submit */
|
||
|
|
.btn-submit {
|
||
|
|
width: 100%;
|
||
|
|
padding: 0.8rem;
|
||
|
|
background-color: var(--primary-color);
|
||
|
|
color: white;
|
||
|
|
border: none;
|
||
|
|
border-radius: var(--radius);
|
||
|
|
font-size: 1rem;
|
||
|
|
font-weight: 600;
|
||
|
|
cursor: pointer;
|
||
|
|
margin-top: 1rem;
|
||
|
|
transition: background-color 0.2s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-submit:hover {
|
||
|
|
background-color: var(--primary-hover);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* MENSAGENS DE ERRO */
|
||
|
|
.messages-container {
|
||
|
|
margin-bottom: 1.5rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert {
|
||
|
|
padding: 0.75rem;
|
||
|
|
border-radius: var(--radius);
|
||
|
|
font-size: 0.9rem;
|
||
|
|
margin-bottom: 0.5rem;
|
||
|
|
background-color: #fee2e2;
|
||
|
|
color: #991b1b;
|
||
|
|
border: 1px solid #fecaca;
|
||
|
|
}
|
||
|
|
|
||
|
|
.alert.success {
|
||
|
|
background-color: #d1fae5;
|
||
|
|
color: #065f46;
|
||
|
|
border-color: #a7f3d0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.errorlist {
|
||
|
|
list-style: none;
|
||
|
|
color: #dc2626;
|
||
|
|
font-size: 0.85rem;
|
||
|
|
margin-top: 0.25rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* TEXTO DE AJUDA */
|
||
|
|
.helptext {
|
||
|
|
display: block;
|
||
|
|
font-size: 0.75rem;
|
||
|
|
color: var(--text-muted);
|
||
|
|
margin-top: 0.25rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* RESPONSIVIDADE */
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.panel-visual {
|
||
|
|
display: none; /* Esconde o painel visual em telas pequenas */
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
|
||
|
|
<div class="login-wrapper">
|
||
|
|
|
||
|
|
<!-- Painel Esquerdo: Decorativo -->
|
||
|
|
<div class="panel-visual">
|
||
|
|
<!-- Badge PROD discreto -->
|
||
|
|
<div class="prod-badge">PROD</div>
|
||
|
|
<h1>SGMP</h1>
|
||
|
|
<p>Sistema de Gestão e Movimentações de Pessoas</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- Painel Direito: Formulário -->
|
||
|
|
<div class="panel-form">
|
||
|
|
<div class="login-card">
|
||
|
|
|
||
|
|
<div class="login-header">
|
||
|
|
<h2>Bem-vindo</h2>
|
||
|
|
<p>Insira suas credenciais para acessar.</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- Bloco de Mensagens do Django -->
|
||
|
|
{% if messages %}
|
||
|
|
<div class="messages-container">
|
||
|
|
{% for message in messages %}
|
||
|
|
<div class="alert {{ message.tags }}">
|
||
|
|
{{ message }}
|
||
|
|
</div>
|
||
|
|
{% endfor %}
|
||
|
|
</div>
|
||
|
|
{% endif %}
|
||
|
|
|
||
|
|
<!-- Formulário -->
|
||
|
|
<form method="post">
|
||
|
|
{% csrf_token %}
|
||
|
|
|
||
|
|
<p>
|
||
|
|
<label for="username">Usuário:</label>
|
||
|
|
<input type="text" name="username" id="username" placeholder="Matrícula Winthor" required autofocus>
|
||
|
|
</p>
|
||
|
|
|
||
|
|
<p>
|
||
|
|
<label for="password">Senha:</label>
|
||
|
|
<input type="password" name="password" id="password" placeholder="Senha Winthor" required>
|
||
|
|
</p>
|
||
|
|
|
||
|
|
<button type="submit" class="btn-submit">Entrar</button>
|
||
|
|
|
||
|
|
<!-- Campo oculto "next" para redirecionamento pós-login -->
|
||
|
|
{% if request.GET.next %}
|
||
|
|
<input type="hidden" name="next" value="{{ request.GET.next }}">
|
||
|
|
{% endif %}
|
||
|
|
</form>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</body>
|
||
|
|
</html>
|