-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauth.html
More file actions
169 lines (157 loc) · 8.95 KB
/
Copy pathauth.html
File metadata and controls
169 lines (157 loc) · 8.95 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Auth - StudyFlow</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/mobile.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
<style>
/* Sync notice — sits at bottom of left panel */
.sync-notice {
margin-top: 2rem;
display: flex; align-items: flex-start; gap: .6rem;
background: rgba(255,255,255,.1);
border: 1px solid rgba(255,255,255,.18);
border-radius: .75rem;
padding: .875rem 1rem;
}
.sync-notice svg { flex-shrink: 0; margin-top: .1rem; opacity: .85; }
.sync-notice-text { font-size: .75rem; opacity: .85; line-height: 1.55; }
.sync-notice-text strong { display: block; font-weight: 700; margin-bottom: .15rem; opacity: 1; }
/* Sync bar on mobile (right panel, top) */
.sync-bar-mobile {
display: none;
align-items: center; gap: .45rem;
background: hsl(199,89%,97%);
border: 1px solid hsl(199,89%,84%);
border-radius: .65rem;
padding: .6rem .875rem;
margin-bottom: 1.5rem;
font-size: .75rem; color: hsl(199,60%,38%); font-weight: 500;
}
.sync-bar-mobile svg { flex-shrink:0; color: hsl(199,89%,42%); }
.sync-bar-mobile strong { font-weight: 700; color: hsl(199,89%,28%); }
@media(max-width:1023px){ .sync-bar-mobile { display: flex; } }
</style>
</head>
<body>
<div class="auth-container">
<div class="left-panel">
<div class="gradient-bg"></div>
<div class="pattern-overlay"></div>
<div class="left-content">
<a href="index.html" class="brand-logo">
<div class="brand-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20"></path>
</svg>
</div>
<span class="brand-text">StudyFlow</span>
</a>
<div class="left-hero">
<h1 class="left-title" id="leftTitle">Start Your Journey</h1>
<p class="left-description" id="leftDescription">Join thousands of students who've transformed their study habits with personalized schedules.</p>
</div>
<div class="auth-stats-grid">
<div class="auth-stat-card"><div class="auth-stat-value">95%</div><div class="auth-stat-label">Pass Rate</div></div>
<div class="auth-stat-card"><div class="auth-stat-value">2M+</div><div class="auth-stat-label">Study Hours</div></div>
</div>
<!-- Sync notice on desktop left panel -->
<div class="sync-notice">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2"/></svg>
<div class="sync-notice-text">
<strong>Cross-device sync coming soon</strong>
Your data is stored locally on this device only. We're working on cloud sync.
</div>
</div>
</div>
</div>
<div class="right-panel">
<div class="form-wrapper">
<a href="index.html" class="mobile-logo">
<div class="mobile-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20"></path>
</svg>
</div>
<span class="mobile-text">StudyFlow</span>
</a>
<!-- Sync notice on mobile (right panel) -->
<div class="sync-bar-mobile">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2"/></svg>
<span><strong>Cross-device sync coming soon</strong> — data is stored on this device only.</span>
</div>
<div class="form-header">
<h2 class="form-title" id="formTitle">Create Account</h2>
<p class="form-subtitle" id="formSubtitle">Fill in your details to get started</p>
</div>
<form id="authForm" class="auth-form">
<div class="form-group" id="nameGroup">
<label for="name" class="form-label">Full Name</label>
<div class="input-wrapper">
<svg class="input-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>
</svg>
<input type="text" id="name" class="form-input" placeholder="John Doe">
</div>
</div>
<div class="form-group">
<label for="email" class="form-label">Email</label>
<div class="input-wrapper">
<svg class="input-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect width="20" height="16" x="2" y="4" rx="2"></rect><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"></path>
</svg>
<input type="email" id="email" class="form-input" placeholder="john@example.com" required>
</div>
</div>
<div class="form-group">
<label for="password" class="form-label">Password</label>
<div class="input-wrapper">
<svg class="input-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect width="18" height="11" x="3" y="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path>
</svg>
<input type="password" id="password" class="form-input" placeholder="••••••••" required>
<button type="button" id="togglePassword" class="password-toggle">
<svg id="eyeIcon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"></path><circle cx="12" cy="12" r="3"></circle>
</svg>
<svg class="hidden" id="eyeOffIcon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"></path><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"></path><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"></path><line x1="2" x2="22" y1="2" y2="22"></line>
</svg>
</button>
</div>
</div>
<div class="forgot-password hidden" id="forgotPassword">
<button type="button" class="forgot-link">Forgot password?</button>
</div>
<button type="submit" class="btn-submit" id="submitBtn">
<span id="submitText">Create Account</span>
<svg class="submit-arrow" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline>
</svg>
</button>
</form>
<div class="form-footer">
<p class="switch-text">
<span id="switchQuestion">Already have an account?</span>
<button type="button" id="switchMode" class="switch-link">Sign In</button>
</p>
</div>
<p class="terms-text" id="termsText">
By creating an account, you agree to our
<a href="#" class="terms-link">Terms of Service</a> and
<a href="#" class="terms-link">Privacy Policy</a>
</p>
</div>
</div>
</div>
<div id="toastContainer" class="toast-container"></div>
<script src="js/config.js"></script>
<script src="js/mobile-nav.js"></script>
<script src="js/db.js"></script>
<script src="js/auth.js"></script>
</body>
</html>