templates/security/login.html.twig line 1
{# templates/security/index.html.twig #}
{% extends 'base.html.twig' %}
{% block title %}Firma Vila Viniteca - Login
{% endblock %}
{% block body %}
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: auto;
}
form {
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
width: 300px;
}
form label {
display: block;
margin-bottom: 5px;
}
form input[type="text"],
form input[type="password"] {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border-radius: 5px;
border: 1px solid #ccc;
}
form button {
padding: 10px 20px;
border: none;
background-color: #007BFF;
color: #fff;
border-radius: 5px;
cursor: pointer;
}
form button:hover {
background-color: #0056b3;
}
form div {
color: red;
margin-bottom: 15px;
}
</style>
<div class="container">
<div class="logo">
<h1>Firma Empresa</h1>
<img src="https://firma.vilaviniteca.es/uploads/logo.webp" alt="Vila Viniteca" class="large">
</div>
{% if error %}
<div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<form action="{{ path('app_admin_login') }}" method="post">
<label for="username">Email:</label>
<input type="text" id="username" name="_username" value="{{ last_username }}">
<label for="password">Password:</label>
<input
type="password" id="password" name="_password">
{# If you want to control the URL the user is redirected to on success #}
<input type="hidden" name="_target_path" value="/crud">
<button type="submit">login</button>
</form>
</div>
{% endblock %}