Spaces:
Runtime error
Runtime error
Update forgot-password.html
Browse files- forgot-password.html +116 -13
forgot-password.html
CHANGED
|
@@ -16,6 +16,10 @@
|
|
| 16 |
--olive-light: #3A662A;
|
| 17 |
--bg-light: #FFFFFF;
|
| 18 |
--text-light: #2C2C2C;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
}
|
| 20 |
|
| 21 |
body {
|
|
@@ -24,10 +28,19 @@
|
|
| 24 |
display: flex;
|
| 25 |
align-items: center;
|
| 26 |
justify-content: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
| 28 |
color: var(--text-light);
|
| 29 |
}
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
.container {
|
| 32 |
width: 100%;
|
| 33 |
max-width: 450px;
|
|
@@ -35,10 +48,18 @@
|
|
| 35 |
}
|
| 36 |
|
| 37 |
.card {
|
| 38 |
-
background: white;
|
| 39 |
padding: 40px;
|
| 40 |
border-radius: 15px;
|
| 41 |
box-shadow: 0 10px 40px rgba(0,0,0,0.1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
}
|
| 43 |
|
| 44 |
.header {
|
|
@@ -82,6 +103,17 @@
|
|
| 82 |
transition: all 0.3s ease;
|
| 83 |
}
|
| 84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
input:focus {
|
| 86 |
outline: none;
|
| 87 |
border-color: var(--olive-light);
|
|
@@ -166,10 +198,59 @@
|
|
| 166 |
display: block;
|
| 167 |
}
|
| 168 |
|
| 169 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
position: absolute;
|
| 171 |
-
top:
|
| 172 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
padding: 10px 20px;
|
| 174 |
background: var(--olive-light);
|
| 175 |
color: white;
|
|
@@ -185,19 +266,20 @@
|
|
| 185 |
}
|
| 186 |
|
| 187 |
@media (max-width: 768px) {
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
display: block;
|
| 194 |
-
text-align: center;
|
| 195 |
}
|
| 196 |
}
|
| 197 |
</style>
|
| 198 |
</head>
|
| 199 |
-
<body>
|
| 200 |
-
<
|
|
|
|
|
|
|
|
|
|
| 201 |
|
| 202 |
<div class="container">
|
| 203 |
<div class="card">
|
|
@@ -247,6 +329,27 @@
|
|
| 247 |
<script>
|
| 248 |
const API_URL = '';
|
| 249 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 250 |
// عرض رسالة
|
| 251 |
function showAlert(message, type = 'success') {
|
| 252 |
const alert = document.getElementById('alert');
|
|
|
|
| 16 |
--olive-light: #3A662A;
|
| 17 |
--bg-light: #FFFFFF;
|
| 18 |
--text-light: #2C2C2C;
|
| 19 |
+
--bg-dark: #1A1A1A;
|
| 20 |
+
--text-dark: #F5F5F5;
|
| 21 |
+
--card-light: #F8F9FA;
|
| 22 |
+
--card-dark: #2D2D2D;
|
| 23 |
}
|
| 24 |
|
| 25 |
body {
|
|
|
|
| 28 |
display: flex;
|
| 29 |
align-items: center;
|
| 30 |
justify-content: center;
|
| 31 |
+
transition: all 0.3s ease;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
body.light-mode {
|
| 35 |
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
| 36 |
color: var(--text-light);
|
| 37 |
}
|
| 38 |
|
| 39 |
+
body.dark-mode {
|
| 40 |
+
background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
|
| 41 |
+
color: var(--text-dark);
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
.container {
|
| 45 |
width: 100%;
|
| 46 |
max-width: 450px;
|
|
|
|
| 48 |
}
|
| 49 |
|
| 50 |
.card {
|
|
|
|
| 51 |
padding: 40px;
|
| 52 |
border-radius: 15px;
|
| 53 |
box-shadow: 0 10px 40px rgba(0,0,0,0.1);
|
| 54 |
+
transition: all 0.3s ease;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.light-mode .card {
|
| 58 |
+
background: white;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
.dark-mode .card {
|
| 62 |
+
background: var(--card-dark);
|
| 63 |
}
|
| 64 |
|
| 65 |
.header {
|
|
|
|
| 103 |
transition: all 0.3s ease;
|
| 104 |
}
|
| 105 |
|
| 106 |
+
.light-mode input {
|
| 107 |
+
background: white;
|
| 108 |
+
color: var(--text-light);
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
.dark-mode input {
|
| 112 |
+
background: var(--bg-dark);
|
| 113 |
+
color: var(--text-dark);
|
| 114 |
+
border-color: #444;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
input:focus {
|
| 118 |
outline: none;
|
| 119 |
border-color: var(--olive-light);
|
|
|
|
| 198 |
display: block;
|
| 199 |
}
|
| 200 |
|
| 201 |
+
/* Top Bar with Theme Toggle */
|
| 202 |
+
.top-bar {
|
| 203 |
+
position: fixed;
|
| 204 |
+
top: 0;
|
| 205 |
+
left: 0;
|
| 206 |
+
right: 0;
|
| 207 |
+
padding: 15px 20px;
|
| 208 |
+
display: flex;
|
| 209 |
+
justify-content: space-between;
|
| 210 |
+
align-items: center;
|
| 211 |
+
z-index: 1000;
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
.light-mode .top-bar {
|
| 215 |
+
background: rgba(255,255,255,0.9);
|
| 216 |
+
}
|
| 217 |
+
|
| 218 |
+
.dark-mode .top-bar {
|
| 219 |
+
background: rgba(45,45,45,0.9);
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
.theme-toggle {
|
| 223 |
+
width: 50px;
|
| 224 |
+
height: 26px;
|
| 225 |
+
background: var(--olive-light);
|
| 226 |
+
border-radius: 13px;
|
| 227 |
+
position: relative;
|
| 228 |
+
cursor: pointer;
|
| 229 |
+
transition: all 0.3s ease;
|
| 230 |
+
}
|
| 231 |
+
|
| 232 |
+
.theme-toggle::after {
|
| 233 |
+
content: '☀️';
|
| 234 |
position: absolute;
|
| 235 |
+
top: 3px;
|
| 236 |
+
left: 3px;
|
| 237 |
+
width: 20px;
|
| 238 |
+
height: 20px;
|
| 239 |
+
background: white;
|
| 240 |
+
border-radius: 50%;
|
| 241 |
+
transition: all 0.3s ease;
|
| 242 |
+
display: flex;
|
| 243 |
+
align-items: center;
|
| 244 |
+
justify-content: center;
|
| 245 |
+
font-size: 12px;
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
.dark-mode .theme-toggle::after {
|
| 249 |
+
content: '🌙';
|
| 250 |
+
left: 27px;
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
.back-home {
|
| 254 |
padding: 10px 20px;
|
| 255 |
background: var(--olive-light);
|
| 256 |
color: white;
|
|
|
|
| 266 |
}
|
| 267 |
|
| 268 |
@media (max-width: 768px) {
|
| 269 |
+
body {
|
| 270 |
+
padding-top: 60px;
|
| 271 |
+
}
|
| 272 |
+
.top-bar {
|
| 273 |
+
padding: 10px 15px;
|
|
|
|
|
|
|
| 274 |
}
|
| 275 |
}
|
| 276 |
</style>
|
| 277 |
</head>
|
| 278 |
+
<body class="light-mode">
|
| 279 |
+
<div class="top-bar">
|
| 280 |
+
<a href="index.html" class="back-home">🏠 Home</a>
|
| 281 |
+
<div class="theme-toggle" onclick="toggleTheme()"></div>
|
| 282 |
+
</div>
|
| 283 |
|
| 284 |
<div class="container">
|
| 285 |
<div class="card">
|
|
|
|
| 329 |
<script>
|
| 330 |
const API_URL = '';
|
| 331 |
|
| 332 |
+
// Theme Toggle
|
| 333 |
+
function toggleTheme() {
|
| 334 |
+
const body = document.body;
|
| 335 |
+
if (body.classList.contains('light-mode')) {
|
| 336 |
+
body.classList.remove('light-mode');
|
| 337 |
+
body.classList.add('dark-mode');
|
| 338 |
+
localStorage.setItem('theme', 'dark');
|
| 339 |
+
} else {
|
| 340 |
+
body.classList.remove('dark-mode');
|
| 341 |
+
body.classList.add('light-mode');
|
| 342 |
+
localStorage.setItem('theme', 'light');
|
| 343 |
+
}
|
| 344 |
+
}
|
| 345 |
+
|
| 346 |
+
// Load saved theme
|
| 347 |
+
document.addEventListener("DOMContentLoaded", () => {
|
| 348 |
+
const savedTheme = localStorage.getItem('theme') || 'light';
|
| 349 |
+
document.body.classList.remove("light-mode", "dark-mode");
|
| 350 |
+
document.body.classList.add(savedTheme + "-mode");
|
| 351 |
+
});
|
| 352 |
+
|
| 353 |
// عرض رسالة
|
| 354 |
function showAlert(message, type = 'success') {
|
| 355 |
const alert = document.getElementById('alert');
|