Spaces:
Sleeping
Sleeping
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Sign Up - Medical AI</title> | |
<script src="https://cdn.tailwindcss.com"></script> | |
<style> | |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); | |
body { font-family: 'Inter', sans-serif; } | |
</style> | |
</head> | |
<body class="bg-gray-50 flex items-center justify-center min-h-screen"> | |
<div class="w-full max-w-md mx-auto bg-white rounded-2xl shadow-lg p-8"> | |
<h2 class="text-3xl font-bold text-center text-gray-900 mb-6">Create an Account</h2> | |
<!-- Flash messages --> | |
{% with messages = get_flashed_messages(with_categories=true) %} | |
{% if messages %} | |
{% for category, message in messages %} | |
<div class="p-4 mb-4 text-sm rounded-lg | |
{% if category == 'danger' %} bg-red-100 text-red-700 | |
{% else %} bg-blue-100 text-blue-700 {% endif %}" role="alert"> | |
{{ message }} | |
</div> | |
{% endfor %} | |
{% endif %} | |
{% endwith %} | |
<form method="POST" action="{{ url_for('signup') }}" class="space-y-6"> | |
<div> | |
<label for="username" class="block text-sm font-medium text-gray-700">Username</label> | |
<input id="username" name="username" type="text" required class="mt-1 block w-full px-3 py-2 bg-white border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-blue-500 focus:border-blue-500"> | |
</div> | |
<div> | |
<label for="password" class="block text-sm font-medium text-gray-700">Password</label> | |
<input id="password" name="password" type="password" required class="mt-1 block w-full px-3 py-2 bg-white border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-blue-500 focus:border-blue-500"> | |
</div> | |
<div> | |
<button type="submit" class="w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | |
Sign Up | |
</button> | |
</div> | |
</form> | |
<div class="mt-6 text-center"> | |
<p class="text-sm text-gray-600"> | |
Already have an account? <a href="{{ url_for('login') }}" class="font-medium text-blue-600 hover:text-blue-500">Log In</a> | |
</p> | |
</div> | |
</div> | |
</body> | |
</html> | |