-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
231 lines (206 loc) · 14.4 KB
/
index.html
File metadata and controls
231 lines (206 loc) · 14.4 KB
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MoveX - Next Generation Logistics Platform</title>
<link rel="stylesheet" href="styles/base.css?v=4">
<link rel="stylesheet" href="styles/components.css?v=6">
<link rel="stylesheet" href="styles/animations.css?v=4">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
html, body {
margin: 0;
padding: 0;
overflow: auto;
min-height: 100%;
}
main.container {
padding: 2rem;
}
</style>
</head>
<body>
<!-- Animated Background -->
<div class="background">
<div class="blob blob-1"></div>
<div class="blob blob-2"></div>
<div class="blob blob-3"></div>
<div class="gradient-overlay"></div>
<div class="mesh-gradient"></div>
</div>
<!-- Main Container -->
<main class="container">
<div class="login-card-wrapper" id="cardWrapper">
<div class="card-flip-container">
<div class="card-flipper" id="cardFlipper">
<!-- FRONT SIDE: LOGIN -->
<div class="card-face card-front">
<div class="login-card" id="loginCard">
<div class="card-shine"></div>
<div class="brand-header">
<a href="/" class="nav-logo" style="justify-content: center; margin-bottom: 0.5rem;">
<span class="logo-text">MoveX</span>
</a>
<p class="tagline">Next-Gen Logistics Management</p>
</div>
<div class="welcome-section">
<h2 class="welcome-title">Welcome back</h2>
<p class="welcome-subtitle">Sign in to access your dashboard</p>
</div>
<form class="login-form" id="loginForm" novalidate>
<div class="input-group" style="margin-bottom:14px;">
<div class="modern-input">
<input type="text" id="login-username" class="input-field" placeholder="Enter your username">
<label for="login-username" class="floating-label">Username</label>
</div>
</div>
<div class="input-group" style="margin-bottom:18px;">
<div class="modern-input">
<input type="password" id="login-password" class="input-field" placeholder="Enter your password">
<label for="login-password" class="floating-label">Password</label>
<button type="button" class="password-toggle" data-target="login-password">
<svg class="eye-open" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>
</button>
</div>
</div>
<div class="input-group" style="margin-bottom:12px;">
<label class="section-label">Select Your Role</label>
<div class="role-selector">
<input type="radio" id="loginRoleAdmin" name="login-role" value="admin" class="role-input">
<label for="loginRoleAdmin" class="role-card"><span class="role-name">Admin</span></label>
<input type="radio" id="loginRoleFranchisee" name="login-role" value="franchisee" class="role-input">
<label for="loginRoleFranchisee" class="role-card"><span class="role-name">Franchisee</span></label>
<input type="radio" id="loginRoleStaff" name="login-role" value="staff" class="role-input">
<label for="loginRoleStaff" class="role-card"><span class="role-name">Staff</span></label>
<input type="radio" id="loginRoleUser" name="login-role" value="user" class="role-input">
<label for="loginRoleUser" class="role-card"><span class="role-name">User</span></label>
</div>
</div>
<button type="submit" class="btn-login magnetic-btn" id="loginBtn">
<span class="btn-content"><span class="btn-text">Sign In</span></span>
</button>
<div class="form-footer">
<span>Don't have an account?</span>
<a href="#" class="footer-link" id="show-register">Register Here</a>
</div>
<div class="form-footer" style="margin-top: 0.5rem; justify-content: center; border-top: 1px solid var(--border-subtle); padding-top: 0.75rem;">
<a href="#" class="footer-link" onclick="document.getElementById('forgotModal').style.display='flex'">Forgot Password?</a>
</div>
</form>
</div>
</div>
<!-- BACK SIDE: REGISTER -->
<div class="card-face card-back">
<div class="login-card" id="registerCard">
<div class="brand-header">
<a href="/" class="nav-logo" style="justify-content: center; margin-bottom: 0.5rem;">
<span class="logo-text">MoveX</span>
</a>
<p class="tagline">Next-Gen Logistics Management</p>
</div>
<div class="welcome-section">
<h2 class="welcome-title">Create Account</h2>
<p class="welcome-subtitle">Register to get started with MoveX</p>
</div>
<form class="login-form" id="registerForm" novalidate>
<div class="input-group">
<div class="modern-input">
<input type="text" id="register-name" class="input-field" placeholder="Full Name">
<label for="register-name" class="floating-label">Full Name</label>
</div>
</div>
<div class="input-group">
<div class="modern-input">
<input type="tel" id="register-phone" class="input-field" placeholder="10-digit Mobile" maxlength="10" oninput="this.value = this.value.replace(/[^0-9]/g, '')">
<label for="register-phone" class="floating-label">Phone Number</label>
</div>
</div>
<div class="input-group">
<div class="modern-input">
<input type="text" id="register-username" class="input-field" placeholder="Username">
<label for="register-username" class="floating-label">Username</label>
</div>
</div>
<div class="input-group">
<div class="modern-input">
<input type="password" id="register-password" class="input-field" placeholder="Password">
<label for="register-password" class="floating-label">Password</label>
</div>
</div>
<div class="input-group">
<div class="modern-input">
<input type="password" id="register-confirm-password" class="input-field" placeholder="Confirm Password">
<label for="register-confirm-password" class="floating-label">Confirm Password</label>
</div>
</div>
<!-- SECURITY QUESTIONS -->
<div style="margin: 15px 0; padding: 10px; background: var(--brand-primary-soft); border-radius: 8px;">
<p style="font-size: 11px; font-weight: 700; color: var(--brand-primary); text-transform: uppercase; margin-bottom: 10px;">Identity Security Questions</p>
<div class="input-group" style="margin-bottom: 10px;">
<input type="text" id="register-q1" class="modal-input" placeholder="First Pet's Name?" style="height: 38px; font-size: 13px;">
</div>
<div class="input-group" style="margin-bottom: 10px;">
<input type="text" id="register-q2" class="modal-input" placeholder="Mother's Maiden Name?" style="height: 38px; font-size: 13px;">
</div>
<div class="input-group">
<input type="text" id="register-q3" class="modal-input" placeholder="Favorite City?" style="height: 38px; font-size: 13px;">
</div>
</div>
<button type="submit" class="btn-login magnetic-btn" id="registerBtn">
<span class="btn-content">
<span class="btn-text">Register Account</span>
</span>
</button>
<div class="form-footer" style="padding-bottom: 1rem;">
<span>Already have an account?</span>
<a href="#" class="footer-link" id="show-login">Back to Login</a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- Forgot Password Modal -->
<div id="forgotModal" class="modal-backdrop" style="display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); backdrop-filter:blur(10px); z-index:9999; align-items:center; justify-content:center;">
<div class="login-card" style="max-width:400px; width:90%; position:relative;">
<button onclick="document.getElementById('forgotModal').style.display='none'" style="position:absolute; top:15px; right:15px; background:none; border:none; cursor:pointer; color:var(--text-tertiary);">✕</button>
<div class="brand-header" style="margin-bottom: 2rem;">
<h2 class="welcome-title" style="font-size: 1.5rem; margin-bottom: 0.5rem;">Account Recovery</h2>
<p class="welcome-subtitle">Identity Verification Protocol</p>
</div>
<div id="step1-forgot">
<p style="font-size:13px; color:var(--text-secondary); margin-bottom:15px;">Enter your username to begin recovery.</p>
<input type="text" id="forgot-username" class="modal-input" placeholder="Username" style="margin-bottom:15px;">
<button id="btn-forgot-next" class="btn-login">Verify Identity</button>
</div>
<div id="step2-forgot" style="display:none;">
<p style="font-size:11px; font-weight:700; color:var(--brand-primary); text-transform:uppercase; margin-bottom:15px;">Answer Security Questions</p>
<input type="text" id="forgot-a1" class="modal-input" placeholder="First Pet's Name?" style="margin-bottom:10px;">
<input type="text" id="forgot-a2" class="modal-input" placeholder="Mother's Maiden Name?" style="margin-bottom:10px;">
<input type="text" id="forgot-a3" class="modal-input" placeholder="Favorite City?" style="margin-bottom:15px;">
<button id="btn-forgot-verify" class="btn-login">Submit Answers</button>
</div>
<div id="step3-forgot" style="display:none;">
<p style="font-size:13px; color:var(--text-secondary); margin-bottom:15px;">Set your new secure password.</p>
<input type="password" id="forgot-new-pass" class="modal-input" placeholder="New Password" style="margin-bottom:10px;">
<input type="password" id="forgot-confirm-pass" class="modal-input" placeholder="Confirm New Password" style="margin-bottom:15px;">
<button id="btn-forgot-reset" class="btn-login">Update Password</button>
</div>
</div>
</div>
</main>
<div class="confetti-container" id="confettiContainer"></div>
<script src="js/config.js?v=1"></script>
<script src="js/auth-api.js?v=5"></script>
<script>
// Additional UI logic for Forgot Password
document.addEventListener('DOMContentLoaded', () => {
// Logic is now hardcoded in the HTML
});
</script>
</body>
</html>