{% extends 'base.html.twig' %}
{% block title %}Recuperar contraseña{% endblock %}
{% block body_class %}login-page bg-light{% endblock %}
{% block body %}
<style>
.login-page {
background: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 100%);
background-image:
linear-gradient(135deg, rgba(236, 239, 241, 0.7) 0%, transparent 70%),
linear-gradient(45deg, rgba(207, 216, 220, 0.4) 0%, transparent 70%);
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
display:flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.auth-container {
width: 100%;
max-width: 440px;
margin: 2rem auto;
padding: 0 15px;
}
.auth-card {
background: white;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 40px;
position: relative;
overflow: hidden;
border: 1px solid #e1e5e9;
}
.auth-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(135deg, #1a4b8c 0%, #2c6cb0 100%);
}
.auth-header {
text-align: center;
margin-bottom: 30px;
}
.auth-icon {
width: 70px;
height: 70px;
background: linear-gradient(135deg, #1a4b8c 0%, #2c6cb0 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px;
color: white;
font-size: 28px;
}
.auth-title {
color: #2d3748;
font-weight: 700;
font-size: 1.75rem;
margin-bottom: 8px;
}
.auth-subtitle {
color: #718096;
font-size: 0.95rem;
line-height: 1.5;
}
.auth-form-label {
font-weight: 600;
color: #2d3748;
margin-bottom: 8px;
font-size: 0.9rem;
display: block;
}
.auth-form-control {
border: 2px solid #e1e5e9;
border-radius: 8px;
padding: 12px 45px 12px 16px;
font-size: 0.95rem;
transition: all 0.3s ease;
background: white;
width: 100%;
}
.auth-form-control:focus {
border-color: #1a4b8c;
box-shadow: 0 0 0 0.2rem rgba(26, 75, 140, 0.1);
outline: none;
}
.auth-input-group {
position: relative;
margin-bottom: 1.5rem;
}
.auth-input-icon {
position: absolute;
right: 15px;
top: 67%;
transform: translateY(-50%);
color: #718096;
z-index: 5;
font-size: 1rem;
}
.auth-btn-primary {
background: linear-gradient(135deg, #1a4b8c 0%, #2c6cb0 100%);
border: none;
border-radius: 8px;
padding: 14px 20px;
font-weight: 600;
font-size: 1rem;
transition: all 0.3s ease;
color: white;
width: 100%;
cursor: pointer;
}
.auth-btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
background: #1a4b8c;
color: white;
}
.auth-footer {
text-align: center;
margin-top: 25px;
padding-top: 20px;
border-top: 1px solid #e1e5e9;
}
.auth-link {
color: #1a4b8c;
text-decoration: none;
font-weight: 600;
transition: color 0.3s ease;
}
.auth-link:hover {
color: #153a6d;
text-decoration: underline;
}
.auth-security-note {
background: #f7fafc;
border-radius: 8px;
padding: 15px;
margin-top: 20px;
font-size: 0.85rem;
color: #718096;
text-align: center;
border-left: 3px solid #38b2ac;
line-height: 1.5;
}
.auth-security-note i {
color: #38b2ac;
margin-right: 8px;
}
.required::after {
content: " *";
color: #e74c3c;
}
.text-muted {
color: #718096 !important;
}
.alert {
padding: 12px 16px;
border-radius: 8px;
margin-bottom: 20px;
}
.alert-success {
background-color: #c6f6d5;
border: 1px solid #9ae6b4;
color: #2d784d;
}
.alert-danger {
background-color: #fed7d7;
border: 1px solid #feb2b2;
color: #c53030;
}
</style>
<div class="auth-container">
<div class="auth-card">
<div class="auth-header">
<div class="auth-icon">
<i class="fas fa-key"></i>
</div>
<h1 class="auth-title">Recuperar Contraseña</h1>
<p class="auth-subtitle">Ingresa tu correo para recibir el enlace de recuperación</p>
</div>
{% for message in app.flashes('success') %}
<div class="alert alert-success" role="alert">{{ message }}</div>
{% endfor %}
{% for message in app.flashes('error') %}
<div class="alert alert-danger" role="alert">{{ message }}</div>
{% endfor %}
<form method="post" action="{{ path('app_forgot_password_request') }}">
<div class="auth-input-group">
<label for="email" class="auth-form-label required">Correo Electrónico</label>
<input type="email" name="email" id="email" class="auth-form-control"
placeholder="tu@correo.com" required>
<div class="auth-input-icon">
<i class="fas fa-envelope"></i>
</div>
</div>
<div class="d-grid">
<button class="btn auth-btn-primary btn-lg" type="submit">
<i class="fas fa-paper-plane me-2"></i>Enviar Enlace de Recuperación
</button>
</div>
</form>
<div class="auth-footer">
<span class="text-muted">¿Recordaste tu contraseña?</span>
<a href="{{ path('app_login') }}" class="auth-link ms-1">Iniciar Sesión</a>
</div>
<div class="auth-security-note">
<i class="fas fa-shield-alt"></i>
Te enviaremos un enlace seguro para restablecer tu contraseña
</div>
</div>
</div>
<!-- Asegurar carga de Font Awesome si no está en base.html.twig -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
{% endblock %}