Files
aiinvoice/templates/appsignup.html
T
2026-10-07 17:31:08 +05:30

230 lines
5.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Sign Up – AI Infinite</title>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
/>
<style>
:root {
--white: #ffffff;
--text-dark: #1a1a1a;
--primary: #003087;
--primary-hover: #002366;
--secondary: #666666;
--bg-light: #f0f2f5;
--error: #d32f2f;
--success: #155724;
--input-border: #ddd;
}
* { box-sizing: border-box; }
body {
font-family: 'Inter', sans-serif;
margin: 0; padding: 0;
color: var(--text-dark);
background: var(--bg-light);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
}
.auth-form {
background: var(--white);
padding: 3rem;
border-radius: 12px;
box-shadow: 0 8px 24px rgba(0,0,0,0.1);
width: 100%;
max-width: 480px;
animation: slideIn 0.5s ease-out;
}
@keyframes slideIn {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.form-title {
font-size: 2rem;
font-weight: 600;
text-align: center;
margin-bottom: 0.25rem;
}
.form-sub {
color: var(--secondary);
text-align: center;
margin-bottom: 1.5rem;
}
.form-group {
margin-bottom: 1.25rem;
}
.form-group label {
display: block;
font-weight: 500;
margin-bottom: 0.5rem;
color: var(--secondary);
}
.form-group input {
width: 100%;
padding: 0.85rem 1rem;
border: 1.5px solid var(--input-border);
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
border-color: var(--primary);
box-shadow: 0 0 6px rgba(0, 48, 135, 0.2);
outline: none;
}
.form-group input:invalid {
border-color: var(--error);
}
.btn-primary {
width: 100%;
padding: 0.9rem;
background: var(--primary);
color: var(--white);
font-size: 1.05rem;
font-weight: 600;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background 0.2s;
}
.btn-primary:hover {
background: var(--primary-hover);
}
.switch-auth {
text-align: center;
margin-top: 1.75rem;
}
.btn-link {
color: var(--primary);
text-decoration: none;
font-weight: 600;
}
.btn-link:hover {
text-decoration: underline;
}
.security-note {
color: var(--secondary);
font-size: 0.85rem;
margin-top: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
}
.security-note i {
margin-right: 0.4rem;
}
.flash-messages {
list-style: none;
padding: 0;
margin: 1rem 0;
}
.flash-message {
padding: 0.9rem 1rem;
margin-bottom: 0.75rem;
border-radius: 8px;
font-weight: 500;
text-align: center;
}
.flash-message.success {
background: #d4edda;
color: var(--success);
}
.flash-message.error {
background: #f8d7da;
color: var(--error);
}
@media (max-width: 500px) {
.auth-form { padding: 2rem; }
.form-title { font-size: 1.7rem; }
}
</style>
</head>
<body>
<div class="auth-form">
<h1 class="form-title">Sign Up for AI Infinite</h1>
<p class="form-sub">Create your account to get started</p>
{% with msgs = get_flashed_messages(with_categories=true) %}
{% if msgs %}
<ul class="flash-messages">
{% for cat, msg in msgs %}
<li class="flash-message {{ cat }}">{{ msg }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
<form action="{{ url_for('signup') }}" method="POST" novalidate>
<div class="form-group">
<label for="username">Username</label>
<input
type="text"
id="username"
name="username"
required
minlength="3"
placeholder="Choose a username"
/>
</div>
<div class="form-group">
<label for="email">Email address</label>
<input
type="email"
id="email"
name="email"
required
placeholder="you@example.com"
/>
</div>
<div class="form-group">
<label for="phone">Phone number</label>
<input
type="tel"
id="phone"
name="phone"
required
pattern="^\+\d{1,3}\s?\d{4,14}$"
placeholder="+91 98765 43210"
/>
</div>
<div class="form-group">
<label for="password">Password</label>
<input
type="password"
id="password"
name="password"
required
minlength="6"
placeholder="Create a secure password"
/>
</div>
<button type="submit" class="btn-primary">Sign Up</button>
<div class="switch-auth">
<p>
Already have an account?
<a href="{{ url_for('login') }}" class="btn-link">Log In</a>
</p>
<p class="security-note">
<i class="fas fa-lock"></i> Secured with SSL Encryption
</p>
</div>
</form>
</div>
</body>
</html>