File size: 4,828 Bytes
25d7199
 
 
 
b6552c5
 
2c613b3
b6552c5
63c643c
2cb8f5c
25d7199
 
2cb8f5c
b6552c5
2c613b3
b6552c5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
04d8f90
 
 
 
 
b6552c5
 
 
 
 
 
 
04d8f90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b6552c5
63c643c
25d7199
 
1175fa7
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login - autonomy-labs</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="/static/vendor/supabase-loader.js" defer></script>
    <link rel="stylesheet" href="/static/theme.css">
</head>

<body class="text-white flex items-center justify-center min-h-screen">
    <div class="w-full max-w-md p-8 space-y-6 bg-gray-800 rounded-lg shadow-lg">
        <h1 class="text-3xl font-bold text-center text-blue-500">autonomy-labs Login</h1>

        <div id="alert" class="hidden p-4 mb-4 text-sm text-red-500 bg-gray-700 rounded-lg" role="alert"></div>

        <form id="auth-form" class="space-y-4">
            <div>
                <label for="email" class="block mb-2 text-sm font-medium">Email</label>
                <input type="email" id="email"
                    class="w-full p-2.5 bg-gray-700 border border-gray-600 rounded-lg focus:ring-blue-500 focus:border-blue-500"
                    required>
            </div>
            <div>
                <label for="password" class="block mb-2 text-sm font-medium">Password</label>
                <input type="password" id="password"
                    class="w-full p-2.5 bg-gray-700 border border-gray-600 rounded-lg focus:ring-blue-500 focus:border-blue-500"
                    required>
            </div>

            <div class="flex items-center justify-between text-sm">
                <button type="button" id="forgot-btn"
                    class="text-gray-300 hover:text-white underline underline-offset-2">Forgot password?</button>
            </div>

            <div class="flex space-x-4">
                <button type="submit" id="login-btn"
                    class="w-full px-5 py-2.5 text-sm font-medium bg-blue-600 rounded-lg hover:bg-blue-700 focus:ring-4 focus:ring-blue-800">Login</button>
                <button type="button" id="register-btn"
                    class="w-full px-5 py-2.5 text-sm font-medium bg-green-600 rounded-lg hover:bg-green-700 focus:ring-4 focus:ring-green-800">Register</button>
            </div>
        </form>

        <div id="reset-panel" class="hidden space-y-4">
            <div class="text-sm text-gray-300">
                <div class="font-semibold text-gray-100">Reset password</div>
                <div class="text-gray-400">Enter your email to receive a reset link.</div>
            </div>
            <div>
                <label for="reset-email" class="block mb-2 text-sm font-medium">Email</label>
                <input type="email" id="reset-email"
                    class="w-full p-2.5 bg-gray-700 border border-gray-600 rounded-lg focus:ring-blue-500 focus:border-blue-500">
            </div>
            <div class="flex gap-2">
                <button type="button" id="send-reset-btn"
                    class="flex-1 px-5 py-2.5 text-sm font-medium bg-indigo-600 rounded-lg hover:bg-indigo-700 focus:ring-4 focus:ring-indigo-800">Send link</button>
                <button type="button" id="cancel-reset-btn"
                    class="px-5 py-2.5 text-sm font-medium bg-gray-700 rounded-lg hover:bg-gray-600">Cancel</button>
            </div>
        </div>

        <div id="update-panel" class="hidden space-y-4">
            <div class="text-sm text-gray-300">
                <div class="font-semibold text-gray-100">Set a new password</div>
                <div class="text-gray-400">You opened a password recovery link. Choose a new password.</div>
            </div>
            <div>
                <label for="new-password" class="block mb-2 text-sm font-medium">New password</label>
                <input type="password" id="new-password"
                    class="w-full p-2.5 bg-gray-700 border border-gray-600 rounded-lg focus:ring-blue-500 focus:border-blue-500">
            </div>
            <div>
                <label for="confirm-password" class="block mb-2 text-sm font-medium">Confirm password</label>
                <input type="password" id="confirm-password"
                    class="w-full p-2.5 bg-gray-700 border border-gray-600 rounded-lg focus:ring-blue-500 focus:border-blue-500">
            </div>
            <div class="flex gap-2">
                <button type="button" id="update-password-btn"
                    class="flex-1 px-5 py-2.5 text-sm font-medium bg-green-600 rounded-lg hover:bg-green-700 focus:ring-4 focus:ring-green-800">Update password</button>
                <button type="button" id="cancel-update-btn"
                    class="px-5 py-2.5 text-sm font-medium bg-gray-700 rounded-lg hover:bg-gray-600">Cancel</button>
            </div>
        </div>
    </div>
    <script src="/static/login.js" defer></script>
</body>

</html>