Spaces:
Sleeping
Sleeping
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Login | KV Student Dashboard</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| </head> | |
| <body class="bg-gradient-to-br from-blue-50 to-blue-100 h-screen flex items-center justify-center font-sans"> | |
| <div class="bg-white shadow-2xl rounded-2xl w-full max-w-sm p-8"> | |
| <h1 class="text-2xl font-semibold text-gray-800 text-center mb-6">Login to Dashboard</h1> | |
| <form action="{{ url_for('login') }}" method="POST" class="space-y-4"> | |
| <div> | |
| <label for="username" class="block text-sm font-medium text-gray-600 mb-1">Username</label> | |
| <input type="text" id="username" name="username" required | |
| class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-400"> | |
| </div> | |
| <div> | |
| <label for="password" class="block text-sm font-medium text-gray-600 mb-1">Password</label> | |
| <input type="password" id="password" name="password" required | |
| class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-400"> | |
| </div> | |
| <button type="submit" | |
| class="w-full bg-blue-600 text-white py-2 rounded-lg hover:bg-blue-700 transition-colors">Login</button> | |
| </form> | |
| {% if error %} | |
| <p class="text-red-500 text-sm mt-4 text-center">{{ error }}</p> | |
| {% endif %} | |
| </div> | |
| </body> | |
| </html> | |