Spaces:
Running

File size: 9,226 Bytes
e839739
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login | Escalade</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap">
    <style>
        .login-bg {
            background-image: url('http://static.photos/fashion/1920x1080/100');
            background-size: cover;
            background-position: center;
        }
        .dark-mode {
            background-color: #111;
            color: #fff;
        }
    </style>
</head>
<body class="font-sans bg-light">
    <!-- Navigation -->
    <nav class="fixed w-full z-50 py-4">
        <div class="container mx-auto px-6 flex justify-between items-center">
            <a href="index.html" class="text-3xl font-heading text-primary">ESCALADE</a>
            <div class="flex items-center space-x-4">
                <button id="theme-toggle" class="p-2 rounded-full hover:bg-gray-100">
                    <i data-feather="moon" class="text-dark"></i>
                </button>
                <a href="cart.html" class="p-2 rounded-full hover:bg-gray-100 relative">
                    <i data-feather="shopping-bag" class="text-dark"></i>
                    <span class="absolute -top-1 -right-1 bg-primary text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">0</span>
                </a>
                <button id="mobile-menu-button" class="md:hidden p-2">
                    <i data-feather="menu" class="text-dark"></i>
                </button>
            </div>
        </div>
    </nav>

    <!-- Mobile Menu -->
    <div id="mobile-menu" class="fixed inset-0 bg-black bg-opacity-90 z-40 hidden">
        <div class="container mx-auto px-6 py-20">
            <div class="flex flex-col space-y-6 text-white text-2xl">
                <a href="index.html" class="hover:text-primary transition">Home</a>
                <a href="shop.html" class="hover:text-primary transition">Shop</a>
                <a href="new-arrivals.html" class="hover:text-primary transition">New Arrivals</a>
                <a href="collections.html" class="hover:text-primary transition">Collections</a>
                <a href="about.html" class="hover:text-primary transition">About</a>
                <a href="contact.html" class="hover:text-primary transition">Contact</a>
                <div class="pt-6">
                    <a href="login.html" class="inline-flex items-center hover:text-primary transition">
                        <i data-feather="user" class="mr-2"></i> Login
                    </a>
                </div>
            </div>
        </div>
    </div>

    <!-- Login Section -->
    <section class="min-h-screen flex items-center justify-center pt-20 pb-10">
        <div class="container mx-auto px-6">
            <div class="max-w-md mx-auto bg-white rounded-lg shadow-lg overflow-hidden">
                <div class="login-bg h-32 flex items-center justify-center">
                    <h2 class="text-3xl font-heading text-white">WELCOME BACK</h2>
                </div>
                <div class="p-8">
                    <form id="login-form" class="space-y-6">
                        <div>
                            <label for="email" class="block text-sm font-medium text-gray-700">Email</label>
                            <input type="email" id="email" name="email" required 
                                   class="mt-1 block w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-primary focus:border-primary">
                        </div>
                        <div>
                            <label for="password" class="block text-sm font-medium text-gray-700">Password</label>
                            <input type="password" id="password" name="password" required 
                                   class="mt-1 block w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-primary focus:border-primary">
                        </div>
                        <div class="flex items-center justify-between">
                            <div class="flex items-center">
                                <input id="remember-me" name="remember-me" type="checkbox" 
                                       class="h-4 w-4 text-primary focus:ring-primary border-gray-300 rounded">
                                <label for="remember-me" class="ml-2 block text-sm text-gray-700">Remember me</label>
                            </div>
                            <div class="text-sm">
                                <a href="#" class="font-medium text-primary hover:text-secondary">Forgot password?</a>
                            </div>
                        </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-primary hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary">
                                Sign in
                            </button>
                        </div>
                    </form>
                    <div class="mt-6">
                        <div class="relative">
                            <div class="absolute inset-0 flex items-center">
                                <div class="w-full border-t border-gray-300"></div>
                            </div>
                            <div class="relative flex justify-center text-sm">
                                <span class="px-2 bg-white text-gray-500">Or continue with</span>
                            </div>
                        </div>
                        <div class="mt-6 grid grid-cols-2 gap-3">
                            <div>
                                <a href="#" class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50">
                                    <i data-feather="facebook" class="h-5 w-5"></i>
                                </a>
                            </div>
                            <div>
                                <a href="#" class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50">
                                    <i data-feather="google" class="h-5 w-5"></i>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="mt-6 text-center">
                        <p class="text-sm text-gray-600">
                            Don't have an account?
                            <a href="register.html" class="font-medium text-primary hover:text-secondary">Sign up</a>
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <script>
        // Initialize Feather Icons
        feather.replace();

        // Mobile Menu Toggle
        const mobileMenuButton = document.getElementById('mobile-menu-button');
        const mobileMenu = document.getElementById('mobile-menu');
        
        mobileMenuButton.addEventListener('click', () => {
            mobileMenu.classList.toggle('hidden');
        });

        // Close mobile menu when clicking outside
        document.addEventListener('click', (e) => {
            if (!mobileMenu.contains(e.target) && e.target !== mobileMenuButton) {
                mobileMenu.classList.add('hidden');
            }
        });

        // Login Form Submission
        const loginForm = document.getElementById('login-form');
        loginForm.addEventListener('submit', (e) => {
            e.preventDefault();
            const email = document.getElementById('email').value;
            const password = document.getElementById('password').value;
            
            // Here you would typically send this to your backend
            console.log('Login attempt with:', { email, password });
            
            // For demo purposes, just redirect to home page
            window.location.href = 'index.html';
        });

        // Dark/Light mode toggle
        const themeToggle = document.getElementById('theme-toggle');
        const body = document.body;
        
        themeToggle.addEventListener('click', () => {
            body.classList.toggle('dark-mode');
            
            const icon = themeToggle.querySelector('i');
            if (body.classList.contains('dark-mode')) {
                feather.replace();
                icon.setAttribute('data-feather', 'sun');
            } else {
                feather.replace();
                icon.setAttribute('data-feather', 'moon');
            }
            feather.replace();
        });
    </script>
</body>
</html>