File size: 4,029 Bytes
e5403ad
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Password Recovery | DevPulse Radar</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <style>
        .card-glass {
            backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
    </style>
</head>
<body class="bg-gray-900 text-gray-100 min-h-screen flex items-center justify-center p-4">
    <div class="card-glass p-8 rounded-xl max-w-md w-full">
        <div class="text-center mb-8">
            <i data-feather="lock" class="w-12 h-12 mx-auto text-primary mb-4"></i>
            <h1 class="text-2xl font-bold">Password Recovery</h1>
            <p class="text-gray-400 mt-2">Enter your email to receive a verification code</p>
        </div>

        <form id="emailForm" class="space-y-6">
            <div>
                <label for="email" class="block text-sm font-medium mb-1">Email Address</label>
                <input type="email" id="email" required
                    class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 focus:ring-2 focus:ring-primary focus:border-transparent">
            </div>

            <button type="submit" class="w-full bg-primary hover:bg-primary/90 py-3 px-4 rounded-lg font-medium transition">
                Send Verification Code
            </button>
        </form>

        <form id="codeForm" class="space-y-6 hidden">
            <div>
                <label for="code" class="block text-sm font-medium mb-1">Verification Code</label>
                <input type="text" id="code" required
                    class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 focus:ring-2 focus:ring-primary focus:border-transparent">
            </div>

            <button type="submit" class="w-full bg-primary hover:bg-primary/90 py-3 px-4 rounded-lg font-medium transition">
                Verify Code
            </button>
        </form>

        <form id="passwordForm" class="space-y-6 hidden" action="login.html">
            <div>
                <label for="password" class="block text-sm font-medium mb-1">New Password</label>
                <input type="password" id="password" required
                    class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 focus:ring-2 focus:ring-primary focus:border-transparent">
            </div>

            <div>
                <label for="password_confirmation" class="block text-sm font-medium mb-1">Confirm Password</label>
                <input type="password" id="password_confirmation" required
                    class="w-full bg-gray-800 border border-gray-700 rounded-lg px-4 py-3 focus:ring-2 focus:ring-primary focus:border-transparent">
            </div>

            <button type="submit" class="w-full bg-primary hover:bg-primary/90 py-3 px-4 rounded-lg font-medium transition">
                Reset Password
            </button>
        </form>

        <div class="mt-6 text-center">
            <a href="login.html" class="text-primary hover:underline">Back to Login</a>
        </div>
    </div>

    <script>
        feather.replace();

        document.getElementById('emailForm').addEventListener('submit', function(e) {
            e.preventDefault();
            // In a real app, you would send the email to your backend
            this.classList.add('hidden');
            document.getElementById('codeForm').classList.remove('hidden');
        });

        document.getElementById('codeForm').addEventListener('submit', function(e) {
            e.preventDefault();
            // In a real app, you would verify the code with your backend
            this.classList.add('hidden');
            document.getElementById('passwordForm').classList.remove('hidden');
        });
    </script>
</body>
</html>