forked from ronisarkarexe/story-spark-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsignup.html
More file actions
420 lines (329 loc) · 16.6 KB
/
Copy pathsignup.html
File metadata and controls
420 lines (329 loc) · 16.6 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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
<!DOCTYPE html>
<html class="dark" lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>Create Account | Story Spark AI</title>
<meta name="description" content="Sign in or create an account for Story Spark AI — turn your imagination into fully illustrated multi-variation AI stories."/>
<!-- FONTS -->
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
rel="stylesheet"
/>
<!-- ICONS -->
<link
href="https://cdn.jsdelivr.net/npm/@flaticon/flaticon-uicons/css/all/all.css"
rel="stylesheet"
/>
<!-- GOOGLE AUTH -->
<script
src="https://accounts.google.com/gsi/client"
async
defer
></script>
<!-- STYLES -->
<link href="auth.css" rel="stylesheet"/>
</head>
<body class="bg-background text-on-surface font-body-md min-h-screen selection:bg-primary/30">
<noscript>
<div style="display:flex;align-items:center;justify-content:center;min-height:100vh;background:#101319;color:#e1e2ea;font-family:sans-serif;text-align:center;padding:2rem;">
<div>
<h1 style="font-size:1.5rem;margin-bottom:1rem;">JavaScript is required</h1>
<p>Story Spark AI requires JavaScript to run. Please enable JavaScript in your browser settings and reload the page.</p>
</div>
</div>
</noscript>
<div class="min-h-screen flex items-center justify-center p-4 md:p-0">
<main class="auth-container flex flex-col md:flex-row overflow-hidden md:rounded-2xl">
<!-- Left Pane: Concept Showcase -->
<section class="relative w-full md:w-1/2 flex items-center justify-center p-6 md:p-8 overflow-hidden bg-surface-container-lowest left-pane-mobile">
<!-- Animated Particle Canvas -->
<canvas id="particle-canvas"></canvas>
<div class="left-pane-overlay"></div>
<div class="absolute inset-0 bg-gradient-to-br from-primary/10 via-transparent to-tertiary/5 z-0"></div>
<div class="relative z-10 max-w-lg">
<div class="mb-8">
<h1 class="font-display-lg mb-4 leading-tight text-display-lg-mobile md:text-display-lg">
One Spark.<br/>
<span class="text-transparent bg-clip-text hero-gradient">Infinite Worlds.</span>
</h1>
<p class="text-on-surface-variant max-w-md text-[15px] leading-relaxed">
Turn your imagination into fully illustrated multi-variation AI stories. Experience storytelling where every choice ignites a new visual path.
</p>
</div>
</div>
</section>
<!-- Right Pane: Auth Form -->
<section class="w-full md:w-1/2 flex items-center justify-center p-4 md:p-10 bg-surface z-10">
<div class="auth-form-card glass-panel p-6 md:p-8 rounded-2xl relative">
<!-- Brand Anchor -->
<div class="flex justify-center mb-5">
<div class="font-display-lg text-[18px] font-extrabold text-transparent bg-clip-text bg-gradient-to-r from-primary via-secondary to-tertiary">
Story Spark AI
</div>
</div>
<!-- Header -->
<div class="mb-5">
<h2 class="text-[20px] font-bold text-on-surface leading-tight">Create your account</h2>
<p class="text-[13px] text-on-surface-variant mt-1">Start generating illustrated stories in minutes.</p>
</div>
<!-- Tab Switcher -->
<div class="flex border-b border-white/10 mb-5 overflow-hidden">
<a href="login.html" class="flex-1 pb-3 font-label-caps text-label-caps text-on-surface-variant border-b-2 border-transparent hover:text-on-surface transition-all duration-300" id="tab-signin">SIGN IN</a>
<button class="flex-1 pb-3 font-label-caps text-label-caps text-primary border-b-2 border-primary transition-all duration-300" id="tab-signup" onclick="toggleAuthMode('signup')">CREATE ACCOUNT</button>
</div>
<!-- Social Auth -->
<div class="flex gap-3 mb-4">
<button onclick="handleGoogleSignIn()" type="button" class="flex-1 flex items-center justify-center gap-2 ds-btn-google glass-panel hover:bg-white/5 hover:-translate-y-0.5 transition-all duration-300 border border-white/10 group" id="google-btn">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.07 5.07 0 01-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" fill="#4285F4"/>
<path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" fill="#34A853"/>
<path d="M5.84 14.09a6.97 6.97 0 010-4.18V7.07H2.18A11 11 0 001 12c0 1.78.43 3.45 1.18 4.93l3.85-2.84z" fill="#FBBC05"/>
<path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" fill="#EA4335"/>
</svg>
<span class="text-[13px] font-semibold text-on-surface-variant group-hover:text-on-surface" id="google-btn-text">sign in with Google</span>
</button>
</div>
<!-- Google Auth Status Banner -->
<div id="google-auth-status" class="hidden mb-3 p-3 rounded-xl border border-primary/20 bg-primary/5 flex items-center gap-3">
<img loading="lazy" id="google-user-avatar" class="w-8 h-8 rounded-full border border-white/10" src="" alt=""/>
<div class="flex-1 min-w-0">
<div class="text-sm font-semibold text-on-surface truncate" id="google-user-name"></div>
<div class="text-xs text-on-surface-variant truncate" id="google-user-email"></div>
</div>
<i class="fi fi-rr-check-circle text-green-400 text-lg"></i>
</div>
<div class="flex items-center gap-3 mb-4">
<div class="h-[1px] flex-1 bg-white/[0.08]"></div>
<span class="text-[11px] text-outline uppercase tracking-widest font-bold">Or use email</span>
<div class="h-[1px] flex-1 bg-white/[0.08]"></div>
</div>
<!-- Auth Forms -->
<div id="form-alert" class="ds-alert hidden" role="status" aria-live="polite"></div>
<form class="space-y-4" id="auth-form" novalidate>
<div class="animate-in fade-in duration-500 ds-field" id="signup-fields">
<label class="block text-label-caps text-on-surface-variant mb-2" for="name-field">FULL NAME</label>
<div class="ds-input-group">
<i class="fi fi-rr-user ds-input-icon text-[16px] absolute left-4 top-1/2 -translate-y-1/2 text-on-surface-variant/80"></i>
<input class="auth-field w-full ds-input with-icon pl-11" placeholder="Alex Spark" type="text" id="name-field" name="name" autocomplete="name" required aria-describedby="name-help name-error" aria-invalid="false"/>
</div>
<p class="ds-help" id="name-help">This will be shown on your profile.</p>
<p class="ds-error" id="name-error" role="alert" aria-live="polite"></p>
</div>
<div class="ds-field">
<label class="block text-label-caps text-on-surface-variant mb-2" for="email-field">EMAIL ADDRESS</label>
<div class="ds-input-group">
<i class="fi fi-rr-envelope ds-input-icon text-[16px] absolute left-4 top-1/2 -translate-y-1/2 text-on-surface-variant/80"></i>
<input class="auth-field w-full ds-input with-icon pl-11" placeholder="name@storyspark.ai" type="email" id="email-field" name="email" autocomplete="email" inputmode="email" autocapitalize="none" spellcheck="false" required aria-describedby="email-help email-error" aria-invalid="false"/>
<!-- MAIN WRAPPER -->
<div class="auth-wrapper">
<!-- MAIN CONTAINER -->
<main class="auth-container">
<!-- LEFT PANEL -->
<section class="left-pane">
<div class="hero-content">
<div class="hero-badge">
<span
class="fi fi-rr-sparkles"
style="margin-right:8px;"
></span>
Story Spark AI
</div>
<h1 class="hero-title">
One Spark.<br>
<span class="hero-gradient">
Infinite Worlds.
</span>
</h1>
<p class="hero-description">
Create immersive AI-generated stories with
visuals, branching paths, and limitless
imagination.
</p>
</div>
</section>
<!-- RIGHT PANEL -->
<section class="right-pane">
<div class="auth-form-card">
<!-- MOBILE LOGO -->
<div class="flex justify-center md:hidden">
<div
style="
font-size:18px;
font-weight:800;
"
class="hero-gradient"
>
Story Spark AI
</div>
</div>
<!-- HEADER -->
<div class="auth-header">
<h2
class="auth-title"
id="form-title"
>
Create account
</h2>
<p
class="auth-subtitle"
id="form-subtitle"
>
Start creating AI-powered stories today.
</p>
</div>
<!-- TABS -->
<div
style="
display:flex;
border-bottom:1px solid rgba(255,255,255,.08);
"
>
<button
id="tab-signin"
onclick="window.location.href='login.html'"
style="
flex:1;
padding-bottom:16px;
background:none;
border:none;
border-bottom:2px solid transparent;
color:rgba(255,255,255,.5);
font-size:12px;
font-weight:700;
letter-spacing:2px;
cursor:pointer;
"
>
LOG IN
</button>
<button
id="tab-signup"
onclick="window.location.href='signup.html'"
style="
flex:1;
padding-bottom:16px;
background:none;
border:none;
border-bottom:2px solid #8b5cf6;
color:#8b5cf6;
font-size:12px;
font-weight:700;
letter-spacing:2px;
cursor:pointer;
"
>
SIGN UP
</button>
</div>
<!-- GOOGLE BUTTON -->
<button
onclick="handleGoogleSignIn()"
type="button"
class="ds-btn-google"
>
<div
style="
display:flex;
align-items:center;
justify-content:center;
gap:12px;
"
>
<svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
>
<path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.07 5.07 0 01-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" fill="#4285F4"/>
<path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" fill="#34A853"/>
<path d="M5.84 14.09a6.97 6.97 0 010-4.18V7.07H2.18A11 11 0 001 12c0 1.78.43 3.45 1.18 4.93l3.85-2.84z" fill="#FBBC05"/>
<path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" fill="#EA4335"/>
</svg>
<span
style="
font-size:14px;
font-weight:600;
"
>
Continue with Google
</span>
</div>
</button>
<!-- DIVIDER -->
<div class="auth-divider">
<div class="auth-divider-line"></div>
<span class="auth-divider-text">
OR
</span>
<div class="auth-divider-line"></div>
</div>
<div class="ds-meter" aria-hidden="true"><div class="ds-meter-bar" id="password-meter-bar"></div></div>
<p class="ds-help" id="password-help">Use 8+ characters with a mix of letters and numbers.</p>
<div id="password-checklist" class="mt-3 space-y-1 text-sm">
<p id="rule-length" class="text-red-400">✗ At least 8 characters</p>
<p id="rule-upper" class="text-red-400">✗ One uppercase letter</p>
<p id="rule-lower" class="text-red-400">✗ One lowercase letter</p>
<p id="rule-number" class="text-red-400">✗ One number</p>
<p id="rule-special" class="text-red-400">✗ One special character</p>
</div>
<p class="ds-help" id="password-strength"></p>
<p class="ds-error" id="password-error" role="alert" aria-live="polite"></p>
<p
id="signup-caps-lock-warning"
class="hidden text-yellow-400 text-sm mt-2"
>
Caps Lock is ON
</p>
</div>
<div class="ds-field">
<label class="block text-label-caps text-on-surface-variant mb-2" for="confirm-password-field">CONFIRM PASSWORD</label>
<div class="ds-input-group has-action">
<i class="fi fi-rr-lock ds-input-icon text-[16px] absolute left-4 top-1/2 -translate-y-1/2 text-on-surface-variant/80"></i>
<input class="w-full ds-input with-icon pl-11 pr-11" id="confirm-password-field" name="confirmPassword" autocomplete="new-password" placeholder="Re-enter your password" type="password" required aria-describedby="confirm-password-help confirm-password-error confirm-password-feedback" aria-invalid="false"/>
<button class="ds-input-action flex items-center justify-center" onclick="toggleConfirmPasswordVisibility()" type="button" aria-label="Toggle confirm password visibility">
<i class="fi fi-rr-eye-crossed text-[16px]" id="confirm-eye-icon"></i>
</button>
</div>
</div>
</section>
</main>
</div>
<!-- LEGAL MODAL -->
<div
id="legal-modal"
class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-md opacity-0 pointer-events-none transition-all duration-300"
>
<div
id="legal-modal-content"
class="glass-panel"
style="
width:100%;
max-width:560px;
padding:32px;
border-radius:28px;
position:relative;
"
>
<button
onclick="closeLegalModal()"
aria-label="Close modal"
style="
position:absolute;
right:24px;
top:24px;
background:none;
border:none;
color:rgba(255,255,255,.6);
cursor:pointer;
"
>
<i class="fi fi-rr-cross-small"></i>
</button>
</div>
</div>
<!-- SCRIPT -->
<script src="auth.js" defer></script>
</body>
</html>