Spaces:
Sleeping
Sleeping
File size: 1,928 Bytes
21a8272 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
{% extends "base.html" %}
{% block content %}
<div class="card">
{% if mode == "register" %}
<h2>Create an Account</h2>
<p class="subtitle">
Register to save your tone analysis history and access exports.
</p>
{% else %}
<h2>Login</h2>
<p class="subtitle">
Log in to access your saved analyses and exports.
</p>
{% endif %}
<form method="POST">
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
<label>Email</label>
<input type="email" name="email" required
style="width: 100%; padding: 8px; margin-bottom: 12px;">
<label>Password</label>
<input type="password" name="password" required
style="width: 100%; padding: 8px; margin-bottom: 16px;">
{% if mode == "register" %}
<label style="display:flex; align-items:center; gap:6px; font-size:13px; margin-bottom: 16px;">
<input type="checkbox" name="consent_privacy" required>
<span>
I agree to the
<a href="{{ url_for('privacy') }}">Privacy Policy</a>
and understand how my data is used.
</span>
</label>
{% endif %}
<button type="submit">
{% if mode == "register" %}Create Account{% else %}Login{% endif %}
</button>
</form>
<p class="subtitle" style="margin-top: 12px;">
{% if mode == "register" %}
Already have an account?
<a href="{{ url_for('login') }}">Log in here</a>.
{% else %}
Need an account?
<a href="{{ url_for('register') }}">Register here</a>.<br>
<a href="{{ url_for('forgot_password') }}">Forgot your password?</a>
{% endif %}
</p>
</div>
{% endblock %}
|