Spaces:
Running
Running
Update login.html
Browse files- login.html +126 -96
login.html
CHANGED
@@ -14,13 +14,13 @@
|
|
14 |
}
|
15 |
|
16 |
body {
|
17 |
-
background:
|
18 |
-
height: 100vh;
|
19 |
display: flex;
|
20 |
align-items: center;
|
21 |
justify-content: center;
|
22 |
-
overflow: hidden;
|
23 |
position: relative;
|
|
|
24 |
}
|
25 |
|
26 |
body::before {
|
@@ -29,28 +29,43 @@
|
|
29 |
top: 0;
|
30 |
left: 0;
|
31 |
right: 0;
|
32 |
-
|
33 |
-
background:
|
34 |
-
|
35 |
-
|
36 |
}
|
37 |
|
38 |
-
.logo {
|
39 |
position: absolute;
|
40 |
-
top:
|
41 |
left: 50%;
|
42 |
transform: translateX(-50%);
|
43 |
-
width:
|
44 |
-
height:
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
}
|
47 |
|
48 |
.container {
|
49 |
position: relative;
|
50 |
width: 400px;
|
51 |
-
height:
|
52 |
perspective: 1000px;
|
53 |
-
margin-top:
|
|
|
54 |
}
|
55 |
|
56 |
.forms-container {
|
@@ -70,11 +85,11 @@
|
|
70 |
width: 100%;
|
71 |
height: 100%;
|
72 |
padding: 40px;
|
73 |
-
background:
|
74 |
-
border-radius:
|
75 |
-
box-shadow: 0
|
76 |
backface-visibility: hidden;
|
77 |
-
border: 1px solid rgba(
|
78 |
}
|
79 |
|
80 |
.register-form {
|
@@ -83,7 +98,7 @@
|
|
83 |
|
84 |
h2 {
|
85 |
text-align: center;
|
86 |
-
color: #
|
87 |
margin-bottom: 30px;
|
88 |
font-size: 28px;
|
89 |
font-weight: 700;
|
@@ -99,7 +114,7 @@
|
|
99 |
transform: translateX(-50%);
|
100 |
width: 60px;
|
101 |
height: 3px;
|
102 |
-
background: linear-gradient(90deg, #
|
103 |
border-radius: 2px;
|
104 |
}
|
105 |
|
@@ -110,30 +125,31 @@
|
|
110 |
|
111 |
input {
|
112 |
width: 100%;
|
113 |
-
padding: 15px;
|
114 |
-
border: 2px solid #
|
115 |
-
border-radius:
|
116 |
font-size: 16px;
|
117 |
transition: all 0.3s ease;
|
118 |
-
background:
|
119 |
-
color: #
|
120 |
}
|
121 |
|
122 |
input:focus {
|
123 |
-
border-color: #
|
124 |
-
|
|
|
125 |
outline: none;
|
126 |
}
|
127 |
|
128 |
button {
|
129 |
width: 100%;
|
130 |
padding: 15px;
|
131 |
-
background: linear-gradient(135deg, #
|
132 |
border: none;
|
133 |
-
border-radius:
|
134 |
color: white;
|
135 |
font-size: 18px;
|
136 |
-
font-weight:
|
137 |
cursor: pointer;
|
138 |
transition: all 0.3s ease;
|
139 |
margin-bottom: 20px;
|
@@ -141,46 +157,21 @@
|
|
141 |
overflow: hidden;
|
142 |
}
|
143 |
|
144 |
-
button::before {
|
145 |
-
content: '';
|
146 |
-
position: absolute;
|
147 |
-
top: 0;
|
148 |
-
left: -100%;
|
149 |
-
width: 100%;
|
150 |
-
height: 100%;
|
151 |
-
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
|
152 |
-
transition: 0.5s;
|
153 |
-
}
|
154 |
-
|
155 |
-
button:hover::before {
|
156 |
-
left: 100%;
|
157 |
-
}
|
158 |
-
|
159 |
button:hover {
|
160 |
transform: translateY(-2px);
|
161 |
-
box-shadow: 0 5px 15px rgba(
|
162 |
-
}
|
163 |
-
|
164 |
-
.toggle-form {
|
165 |
-
text-align: center;
|
166 |
-
margin-top: 20px;
|
167 |
}
|
168 |
|
169 |
.toggle-btn {
|
170 |
background: transparent;
|
171 |
-
color: #
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
border-radius: 8px;
|
176 |
-
cursor: pointer;
|
177 |
-
transition: all 0.3s ease;
|
178 |
-
position: relative;
|
179 |
-
overflow: hidden;
|
180 |
}
|
181 |
|
182 |
.toggle-btn:hover {
|
183 |
-
background: #
|
184 |
color: white;
|
185 |
}
|
186 |
|
@@ -188,7 +179,7 @@
|
|
188 |
margin-top: 15px;
|
189 |
text-align: center;
|
190 |
padding: 12px;
|
191 |
-
border-radius:
|
192 |
font-size: 14px;
|
193 |
opacity: 0;
|
194 |
transition: opacity 0.3s ease;
|
@@ -199,70 +190,107 @@
|
|
199 |
}
|
200 |
|
201 |
.error {
|
202 |
-
color: #
|
203 |
-
background-color: #
|
204 |
-
border: 1px solid #
|
205 |
}
|
206 |
|
207 |
.success {
|
208 |
-
color: #
|
209 |
-
background-color: #
|
210 |
-
border: 1px solid #
|
211 |
}
|
212 |
|
213 |
.form-footer {
|
214 |
text-align: center;
|
215 |
-
margin-top:
|
216 |
font-size: 14px;
|
217 |
color: #666;
|
|
|
|
|
218 |
}
|
219 |
|
220 |
-
|
221 |
-
|
222 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
position: absolute;
|
224 |
-
|
225 |
-
left: -5px;
|
226 |
-
right: -5px;
|
227 |
-
bottom: -5px;
|
228 |
-
background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
|
229 |
-
z-index: -1;
|
230 |
-
border-radius: 17px;
|
231 |
opacity: 0.1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
}
|
233 |
|
234 |
/* Animation */
|
235 |
-
@keyframes
|
236 |
-
|
237 |
-
|
238 |
-
|
|
|
|
|
239 |
}
|
240 |
-
|
241 |
-
|
242 |
-
transform: translateY(0);
|
243 |
}
|
244 |
}
|
245 |
|
246 |
-
.
|
247 |
-
animation:
|
248 |
}
|
249 |
</style>
|
250 |
</head>
|
251 |
<body>
|
252 |
-
<
|
|
|
|
|
253 |
|
254 |
<div class="container">
|
255 |
<div class="forms-container">
|
256 |
<!-- نموذج تسجيل الدخول -->
|
257 |
<div class="form-box login-form">
|
258 |
-
<
|
|
|
|
|
259 |
<div class="input-group">
|
260 |
<input type="text" id="loginUsername" placeholder="البريد الإلكتروني">
|
261 |
</div>
|
262 |
<div class="input-group">
|
263 |
<input type="password" id="loginPassword" placeholder="كلمة المرور">
|
264 |
</div>
|
265 |
-
<button onclick="login()"
|
266 |
<div id="loginMessage" class="message"></div>
|
267 |
<div class="toggle-form">
|
268 |
<button class="toggle-btn" onclick="toggleForm()">إنشاء حساب جديد</button>
|
@@ -274,19 +302,21 @@
|
|
274 |
|
275 |
<!-- نموذج إنشاء حساب -->
|
276 |
<div class="form-box register-form">
|
277 |
-
<
|
|
|
|
|
278 |
<div class="input-group">
|
279 |
<input type="text" id="registerUsername" placeholder="البريد الإلكتروني">
|
280 |
</div>
|
281 |
<div class="input-group">
|
282 |
<input type="password" id="registerPassword" placeholder="كلمة المرور">
|
283 |
</div>
|
284 |
-
<button onclick="register()">إنشاء
|
285 |
<div id="registerMessage" class="message"></div>
|
286 |
<div class="toggle-form">
|
287 |
<button class="toggle-btn" onclick="toggleForm()">العودة لتسجيل الدخول</button>
|
288 |
</div>
|
289 |
-
<div class="
|
290 |
بالتسجيل، أنت توافق على الشروط والأحكام وسياسة الخصوصية
|
291 |
</div>
|
292 |
</div>
|
@@ -335,7 +365,7 @@
|
|
335 |
const data = await response.json();
|
336 |
|
337 |
if (response.ok) {
|
338 |
-
showMessage('loginMessage',
|
339 |
setTimeout(() => {
|
340 |
window.location.href = data.redirect_url;
|
341 |
}, 1000);
|
@@ -378,7 +408,7 @@
|
|
378 |
const data = await response.json();
|
379 |
|
380 |
if (response.ok) {
|
381 |
-
showMessage('registerMessage',
|
382 |
document.getElementById('registerUsername').value = '';
|
383 |
document.getElementById('registerPassword').value = '';
|
384 |
setTimeout(() => {
|
|
|
14 |
}
|
15 |
|
16 |
body {
|
17 |
+
background: #fff;
|
18 |
+
min-height: 100vh;
|
19 |
display: flex;
|
20 |
align-items: center;
|
21 |
justify-content: center;
|
|
|
22 |
position: relative;
|
23 |
+
padding: 20px;
|
24 |
}
|
25 |
|
26 |
body::before {
|
|
|
29 |
top: 0;
|
30 |
left: 0;
|
31 |
right: 0;
|
32 |
+
height: 40vh;
|
33 |
+
background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
|
34 |
+
clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
|
35 |
+
z-index: 0;
|
36 |
}
|
37 |
|
38 |
+
.logo-container {
|
39 |
position: absolute;
|
40 |
+
top: 40px;
|
41 |
left: 50%;
|
42 |
transform: translateX(-50%);
|
43 |
+
width: 150px;
|
44 |
+
height: 150px;
|
45 |
+
background: white;
|
46 |
+
border-radius: 50%;
|
47 |
+
padding: 10px;
|
48 |
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
|
49 |
+
display: flex;
|
50 |
+
align-items: center;
|
51 |
+
justify-content: center;
|
52 |
+
z-index: 2;
|
53 |
+
}
|
54 |
+
|
55 |
+
.logo {
|
56 |
+
width: 100%;
|
57 |
+
height: 100%;
|
58 |
+
object-fit: contain;
|
59 |
+
border-radius: 50%;
|
60 |
}
|
61 |
|
62 |
.container {
|
63 |
position: relative;
|
64 |
width: 400px;
|
65 |
+
min-height: 580px;
|
66 |
perspective: 1000px;
|
67 |
+
margin-top: 100px;
|
68 |
+
z-index: 1;
|
69 |
}
|
70 |
|
71 |
.forms-container {
|
|
|
85 |
width: 100%;
|
86 |
height: 100%;
|
87 |
padding: 40px;
|
88 |
+
background: white;
|
89 |
+
border-radius: 20px;
|
90 |
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
91 |
backface-visibility: hidden;
|
92 |
+
border: 1px solid rgba(139, 69, 19, 0.1);
|
93 |
}
|
94 |
|
95 |
.register-form {
|
|
|
98 |
|
99 |
h2 {
|
100 |
text-align: center;
|
101 |
+
color: #8B4513;
|
102 |
margin-bottom: 30px;
|
103 |
font-size: 28px;
|
104 |
font-weight: 700;
|
|
|
114 |
transform: translateX(-50%);
|
115 |
width: 60px;
|
116 |
height: 3px;
|
117 |
+
background: linear-gradient(90deg, #8B4513, #D2691E);
|
118 |
border-radius: 2px;
|
119 |
}
|
120 |
|
|
|
125 |
|
126 |
input {
|
127 |
width: 100%;
|
128 |
+
padding: 15px 20px;
|
129 |
+
border: 2px solid #E8E8E8;
|
130 |
+
border-radius: 12px;
|
131 |
font-size: 16px;
|
132 |
transition: all 0.3s ease;
|
133 |
+
background: #F8F8F8;
|
134 |
+
color: #333;
|
135 |
}
|
136 |
|
137 |
input:focus {
|
138 |
+
border-color: #8B4513;
|
139 |
+
background: white;
|
140 |
+
box-shadow: 0 0 15px rgba(139, 69, 19, 0.1);
|
141 |
outline: none;
|
142 |
}
|
143 |
|
144 |
button {
|
145 |
width: 100%;
|
146 |
padding: 15px;
|
147 |
+
background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
|
148 |
border: none;
|
149 |
+
border-radius: 12px;
|
150 |
color: white;
|
151 |
font-size: 18px;
|
152 |
+
font-weight: 600;
|
153 |
cursor: pointer;
|
154 |
transition: all 0.3s ease;
|
155 |
margin-bottom: 20px;
|
|
|
157 |
overflow: hidden;
|
158 |
}
|
159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
button:hover {
|
161 |
transform: translateY(-2px);
|
162 |
+
box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
|
|
|
|
|
|
|
|
|
|
|
163 |
}
|
164 |
|
165 |
.toggle-btn {
|
166 |
background: transparent;
|
167 |
+
color: #8B4513;
|
168 |
+
border: 2px solid #8B4513;
|
169 |
+
font-weight: 500;
|
170 |
+
padding: 12px 25px;
|
|
|
|
|
|
|
|
|
|
|
171 |
}
|
172 |
|
173 |
.toggle-btn:hover {
|
174 |
+
background: #8B4513;
|
175 |
color: white;
|
176 |
}
|
177 |
|
|
|
179 |
margin-top: 15px;
|
180 |
text-align: center;
|
181 |
padding: 12px;
|
182 |
+
border-radius: 12px;
|
183 |
font-size: 14px;
|
184 |
opacity: 0;
|
185 |
transition: opacity 0.3s ease;
|
|
|
190 |
}
|
191 |
|
192 |
.error {
|
193 |
+
color: #D32F2F;
|
194 |
+
background-color: #FFEBEE;
|
195 |
+
border: 1px solid #FFCDD2;
|
196 |
}
|
197 |
|
198 |
.success {
|
199 |
+
color: #388E3C;
|
200 |
+
background-color: #E8F5E9;
|
201 |
+
border: 1px solid #C8E6C9;
|
202 |
}
|
203 |
|
204 |
.form-footer {
|
205 |
text-align: center;
|
206 |
+
margin-top: 25px;
|
207 |
font-size: 14px;
|
208 |
color: #666;
|
209 |
+
padding: 15px;
|
210 |
+
border-top: 1px solid #eee;
|
211 |
}
|
212 |
|
213 |
+
.terms {
|
214 |
+
font-size: 13px;
|
215 |
+
color: #888;
|
216 |
+
text-align: center;
|
217 |
+
margin-top: 15px;
|
218 |
+
line-height: 1.6;
|
219 |
+
}
|
220 |
+
|
221 |
+
.decoration {
|
222 |
position: absolute;
|
223 |
+
background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
opacity: 0.1;
|
225 |
+
border-radius: 50%;
|
226 |
+
}
|
227 |
+
|
228 |
+
.decoration-1 {
|
229 |
+
width: 100px;
|
230 |
+
height: 100px;
|
231 |
+
top: -50px;
|
232 |
+
right: -50px;
|
233 |
+
}
|
234 |
+
|
235 |
+
.decoration-2 {
|
236 |
+
width: 150px;
|
237 |
+
height: 150px;
|
238 |
+
bottom: -75px;
|
239 |
+
left: -75px;
|
240 |
+
}
|
241 |
+
|
242 |
+
@media (max-width: 480px) {
|
243 |
+
.container {
|
244 |
+
width: 100%;
|
245 |
+
max-width: 380px;
|
246 |
+
}
|
247 |
+
|
248 |
+
.form-box {
|
249 |
+
padding: 30px 20px;
|
250 |
+
}
|
251 |
+
|
252 |
+
h2 {
|
253 |
+
font-size: 24px;
|
254 |
+
}
|
255 |
}
|
256 |
|
257 |
/* Animation */
|
258 |
+
@keyframes float {
|
259 |
+
0% {
|
260 |
+
transform: translateY(0px);
|
261 |
+
}
|
262 |
+
50% {
|
263 |
+
transform: translateY(-10px);
|
264 |
}
|
265 |
+
100% {
|
266 |
+
transform: translateY(0px);
|
|
|
267 |
}
|
268 |
}
|
269 |
|
270 |
+
.logo-container {
|
271 |
+
animation: float 6s ease-in-out infinite;
|
272 |
}
|
273 |
</style>
|
274 |
</head>
|
275 |
<body>
|
276 |
+
<div class="logo-container">
|
277 |
+
<img src="https://ufastpro.com/wp-content/uploads/2024/11/تصميم-بدون-عنوان-3.png" alt="Logo" class="logo">
|
278 |
+
</div>
|
279 |
|
280 |
<div class="container">
|
281 |
<div class="forms-container">
|
282 |
<!-- نموذج تسجيل الدخول -->
|
283 |
<div class="form-box login-form">
|
284 |
+
<div class="decoration decoration-1"></div>
|
285 |
+
<div class="decoration decoration-2"></div>
|
286 |
+
<h2>مرحباً بعودتك</h2>
|
287 |
<div class="input-group">
|
288 |
<input type="text" id="loginUsername" placeholder="البريد الإلكتروني">
|
289 |
</div>
|
290 |
<div class="input-group">
|
291 |
<input type="password" id="loginPassword" placeholder="كلمة المرور">
|
292 |
</div>
|
293 |
+
<button onclick="login()">تسجيل الدخول</button>
|
294 |
<div id="loginMessage" class="message"></div>
|
295 |
<div class="toggle-form">
|
296 |
<button class="toggle-btn" onclick="toggleForm()">إنشاء حساب جديد</button>
|
|
|
302 |
|
303 |
<!-- نموذج إنشاء حساب -->
|
304 |
<div class="form-box register-form">
|
305 |
+
<div class="decoration decoration-1"></div>
|
306 |
+
<div class="decoration decoration-2"></div>
|
307 |
+
<h2>حساب جديد</h2>
|
308 |
<div class="input-group">
|
309 |
<input type="text" id="registerUsername" placeholder="البريد الإلكتروني">
|
310 |
</div>
|
311 |
<div class="input-group">
|
312 |
<input type="password" id="registerPassword" placeholder="كلمة المرور">
|
313 |
</div>
|
314 |
+
<button onclick="register()">إنشاء الحساب</button>
|
315 |
<div id="registerMessage" class="message"></div>
|
316 |
<div class="toggle-form">
|
317 |
<button class="toggle-btn" onclick="toggleForm()">العودة لتسجيل الدخول</button>
|
318 |
</div>
|
319 |
+
<div class="terms">
|
320 |
بالتسجيل، أنت توافق على الشروط والأحكام وسياسة الخصوصية
|
321 |
</div>
|
322 |
</div>
|
|
|
365 |
const data = await response.json();
|
366 |
|
367 |
if (response.ok) {
|
368 |
+
showMessage('loginMessage', 'تم تسجيل الدخول بنجاح');
|
369 |
setTimeout(() => {
|
370 |
window.location.href = data.redirect_url;
|
371 |
}, 1000);
|
|
|
408 |
const data = await response.json();
|
409 |
|
410 |
if (response.ok) {
|
411 |
+
showMessage('registerMessage', 'تم إنشاء الحساب بنجاح');
|
412 |
document.getElementById('registerUsername').value = '';
|
413 |
document.getElementById('registerPassword').value = '';
|
414 |
setTimeout(() => {
|