Spaces:
Running
Running
Upload 4 files
Browse files- index.html +264 -302
index.html
CHANGED
|
@@ -4,208 +4,276 @@
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Byweo - Crypto Trading Platform</title>
|
| 7 |
-
<link rel="stylesheet" href="styles.css">
|
| 8 |
<style>
|
| 9 |
* {
|
| 10 |
box-sizing: border-box;
|
| 11 |
margin: 0;
|
| 12 |
padding: 0;
|
| 13 |
-
font-family: '
|
| 14 |
}
|
| 15 |
|
| 16 |
body {
|
| 17 |
-
background
|
| 18 |
color: #e0e0e0;
|
|
|
|
|
|
|
| 19 |
}
|
| 20 |
|
| 21 |
-
.
|
| 22 |
max-width: 100%;
|
| 23 |
margin: 0 auto;
|
| 24 |
-
background
|
| 25 |
min-height: 100vh;
|
|
|
|
| 26 |
}
|
| 27 |
|
| 28 |
-
.
|
| 29 |
padding: 20px;
|
| 30 |
display: flex;
|
| 31 |
justify-content: space-between;
|
| 32 |
align-items: center;
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
}
|
| 35 |
|
| 36 |
.logo {
|
| 37 |
display: flex;
|
| 38 |
align-items: center;
|
| 39 |
-
gap:
|
| 40 |
}
|
| 41 |
|
| 42 |
.logo-icon {
|
| 43 |
-
width:
|
| 44 |
-
height:
|
| 45 |
-
background
|
| 46 |
-
|
| 47 |
-
border-radius: 8px;
|
| 48 |
display: flex;
|
| 49 |
align-items: center;
|
| 50 |
justify-content: center;
|
| 51 |
font-weight: bold;
|
| 52 |
-
font-size:
|
|
|
|
|
|
|
| 53 |
}
|
| 54 |
|
| 55 |
.logo-text {
|
| 56 |
-
font-weight:
|
| 57 |
-
font-size:
|
| 58 |
-
color: #
|
|
|
|
| 59 |
}
|
| 60 |
|
| 61 |
-
.
|
| 62 |
display: flex;
|
| 63 |
-
|
|
|
|
| 64 |
}
|
| 65 |
|
| 66 |
-
.
|
| 67 |
-
color: #
|
| 68 |
text-decoration: none;
|
| 69 |
-
|
| 70 |
-
font-size: 16px;
|
| 71 |
}
|
| 72 |
|
| 73 |
-
.
|
| 74 |
-
color: #
|
| 75 |
}
|
| 76 |
|
| 77 |
-
.
|
|
|
|
| 78 |
display: flex;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
}
|
| 80 |
|
| 81 |
-
.
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
border-radius: 6px;
|
| 87 |
-
font-weight: bold;
|
| 88 |
-
font-size: 14px;
|
| 89 |
-
cursor: pointer;
|
| 90 |
-
transition: background 0.3s;
|
| 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 |
-
position: relative;
|
| 125 |
-
transform-style: preserve-3d;
|
| 126 |
-
animation: rotate 10s infinite linear;
|
| 127 |
}
|
| 128 |
|
| 129 |
-
.
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
color: #4fc3f7;
|
| 135 |
-
display: flex;
|
| 136 |
-
align-items: center;
|
| 137 |
-
justify-content: center;
|
| 138 |
-
font-size: 40px;
|
| 139 |
-
border: 2px solid #4fc3f7;
|
| 140 |
-
opacity: 0.9;
|
| 141 |
}
|
| 142 |
|
| 143 |
-
.
|
| 144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
to { transform: rotateX(360deg) rotateY(360deg); }
|
| 149 |
}
|
| 150 |
|
| 151 |
-
|
| 152 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
}
|
| 154 |
|
| 155 |
label {
|
| 156 |
display: block;
|
| 157 |
margin-bottom: 8px;
|
| 158 |
-
font-weight:
|
| 159 |
font-size: 14px;
|
| 160 |
-
color: #
|
|
|
|
|
|
|
| 161 |
}
|
| 162 |
|
| 163 |
input[type="email"],
|
| 164 |
-
input[type="password"]
|
| 165 |
-
input[type="text"] {
|
| 166 |
width: 100%;
|
| 167 |
-
padding:
|
| 168 |
-
background
|
| 169 |
-
border:
|
| 170 |
-
border-radius:
|
| 171 |
font-size: 16px;
|
| 172 |
-
color: #
|
|
|
|
| 173 |
}
|
| 174 |
|
| 175 |
input:focus {
|
| 176 |
-
border-color: #
|
| 177 |
outline: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
}
|
| 179 |
|
| 180 |
.checkbox-group {
|
| 181 |
display: flex;
|
| 182 |
align-items: flex-start;
|
| 183 |
-
margin:
|
| 184 |
-
font-size:
|
| 185 |
-
color: #
|
|
|
|
| 186 |
}
|
| 187 |
|
| 188 |
.checkbox-group input {
|
| 189 |
-
margin-right:
|
| 190 |
-
margin-top:
|
| 191 |
-
accent-color: #
|
|
|
|
|
|
|
|
|
|
| 192 |
}
|
| 193 |
|
| 194 |
-
.btn-
|
| 195 |
width: 100%;
|
| 196 |
-
padding:
|
| 197 |
-
background
|
| 198 |
-
color: #
|
| 199 |
border: none;
|
| 200 |
-
border-radius:
|
| 201 |
-
font-weight:
|
| 202 |
font-size: 16px;
|
| 203 |
cursor: pointer;
|
| 204 |
-
transition:
|
|
|
|
|
|
|
|
|
|
| 205 |
}
|
| 206 |
|
| 207 |
-
.btn-
|
| 208 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 209 |
}
|
| 210 |
|
| 211 |
.notification {
|
|
@@ -213,245 +281,139 @@
|
|
| 213 |
top: 20px;
|
| 214 |
left: 50%;
|
| 215 |
transform: translateX(-50%);
|
| 216 |
-
padding:
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
border-radius: 4px;
|
| 220 |
-
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
|
| 221 |
display: none;
|
| 222 |
z-index: 1000;
|
|
|
|
|
|
|
| 223 |
}
|
| 224 |
|
| 225 |
-
.notification.
|
| 226 |
-
background
|
| 227 |
color: white;
|
|
|
|
| 228 |
}
|
| 229 |
|
| 230 |
-
.
|
| 231 |
-
|
| 232 |
-
|
|
|
|
| 233 |
}
|
| 234 |
|
| 235 |
-
.
|
| 236 |
-
|
| 237 |
-
|
| 238 |
}
|
| 239 |
|
| 240 |
-
|
| 241 |
-
|
|
|
|
| 242 |
}
|
| 243 |
|
| 244 |
@media (min-width: 768px) {
|
| 245 |
-
.
|
| 246 |
max-width: 500px;
|
| 247 |
-
margin:
|
| 248 |
-
border-radius:
|
| 249 |
-
box-shadow: 0
|
| 250 |
-
min-height:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 251 |
}
|
| 252 |
}
|
| 253 |
</style>
|
| 254 |
</head>
|
| 255 |
<body>
|
| 256 |
-
<div class="
|
| 257 |
-
<header class="
|
| 258 |
<div class="logo">
|
| 259 |
-
<div class="logo-icon">
|
| 260 |
-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none">
|
| 261 |
-
<rect width="32" height="32" rx="8" fill="url(#gradient1)"/>
|
| 262 |
-
<path d="M8 12L16 8L24 12L16 16L8 12Z" fill="white" opacity="0.9"/>
|
| 263 |
-
<path d="M8 16L16 12L24 16L16 20L8 16Z" fill="white" opacity="0.7"/>
|
| 264 |
-
<path d="M8 20L16 16L24 20L16 24L8 20Z" fill="white" opacity="0.5"/>
|
| 265 |
-
<defs>
|
| 266 |
-
<linearGradient id="gradient1" x1="0%" y1="0%" x2="100%" y2="100%">
|
| 267 |
-
<stop offset="0%" style="stop-color:#00D4FF"/>
|
| 268 |
-
<stop offset="100%" style="stop-color:#0099CC"/>
|
| 269 |
-
</linearGradient>
|
| 270 |
-
</defs>
|
| 271 |
-
</svg>
|
| 272 |
-
</div>
|
| 273 |
<span class="logo-text">Byweo</span>
|
| 274 |
</div>
|
| 275 |
-
<
|
| 276 |
-
<a href="#" class="
|
| 277 |
-
<a href="#" class="
|
| 278 |
-
<a href="#" class="
|
| 279 |
-
|
| 280 |
-
<button class="btn-login" onclick="switchToLogin()">Login</button>
|
| 281 |
-
<button class="btn-signup active" onclick="switchToRegister()">Sign up</button>
|
| 282 |
-
</div>
|
| 283 |
-
</nav>
|
| 284 |
</header>
|
| 285 |
|
| 286 |
-
<main class="
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
<div class="btc-coin">โฟ</div>
|
| 292 |
-
<div class="eth-coin">ฮ</div>
|
| 293 |
-
</div>
|
| 294 |
-
</div>
|
| 295 |
</div>
|
| 296 |
|
| 297 |
-
<div class="auth-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
<
|
| 304 |
-
<
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
<
|
| 309 |
-
|
| 310 |
-
<input type="password" id="registerPassword" placeholder="
|
| 311 |
-
|
| 312 |
-
<div class="input-group">
|
| 313 |
-
<label>CONFIRM PASSWORD</label>
|
| 314 |
-
<input type="password" id="confirmPassword" placeholder="Confirm your password" required>
|
| 315 |
</div>
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
</label>
|
| 323 |
</div>
|
| 324 |
-
<button type="submit" class="btn-primary">Create Account</button>
|
| 325 |
-
</form>
|
| 326 |
-
|
| 327 |
-
<div class="switch-form">
|
| 328 |
-
Already have an account? <span onclick="switchToLogin()">Sign in here</span>
|
| 329 |
</div>
|
| 330 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 331 |
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
</
|
| 346 |
-
<
|
| 347 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 348 |
</div>
|
| 349 |
-
<button type="submit" class="btn-primary">Sign In</button>
|
| 350 |
-
</form>
|
| 351 |
-
|
| 352 |
-
<div class="switch-form">
|
| 353 |
-
Don't have an account? <span onclick="switchToRegister()">Create one here</span>
|
| 354 |
</div>
|
| 355 |
-
|
|
|
|
| 356 |
</div>
|
| 357 |
</div>
|
| 358 |
</main>
|
| 359 |
</div>
|
| 360 |
|
| 361 |
-
<!-- Notification -->
|
| 362 |
<div id="notification" class="notification"></div>
|
| 363 |
-
|
| 364 |
-
<script src="script.js"></script>
|
| 365 |
-
<script>
|
| 366 |
-
// DOM Elements
|
| 367 |
-
const registerForm = document.getElementById('registerForm');
|
| 368 |
-
const loginFormElement = document.getElementById('loginFormElement');
|
| 369 |
-
const notification = document.getElementById('notification');
|
| 370 |
-
|
| 371 |
-
// Switch to Login
|
| 372 |
-
function switchToLogin() {
|
| 373 |
-
registerForm.classList.remove('active');
|
| 374 |
-
loginFormElement.classList.add('active');
|
| 375 |
-
}
|
| 376 |
-
|
| 377 |
-
// Switch to Register
|
| 378 |
-
function switchToRegister() {
|
| 379 |
-
registerForm.classList.add('active');
|
| 380 |
-
loginFormElement.classList.remove('active');
|
| 381 |
-
}
|
| 382 |
-
|
| 383 |
-
// Show Notification
|
| 384 |
-
function showNotification(message, isError = false) {
|
| 385 |
-
notification.textContent = message;
|
| 386 |
-
notification.style.backgroundColor = isError ? '#f44336' : '#4CAF50';
|
| 387 |
-
notification.style.display = 'block';
|
| 388 |
|
| 389 |
-
|
| 390 |
-
notification.style.display = 'none';
|
| 391 |
-
}, 3000);
|
| 392 |
-
}
|
| 393 |
-
|
| 394 |
-
// Form Validation and Submission
|
| 395 |
-
document.getElementById('registerFormElement').addEventListener('submit', function(e) {
|
| 396 |
-
e.preventDefault();
|
| 397 |
-
|
| 398 |
-
const email = document.getElementById('registerEmail').value;
|
| 399 |
-
const password = document.getElementById('registerPassword').value;
|
| 400 |
-
const confirm = document.getElementById('confirmPassword').value;
|
| 401 |
-
const termsChecked = document.getElementById('termsCheck').checked;
|
| 402 |
-
|
| 403 |
-
// Simple validation
|
| 404 |
-
if (!email || !password || !confirm) {
|
| 405 |
-
showNotification('Please fill in all fields', true);
|
| 406 |
-
return;
|
| 407 |
-
}
|
| 408 |
-
|
| 409 |
-
if (password !== confirm) {
|
| 410 |
-
showNotification('Passwords do not match', true);
|
| 411 |
-
return;
|
| 412 |
-
}
|
| 413 |
-
|
| 414 |
-
if (!termsChecked) {
|
| 415 |
-
showNotification('You must agree to the terms', true);
|
| 416 |
-
return;
|
| 417 |
-
}
|
| 418 |
-
|
| 419 |
-
if (password.length < 6) {
|
| 420 |
-
showNotification('Password must be at least 6 characters', true);
|
| 421 |
-
return;
|
| 422 |
-
}
|
| 423 |
-
|
| 424 |
-
// Simulate successful registration
|
| 425 |
-
showNotification('Registration successful!');
|
| 426 |
-
setTimeout(() => {
|
| 427 |
-
switchToLogin();
|
| 428 |
-
}, 1500);
|
| 429 |
-
});
|
| 430 |
-
|
| 431 |
-
// Login Form Submission with Dashboard Redirection
|
| 432 |
-
document.getElementById('loginFormElement').addEventListener('submit', function(e) {
|
| 433 |
-
e.preventDefault();
|
| 434 |
-
|
| 435 |
-
const email = document.getElementById('loginEmail').value;
|
| 436 |
-
const password = document.getElementById('loginPassword').value;
|
| 437 |
-
|
| 438 |
-
// Simple validation
|
| 439 |
-
if (!email || !password) {
|
| 440 |
-
showNotification('Please fill in all fields', true);
|
| 441 |
-
return;
|
| 442 |
-
}
|
| 443 |
-
|
| 444 |
-
// Simulate successful login
|
| 445 |
-
showNotification('Login successful! Redirecting to dashboard...');
|
| 446 |
-
|
| 447 |
-
// Redirect to dashboard after 1.5 seconds
|
| 448 |
-
setTimeout(() => {
|
| 449 |
-
window.location.href = 'dashboard.html';
|
| 450 |
-
}, 1500);
|
| 451 |
-
});
|
| 452 |
-
|
| 453 |
-
// Initialize with register form active
|
| 454 |
-
switchToRegister();
|
| 455 |
-
</script>
|
| 456 |
</body>
|
| 457 |
</html>
|
|
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Byweo - Crypto Trading Platform</title>
|
|
|
|
| 7 |
<style>
|
| 8 |
* {
|
| 9 |
box-sizing: border-box;
|
| 10 |
margin: 0;
|
| 11 |
padding: 0;
|
| 12 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
| 13 |
}
|
| 14 |
|
| 15 |
body {
|
| 16 |
+
background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
|
| 17 |
color: #e0e0e0;
|
| 18 |
+
min-height: 100vh;
|
| 19 |
+
overflow-x: hidden;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
.mobile-container {
|
| 23 |
max-width: 100%;
|
| 24 |
margin: 0 auto;
|
| 25 |
+
background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
|
| 26 |
min-height: 100vh;
|
| 27 |
+
position: relative;
|
| 28 |
}
|
| 29 |
|
| 30 |
+
.mobile-header {
|
| 31 |
padding: 20px;
|
| 32 |
display: flex;
|
| 33 |
justify-content: space-between;
|
| 34 |
align-items: center;
|
| 35 |
+
background: rgba(15, 20, 25, 0.95);
|
| 36 |
+
backdrop-filter: blur(10px);
|
| 37 |
+
position: sticky;
|
| 38 |
+
top: 0;
|
| 39 |
+
z-index: 100;
|
| 40 |
}
|
| 41 |
|
| 42 |
.logo {
|
| 43 |
display: flex;
|
| 44 |
align-items: center;
|
| 45 |
+
gap: 12px;
|
| 46 |
}
|
| 47 |
|
| 48 |
.logo-icon {
|
| 49 |
+
width: 40px;
|
| 50 |
+
height: 40px;
|
| 51 |
+
background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
|
| 52 |
+
border-radius: 12px;
|
|
|
|
| 53 |
display: flex;
|
| 54 |
align-items: center;
|
| 55 |
justify-content: center;
|
| 56 |
font-weight: bold;
|
| 57 |
+
font-size: 20px;
|
| 58 |
+
color: white;
|
| 59 |
+
box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
|
| 60 |
}
|
| 61 |
|
| 62 |
.logo-text {
|
| 63 |
+
font-weight: 700;
|
| 64 |
+
font-size: 24px;
|
| 65 |
+
color: #ffffff;
|
| 66 |
+
letter-spacing: -0.5px;
|
| 67 |
}
|
| 68 |
|
| 69 |
+
.header-links {
|
| 70 |
display: flex;
|
| 71 |
+
gap: 20px;
|
| 72 |
+
font-size: 14px;
|
| 73 |
}
|
| 74 |
|
| 75 |
+
.header-link {
|
| 76 |
+
color: #8892b0;
|
| 77 |
text-decoration: none;
|
| 78 |
+
transition: color 0.3s ease;
|
|
|
|
| 79 |
}
|
| 80 |
|
| 81 |
+
.header-link:hover {
|
| 82 |
+
color: #00d4ff;
|
| 83 |
}
|
| 84 |
|
| 85 |
+
.mobile-main {
|
| 86 |
+
padding: 40px 20px;
|
| 87 |
display: flex;
|
| 88 |
+
flex-direction: column;
|
| 89 |
+
align-items: center;
|
| 90 |
+
justify-content: center;
|
| 91 |
+
min-height: calc(100vh - 80px);
|
| 92 |
}
|
| 93 |
|
| 94 |
+
.auth-page {
|
| 95 |
+
display: none;
|
| 96 |
+
width: 100%;
|
| 97 |
+
max-width: 400px;
|
| 98 |
+
margin: 0 auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
}
|
| 100 |
|
| 101 |
+
.auth-page.active {
|
| 102 |
+
display: block;
|
| 103 |
}
|
| 104 |
|
| 105 |
+
.crypto-visual {
|
| 106 |
+
display: flex;
|
| 107 |
+
justify-content: center;
|
| 108 |
+
margin-bottom: 40px;
|
| 109 |
}
|
| 110 |
|
| 111 |
+
.crypto-logo {
|
| 112 |
+
width: 120px;
|
| 113 |
+
height: 120px;
|
| 114 |
+
background: linear-gradient(135deg, #00d4ff 0%, #0099cc 50%, #f7931a 100%);
|
| 115 |
+
border-radius: 30px;
|
| 116 |
+
display: flex;
|
| 117 |
+
align-items: center;
|
| 118 |
+
justify-content: center;
|
| 119 |
+
position: relative;
|
| 120 |
+
box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
|
| 121 |
+
animation: float 3s ease-in-out infinite;
|
| 122 |
}
|
| 123 |
|
| 124 |
+
.crypto-logo::before {
|
| 125 |
+
content: 'โฟ';
|
| 126 |
+
font-size: 48px;
|
| 127 |
+
font-weight: bold;
|
| 128 |
+
color: white;
|
| 129 |
+
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
|
| 130 |
}
|
| 131 |
|
| 132 |
+
@keyframes float {
|
| 133 |
+
0%, 100% { transform: translateY(0px) rotate(0deg); }
|
| 134 |
+
50% { transform: translateY(-10px) rotate(5deg); }
|
| 135 |
}
|
| 136 |
|
| 137 |
+
.auth-form-container {
|
| 138 |
+
background: rgba(26, 31, 46, 0.8);
|
| 139 |
+
border: 1px solid #2d3748;
|
| 140 |
+
border-radius: 20px;
|
| 141 |
+
padding: 32px;
|
| 142 |
+
backdrop-filter: blur(20px);
|
| 143 |
+
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
|
| 144 |
}
|
| 145 |
|
| 146 |
+
.auth-header {
|
| 147 |
+
text-align: center;
|
| 148 |
+
margin-bottom: 24px;
|
|
|
|
|
|
|
|
|
|
| 149 |
}
|
| 150 |
|
| 151 |
+
.auth-link {
|
| 152 |
+
color: #8892b0;
|
| 153 |
+
font-size: 14px;
|
| 154 |
+
margin-bottom: 16px;
|
| 155 |
+
display: block;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
}
|
| 157 |
|
| 158 |
+
.link-text {
|
| 159 |
+
color: #00d4ff;
|
| 160 |
+
font-weight: 600;
|
| 161 |
+
text-decoration: none;
|
| 162 |
+
cursor: pointer;
|
| 163 |
+
transition: color 0.3s ease;
|
| 164 |
+
}
|
| 165 |
|
| 166 |
+
.link-text:hover {
|
| 167 |
+
color: #0099cc;
|
|
|
|
| 168 |
}
|
| 169 |
|
| 170 |
+
h2 {
|
| 171 |
+
text-align: center;
|
| 172 |
+
margin-bottom: 32px;
|
| 173 |
+
font-size: 28px;
|
| 174 |
+
font-weight: 700;
|
| 175 |
+
color: #ffffff;
|
| 176 |
+
letter-spacing: -0.5px;
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
.form-group {
|
| 180 |
+
margin-bottom: 24px;
|
| 181 |
}
|
| 182 |
|
| 183 |
label {
|
| 184 |
display: block;
|
| 185 |
margin-bottom: 8px;
|
| 186 |
+
font-weight: 600;
|
| 187 |
font-size: 14px;
|
| 188 |
+
color: #ffffff;
|
| 189 |
+
text-transform: uppercase;
|
| 190 |
+
letter-spacing: 0.5px;
|
| 191 |
}
|
| 192 |
|
| 193 |
input[type="email"],
|
| 194 |
+
input[type="password"] {
|
|
|
|
| 195 |
width: 100%;
|
| 196 |
+
padding: 16px 20px;
|
| 197 |
+
background: rgba(45, 55, 72, 0.6);
|
| 198 |
+
border: 2px solid #2d3748;
|
| 199 |
+
border-radius: 12px;
|
| 200 |
font-size: 16px;
|
| 201 |
+
color: #ffffff;
|
| 202 |
+
transition: all 0.3s ease;
|
| 203 |
}
|
| 204 |
|
| 205 |
input:focus {
|
| 206 |
+
border-color: #00d4ff;
|
| 207 |
outline: none;
|
| 208 |
+
background: rgba(45, 55, 72, 0.8);
|
| 209 |
+
box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
|
| 210 |
+
}
|
| 211 |
+
|
| 212 |
+
input::placeholder {
|
| 213 |
+
color: #4a5568;
|
| 214 |
+
}
|
| 215 |
+
|
| 216 |
+
.password-input {
|
| 217 |
+
position: relative;
|
| 218 |
+
}
|
| 219 |
+
|
| 220 |
+
.password-toggle {
|
| 221 |
+
position: absolute;
|
| 222 |
+
right: 16px;
|
| 223 |
+
top: 50%;
|
| 224 |
+
transform: translateY(-50%);
|
| 225 |
+
cursor: pointer;
|
| 226 |
+
user-select: none;
|
| 227 |
+
color: #00d4ff;
|
| 228 |
+
font-size: 18px;
|
| 229 |
+
transition: color 0.3s ease;
|
| 230 |
+
}
|
| 231 |
+
|
| 232 |
+
.password-toggle:hover {
|
| 233 |
+
color: #0099cc;
|
| 234 |
}
|
| 235 |
|
| 236 |
.checkbox-group {
|
| 237 |
display: flex;
|
| 238 |
align-items: flex-start;
|
| 239 |
+
margin: 24px 0;
|
| 240 |
+
font-size: 14px;
|
| 241 |
+
color: #8892b0;
|
| 242 |
+
line-height: 1.5;
|
| 243 |
}
|
| 244 |
|
| 245 |
.checkbox-group input {
|
| 246 |
+
margin-right: 12px;
|
| 247 |
+
margin-top: 2px;
|
| 248 |
+
accent-color: #00d4ff;
|
| 249 |
+
width: 18px;
|
| 250 |
+
height: 18px;
|
| 251 |
+
flex-shrink: 0;
|
| 252 |
}
|
| 253 |
|
| 254 |
+
.btn-continue {
|
| 255 |
width: 100%;
|
| 256 |
+
padding: 18px;
|
| 257 |
+
background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
|
| 258 |
+
color: #0f1419;
|
| 259 |
border: none;
|
| 260 |
+
border-radius: 12px;
|
| 261 |
+
font-weight: 700;
|
| 262 |
font-size: 16px;
|
| 263 |
cursor: pointer;
|
| 264 |
+
transition: all 0.3s ease;
|
| 265 |
+
text-transform: uppercase;
|
| 266 |
+
letter-spacing: 0.5px;
|
| 267 |
+
box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
|
| 268 |
}
|
| 269 |
|
| 270 |
+
.btn-continue:hover {
|
| 271 |
+
transform: translateY(-2px);
|
| 272 |
+
box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
.btn-continue:active {
|
| 276 |
+
transform: translateY(0);
|
| 277 |
}
|
| 278 |
|
| 279 |
.notification {
|
|
|
|
| 281 |
top: 20px;
|
| 282 |
left: 50%;
|
| 283 |
transform: translateX(-50%);
|
| 284 |
+
padding: 16px 24px;
|
| 285 |
+
border-radius: 12px;
|
| 286 |
+
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
|
|
|
|
|
|
|
| 287 |
display: none;
|
| 288 |
z-index: 1000;
|
| 289 |
+
font-weight: 600;
|
| 290 |
+
backdrop-filter: blur(10px);
|
| 291 |
}
|
| 292 |
|
| 293 |
+
.notification.success {
|
| 294 |
+
background: rgba(16, 185, 129, 0.9);
|
| 295 |
color: white;
|
| 296 |
+
border: 1px solid #10b981;
|
| 297 |
}
|
| 298 |
|
| 299 |
+
.notification.error {
|
| 300 |
+
background: rgba(239, 68, 68, 0.9);
|
| 301 |
+
color: white;
|
| 302 |
+
border: 1px solid #ef4444;
|
| 303 |
}
|
| 304 |
|
| 305 |
+
.notification.show {
|
| 306 |
+
display: block;
|
| 307 |
+
animation: slideIn 0.3s ease;
|
| 308 |
}
|
| 309 |
|
| 310 |
+
@keyframes slideIn {
|
| 311 |
+
from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
|
| 312 |
+
to { transform: translateX(-50%) translateY(0); opacity: 1; }
|
| 313 |
}
|
| 314 |
|
| 315 |
@media (min-width: 768px) {
|
| 316 |
+
.mobile-container {
|
| 317 |
max-width: 500px;
|
| 318 |
+
margin: 20px auto;
|
| 319 |
+
border-radius: 20px;
|
| 320 |
+
box-shadow: 0 20px 60px rgba(0,0,0,0.4);
|
| 321 |
+
min-height: calc(100vh - 40px);
|
| 322 |
+
overflow: hidden;
|
| 323 |
+
}
|
| 324 |
+
|
| 325 |
+
.mobile-main {
|
| 326 |
+
padding: 60px 40px;
|
| 327 |
}
|
| 328 |
}
|
| 329 |
</style>
|
| 330 |
</head>
|
| 331 |
<body>
|
| 332 |
+
<div class="mobile-container">
|
| 333 |
+
<header class="mobile-header">
|
| 334 |
<div class="logo">
|
| 335 |
+
<div class="logo-icon">B</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 336 |
<span class="logo-text">Byweo</span>
|
| 337 |
</div>
|
| 338 |
+
<div class="header-links">
|
| 339 |
+
<a href="#" class="header-link">Buy Crypto</a>
|
| 340 |
+
<a href="#" class="header-link">Terms of Use</a>
|
| 341 |
+
<a href="#" class="header-link">Privacy Policy</a>
|
| 342 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 343 |
</header>
|
| 344 |
|
| 345 |
+
<main class="mobile-main">
|
| 346 |
+
<!-- Registration Page -->
|
| 347 |
+
<div id="landingPage" class="auth-page active">
|
| 348 |
+
<div class="crypto-visual">
|
| 349 |
+
<div class="crypto-logo"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 350 |
</div>
|
| 351 |
|
| 352 |
+
<div class="auth-form-container">
|
| 353 |
+
<div class="auth-header">
|
| 354 |
+
<span class="auth-link">Already have an account? <span class="link-text" onclick="switchToLogin()">Login</span></span>
|
| 355 |
+
</div>
|
| 356 |
+
<h2>Sign up</h2>
|
| 357 |
+
<form id="registerFormElement">
|
| 358 |
+
<div class="form-group">
|
| 359 |
+
<label>EMAIL</label>
|
| 360 |
+
<input type="email" id="registerEmail" placeholder="Email address" required>
|
| 361 |
+
</div>
|
| 362 |
+
<div class="form-group">
|
| 363 |
+
<label>PASSWORD</label>
|
| 364 |
+
<div class="password-input">
|
| 365 |
+
<input type="password" id="registerPassword" placeholder="Password" required>
|
| 366 |
+
<span class="password-toggle" onclick="togglePassword('registerPassword')">๐</span>
|
|
|
|
|
|
|
|
|
|
| 367 |
</div>
|
| 368 |
+
</div>
|
| 369 |
+
<div class="form-group">
|
| 370 |
+
<label>CONFIRM PASSWORD</label>
|
| 371 |
+
<div class="password-input">
|
| 372 |
+
<input type="password" id="confirmPassword" placeholder="Confirm password" required>
|
| 373 |
+
<span class="password-toggle" onclick="togglePassword('confirmPassword')">๐</span>
|
|
|
|
| 374 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 375 |
</div>
|
| 376 |
+
<div class="checkbox-group">
|
| 377 |
+
<input type="checkbox" id="termsCheck" required>
|
| 378 |
+
<label for="termsCheck">By signing up I agree that I'm 18 years of age or older, to the <a href="#" class="link-text">Terms of Use</a>, <a href="#" class="link-text">Privacy Policy</a></label>
|
| 379 |
+
</div>
|
| 380 |
+
<button type="submit" class="btn-continue">Continue</button>
|
| 381 |
+
</form>
|
| 382 |
+
</div>
|
| 383 |
+
</div>
|
| 384 |
|
| 385 |
+
<!-- Login Page -->
|
| 386 |
+
<div id="loginForm" class="auth-page">
|
| 387 |
+
<div class="crypto-visual">
|
| 388 |
+
<div class="crypto-logo"></div>
|
| 389 |
+
</div>
|
| 390 |
+
|
| 391 |
+
<div class="auth-form-container">
|
| 392 |
+
<div class="auth-header">
|
| 393 |
+
<span class="auth-link">Don't have an account? <span class="link-text" onclick="switchToRegister()">Sign up</span></span>
|
| 394 |
+
</div>
|
| 395 |
+
<h2>Login</h2>
|
| 396 |
+
<form id="loginFormElement">
|
| 397 |
+
<div class="form-group">
|
| 398 |
+
<label>EMAIL</label>
|
| 399 |
+
<input type="email" id="loginEmail" placeholder="Email address" required>
|
| 400 |
+
</div>
|
| 401 |
+
<div class="form-group">
|
| 402 |
+
<label>PASSWORD</label>
|
| 403 |
+
<div class="password-input">
|
| 404 |
+
<input type="password" id="loginPassword" placeholder="Password" required>
|
| 405 |
+
<span class="password-toggle" onclick="togglePassword('loginPassword')">๐</span>
|
| 406 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 407 |
</div>
|
| 408 |
+
<button type="submit" class="btn-continue">Continue</button>
|
| 409 |
+
</form>
|
| 410 |
</div>
|
| 411 |
</div>
|
| 412 |
</main>
|
| 413 |
</div>
|
| 414 |
|
|
|
|
| 415 |
<div id="notification" class="notification"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 416 |
|
| 417 |
+
<script src="script.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 418 |
</body>
|
| 419 |
</html>
|