joermd commited on
Commit
1d421fe
·
verified ·
1 Parent(s): 52cf91c

Update login.html

Browse files
Files changed (1) hide show
  1. login.html +61 -113
login.html CHANGED
@@ -3,18 +3,18 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>منصة الذكاء الاصطناعي القانوني</title>
7
  <link href="https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Tajawal:wght@400;500;700&display=swap" rel="stylesheet">
8
  <style>
9
  * {
10
  margin: 0;
11
  padding: 0;
12
  box-sizing: border-box;
13
- font-family: 'Cairo', 'Tajawal', sans-serif;
14
  }
15
 
16
  body {
17
- background: #fff;
18
  min-height: 100vh;
19
  display: flex;
20
  align-items: center;
@@ -30,8 +30,8 @@
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
 
@@ -42,27 +42,21 @@
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;
@@ -86,10 +80,13 @@
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,7 +95,7 @@
98
 
99
  h2 {
100
  text-align: center;
101
- color: #8B4513;
102
  margin-bottom: 30px;
103
  font-size: 28px;
104
  font-weight: 700;
@@ -114,7 +111,7 @@
114
  transform: translateX(-50%);
115
  width: 60px;
116
  height: 3px;
117
- background: linear-gradient(90deg, #8B4513, #D2691E);
118
  border-radius: 2px;
119
  }
120
 
@@ -127,26 +124,25 @@
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;
@@ -159,19 +155,18 @@
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,7 +174,7 @@
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;
@@ -204,41 +199,20 @@
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%;
@@ -254,36 +228,37 @@
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>
@@ -296,15 +271,14 @@
296
  <button class="toggle-btn" onclick="toggleForm()">إنشاء حساب جديد</button>
297
  </div>
298
  <div class="form-footer">
299
- منصة ذكاء اصطناعي قانوني موثوقة ومرخصة
300
  </div>
 
301
  </div>
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>
@@ -317,8 +291,9 @@
317
  <button class="toggle-btn" onclick="toggleForm()">العودة لتسجيل الدخول</button>
318
  </div>
319
  <div class="terms">
320
- بالتسجيل، أنت توافق على الشروط والأحكام وسياسة الخصوصية
321
  </div>
 
322
  </div>
323
  </div>
324
  </div>
@@ -344,12 +319,12 @@
344
  const password = document.getElementById('loginPassword').value;
345
 
346
  if (!username || !password) {
347
- showMessage('loginMessage', 'الرجاء إدخال جميع البيانات المطلوبة', true);
348
  return;
349
  }
350
 
351
  if (!isValidEmail(username)) {
352
- showMessage('loginMessage', 'الرجاء إدخال بريد إلكتروني صحيح', true);
353
  return;
354
  }
355
 
@@ -382,12 +357,12 @@
382
  const password = document.getElementById('registerPassword').value;
383
 
384
  if (!username || !password) {
385
- showMessage('registerMessage', 'الرجاء إدخال جميع البيانات المطلوبة', true);
386
  return;
387
  }
388
 
389
  if (!isValidEmail(username)) {
390
- showMessage('registerMessage', 'الرجاء إدخال بريد إلكتروني صحيح', true);
391
  return;
392
  }
393
 
@@ -414,31 +389,4 @@
414
  setTimeout(() => {
415
  toggleForm();
416
  }, 1500);
417
- } else {
418
- showMessage('registerMessage', data.detail, true);
419
- }
420
- } catch (error) {
421
- showMessage('registerMessage', 'حدث خطأ في الاتصال', true);
422
- }
423
- }
424
-
425
- function isValidEmail(email) {
426
- return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
427
- }
428
-
429
- // إضافة استجابة للضغط على Enter
430
- document.querySelectorAll('input').forEach(input => {
431
- input.addEventListener('keypress', (e) => {
432
- if (e.key === 'Enter') {
433
- const form = input.closest('.form-box');
434
- if (form.classList.contains('login-form')) {
435
- login();
436
- } else {
437
- register();
438
- }
439
- }
440
- });
441
- });
442
- </script>
443
- </body>
444
- </html>
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>منصة مصر القانونية للذكاء الاصطناعي</title>
7
  <link href="https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Tajawal:wght@400;500;700&display=swap" rel="stylesheet">
8
  <style>
9
  * {
10
  margin: 0;
11
  padding: 0;
12
  box-sizing: border-box;
13
+ font-family: 'Cairo', sans-serif;
14
  }
15
 
16
  body {
17
+ background: #f5f5f5 url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCI+CiAgPHBhdGggZD0iTTAgMGg2MHY2MEgweiIgZmlsbD0ibm9uZSIvPgogIDxwYXRoIGQ9Ik0zMCAzMG0tMjggMGEyOCAyOCAwIDEgMCA1NiAwYTI4IDI4IDAgMSAwLTU2IDB6IiBzdHJva2U9InJnYmEoMjAwLCAxNjAsIDMzLCAwLjEpIiBmaWxsPSJub25lIi8+Cjwvc3ZnPg==') repeat;
18
  min-height: 100vh;
19
  display: flex;
20
  align-items: center;
 
30
  left: 0;
31
  right: 0;
32
  height: 40vh;
33
+ background: linear-gradient(135deg, #C8A165 0%, #8B6B3D 100%);
34
+ clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
35
  z-index: 0;
36
  }
37
 
 
42
  transform: translateX(-50%);
43
  width: 150px;
44
  height: 150px;
45
+ background: #FFF;
46
  border-radius: 50%;
47
  padding: 10px;
48
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
49
  display: flex;
50
  align-items: center;
51
  justify-content: center;
52
  z-index: 2;
53
+ border: 3px solid #C8A165;
 
 
 
 
 
 
54
  }
55
 
56
  .container {
57
  position: relative;
58
  width: 400px;
59
+ min-height: 600px;
60
  perspective: 1000px;
61
  margin-top: 100px;
62
  z-index: 1;
 
80
  height: 100%;
81
  padding: 40px;
82
  background: white;
83
+ border-radius: 15px;
84
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
85
  backface-visibility: hidden;
86
+ border: 2px solid #C8A165;
87
+ background-image: linear-gradient(45deg, rgba(200, 161, 101, 0.03) 25%, transparent 25%),
88
+ linear-gradient(-45deg, rgba(200, 161, 101, 0.03) 25%, transparent 25%);
89
+ background-size: 20px 20px;
90
  }
91
 
92
  .register-form {
 
95
 
96
  h2 {
97
  text-align: center;
98
+ color: #644B2A;
99
  margin-bottom: 30px;
100
  font-size: 28px;
101
  font-weight: 700;
 
111
  transform: translateX(-50%);
112
  width: 60px;
113
  height: 3px;
114
+ background: linear-gradient(90deg, #C8A165, #8B6B3D);
115
  border-radius: 2px;
116
  }
117
 
 
124
  width: 100%;
125
  padding: 15px 20px;
126
  border: 2px solid #E8E8E8;
127
+ border-radius: 8px;
128
  font-size: 16px;
129
  transition: all 0.3s ease;
130
+ background: #FFFFFF;
131
  color: #333;
132
  }
133
 
134
  input:focus {
135
+ border-color: #C8A165;
136
+ box-shadow: 0 0 15px rgba(200, 161, 101, 0.1);
 
137
  outline: none;
138
  }
139
 
140
  button {
141
  width: 100%;
142
  padding: 15px;
143
+ background: linear-gradient(135deg, #C8A165 0%, #8B6B3D 100%);
144
  border: none;
145
+ border-radius: 8px;
146
  color: white;
147
  font-size: 18px;
148
  font-weight: 600;
 
155
 
156
  button:hover {
157
  transform: translateY(-2px);
158
+ box-shadow: 0 5px 15px rgba(200, 161, 101, 0.3);
159
  }
160
 
161
  .toggle-btn {
162
  background: transparent;
163
+ color: #8B6B3D;
164
+ border: 2px solid #C8A165;
165
  font-weight: 500;
 
166
  }
167
 
168
  .toggle-btn:hover {
169
+ background: #C8A165;
170
  color: white;
171
  }
172
 
 
174
  margin-top: 15px;
175
  text-align: center;
176
  padding: 12px;
177
+ border-radius: 8px;
178
  font-size: 14px;
179
  opacity: 0;
180
  transition: opacity 0.3s ease;
 
199
  .form-footer {
200
  text-align: center;
201
  margin-top: 25px;
202
+ font-size: 15px;
203
+ color: #644B2A;
204
  padding: 15px;
205
+ border-top: 1px solid rgba(200, 161, 101, 0.2);
206
  }
207
 
208
  .terms {
209
  font-size: 13px;
210
+ color: #666;
211
  text-align: center;
212
  margin-top: 15px;
213
  line-height: 1.6;
214
  }
215
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
  @media (max-width: 480px) {
217
  .container {
218
  width: 100%;
 
228
  }
229
  }
230
 
231
+ .egyptian-pattern {
232
+ position: absolute;
233
+ width: 100%;
234
+ height: 20px;
235
+ background-image: repeating-linear-gradient(45deg,
236
+ rgba(200, 161, 101, 0.1) 0px,
237
+ rgba(200, 161, 101, 0.1) 2px,
238
+ transparent 2px,
239
+ transparent 4px);
 
 
240
  }
241
 
242
+ .egyptian-pattern-top {
243
+ top: 0;
244
+ }
245
+
246
+ .egyptian-pattern-bottom {
247
+ bottom: 0;
248
  }
249
  </style>
250
  </head>
251
  <body>
252
  <div class="logo-container">
253
+ <!-- يمكنك تغيير الشعار هنا -->
254
+ <img src="https://ufastpro.com/wp-content/uploads/2024/11/تصميم-بدون-عنوان-3.png" alt="شعار منصة مصر القانونية" class="logo">
255
  </div>
256
 
257
  <div class="container">
258
  <div class="forms-container">
 
259
  <div class="form-box login-form">
260
+ <div class="egyptian-pattern egyptian-pattern-top"></div>
261
+ <h2>مرحباً بك في منصة مصر القانونية</h2>
 
262
  <div class="input-group">
263
  <input type="text" id="loginUsername" placeholder="البريد الإلكتروني">
264
  </div>
 
271
  <button class="toggle-btn" onclick="toggleForm()">إنشاء حساب جديد</button>
272
  </div>
273
  <div class="form-footer">
274
+ منصة مصر القانونية للذكاء الاصطناعي - مرخصة ومعتمدة
275
  </div>
276
+ <div class="egyptian-pattern egyptian-pattern-bottom"></div>
277
  </div>
278
 
 
279
  <div class="form-box register-form">
280
+ <div class="egyptian-pattern egyptian-pattern-top"></div>
281
+ <h2>انضم إلى منصة مصر القانونية</h2>
 
282
  <div class="input-group">
283
  <input type="text" id="registerUsername" placeholder="البريد الإلكتروني">
284
  </div>
 
291
  <button class="toggle-btn" onclick="toggleForm()">العودة لتسجيل الدخول</button>
292
  </div>
293
  <div class="terms">
294
+ بالتسجيل، أنت توافق على الشروط والأحكام وسياسة الخصوصية الخاصة بمنصة مصر القانونية
295
  </div>
296
+ <div class="egyptian-pattern egyptian-pattern-bottom"></div>
297
  </div>
298
  </div>
299
  </div>
 
319
  const password = document.getElementById('loginPassword').value;
320
 
321
  if (!username || !password) {
322
+ showMessage('loginMessage', 'برجاء إدخال جميع البيانات المطلوبة', true);
323
  return;
324
  }
325
 
326
  if (!isValidEmail(username)) {
327
+ showMessage('loginMessage', 'برجاء إدخال بريد إلكتروني صحيح', true);
328
  return;
329
  }
330
 
 
357
  const password = document.getElementById('registerPassword').value;
358
 
359
  if (!username || !password) {
360
+ showMessage('registerMessage', 'برجاء إدخال جميع البيانات المطلوبة', true);
361
  return;
362
  }
363
 
364
  if (!isValidEmail(username)) {
365
+ showMessage('registerMessage', 'برجاء إدخال بريد إلكتروني صحيح', true);
366
  return;
367
  }
368
 
 
389
  setTimeout(() => {
390
  toggleForm();
391
  }, 1500);
392
+ } else {