| |
| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta charset="UTF-8"> |
| <title>Login - BookNest</title> |
| <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}"> |
| </head> |
| <body class="index-page"> |
| |
| {% include 'navbar.html' %} |
|
|
| |
| {% with messages = get_flashed_messages(with_categories=true) %} |
| {% if messages %} |
| <div class="flash-messages"> |
| {% for category, message in messages %} |
| <div class="alert alert-{{ category }}">{{ message }}</div> |
| {% endfor %} |
| </div> |
| {% endif %} |
| {% endwith %} |
|
|
| |
| <div class="container"> |
| <h1>Login</h1> |
| <form action="{{ url_for('login') }}" method="POST" class="auth-form"> |
| <label for="email">Email:</label> |
| <input type="email" name="email" required> |
|
|
| <label for="password">Password:</label> |
| <input type="password" name="password" required> |
|
|
| <button type="submit">Login</button> |
| </form> |
| <p>Don't have an account? <a href="{{ url_for('register') }}">Register here</a>.</p> |
| </div> |
|
|
| |
| {% include 'footer.html' %} |
| </body> |
| </html> |