Frontend upd

This commit is contained in:
Jevinca Marvella 2025-11-15 13:57:29 +07:00
parent 8b4c8db00b
commit cd6e665112
2 changed files with 99 additions and 202 deletions

View File

@ -6,7 +6,7 @@
body { body {
font-family: 'Arial', sans-serif; font-family: 'Arial', sans-serif;
background: linear-gradient(135deg, #1a0033 0%, #0d001a 100%); background: radial-gradient(circle at 20% 20%, #3b0066, #0c001a 70%);
min-height: 100vh; min-height: 100vh;
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -15,6 +15,7 @@ body {
position: relative; position: relative;
} }
/* Neon Particles */
#particles { #particles {
position: fixed; position: fixed;
top: 0; top: 0;
@ -26,40 +27,45 @@ body {
.particle { .particle {
position: absolute; position: absolute;
width: 4px; width: 5px;
height: 4px; height: 5px;
border-radius: 50%; border-radius: 50%;
background: radial-gradient(circle, #00ffff, #0099ff);
box-shadow: 0 0 10px #00eaff, 0 0 25px #0088ff;
pointer-events: none; pointer-events: none;
} }
.container { .container {
position: relative; position: relative;
z-index: 2; z-index: 2;
background: rgba(30, 0, 50, 0.6); background: rgba(20, 0, 40, 0.65);
backdrop-filter: blur(10px);
border: 2px solid rgba(0, 217, 255, 0.3);
border-radius: 20px; border-radius: 20px;
padding: 50px 40px; padding: 50px 40px;
width: 90%; width: 90%;
max-width: 400px; max-width: 420px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
0 0 40px rgba(0, 217, 255, 0.3), border: 2px solid rgba(0, 255, 255, 0.4);
inset 0 0 30px rgba(0, 217, 255, 0.1); box-shadow:
animation: glowBorder 3s ease-in-out infinite; 0 0 25px rgba(0, 255, 255, 0.4),
0 0 60px rgba(255, 0, 255, 0.25),
inset 0 0 40px rgba(0, 255, 255, 0.2);
animation: scanGlow 4s ease-in-out infinite alternate;
} }
@keyframes glowBorder { @keyframes scanGlow {
0%, 100% { 0% {
border-color: rgba(0, 217, 255, 0.4); border-color: #00eaff;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), box-shadow:
0 0 40px rgba(0, 217, 255, 0.3), 0 0 20px rgba(0, 255, 255, 0.3),
inset 0 0 30px rgba(0, 217, 255, 0.1); 0 0 40px rgba(0, 255, 255, 0.2),
inset 0 0 25px rgba(0, 255, 255, 0.1);
} }
50% { 100% {
border-color: rgba(255, 0, 255, 0.5); border-color: #ff00ff;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), box-shadow:
0 0 50px rgba(255, 0, 255, 0.4), 0 0 30px rgba(255, 0, 255, 0.4),
inset 0 0 40px rgba(255, 0, 255, 0.15); 0 0 70px rgba(255, 0, 255, 0.3),
inset 0 0 35px rgba(255, 0, 255, 0.2);
} }
} }
@ -82,45 +88,51 @@ h1 {
input { input {
width: 100%; width: 100%;
padding: 15px 20px; padding: 16px 20px;
background: rgba(50, 50, 70, 0.5); background: rgba(30, 0, 50, 0.65);
border: 2px solid rgba(100, 100, 120, 0.3); border: 2px solid rgba(0, 175, 255, 0.3);
border-radius: 10px; border-radius: 12px;
color: #fff; color: #e1e8ff;
font-size: 16px; font-size: 16px;
transition: all 0.3s ease; transition: 0.3s ease;
outline: none; outline: none;
} }
input:focus { input:focus {
border-color: #00d9ff; border-color: #00eaff;
box-shadow: 0 0 20px rgba(0, 217, 255, 0.3); box-shadow: 0 0 20px #00cfff;
} }
input::placeholder { input::placeholder {
color: rgba(255, 255, 255, 0.5); color: rgba(200, 200, 255, 0.5);
} }
.btn { .btn {
width: 100%; width: 100%;
padding: 15px; padding: 15px;
margin-top: 10px; margin-top: 10px;
background: linear-gradient(90deg, #00d9ff 0%, #ff00ff 100%);
background: linear-gradient(90deg, #00eaff, #ff00ff);
border: none; border: none;
border-radius: 10px; border-radius: 12px;
color: #fff; color: #fff;
font-size: 18px;
font-weight: bold; font-weight: bold;
text-transform: uppercase; text-transform: uppercase;
font-size: 18px;
letter-spacing: 2px; letter-spacing: 2px;
cursor: pointer; cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 5px 25px rgba(0, 217, 255, 0.4); box-shadow: 0 5px 25px rgba(0, 217, 255, 0.4);
transition: all 0.25s ease;
} }
.btn:hover { .btn:hover {
transform: translateY(-2px); transform: translateY(-3px);
box-shadow: 0 8px 35px rgba(0, 217, 255, 0.6); box-shadow:
0 8px 35px rgba(0, 217, 255, 0.7),
0 0 20px rgba(255, 0, 255, 0.6);
} }
.btn:active { .btn:active {
@ -129,37 +141,31 @@ input::placeholder {
.register-link { .register-link {
text-align: center; text-align: center;
margin-top: 40px; margin-top: 25px;
padding-bottom: 10px; color: rgba(255, 255, 255, 0.75);
color: rgba(255, 255, 255, 0.7);
font-size: 14px; font-size: 14px;
} }
.register-link a {
.login-link a { color: #00eaff;
color: #00d9ff;
text-decoration: none;
font-weight: bold; font-weight: bold;
transition: all 0.3s ease; text-decoration: none;
transition: 0.3s ease;
} }
.login-link a:hover { .register-link a:hover {
color: #ff00ff; color: #ff00ff;
text-shadow: 0 0 10px rgba(0, 217, 255, 0.5); text-shadow: 0 0 10px #00ddff;
} }
/* Custom Modal Styles */ /* Modal */
.modal { .modal {
display: none; display: none;
position: fixed; position: fixed;
z-index: 1000; z-index: 999;
left: 0; inset: 0;
top: 0; background-color: rgba(0, 0, 0, 0.75);
width: 100%; backdrop-filter: blur(8px);
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(5px);
animation: fadeIn 0.3s ease;
} }
.modal.show { .modal.show {
@ -169,202 +175,93 @@ input::placeholder {
} }
.modal-content { .modal-content {
background: linear-gradient(135deg, rgba(30, 0, 50, 0.95) 0%, rgba(50, 0, 80, 0.95) 100%); background: rgba(20, 0, 40, 0.95);
border: 2px solid rgba(255, 255, 255, 0.1);
border-radius: 20px; border-radius: 20px;
padding: 40px 30px; border: 2px solid rgba(0, 255, 255, 0.4);
text-align: center; padding: 35px 25px;
max-width: 400px;
width: 90%; width: 90%;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); max-width: 400px;
animation: slideIn 0.3s ease;
box-shadow:
0 0 30px #00eaff,
0 0 60px #ff00ff;
} }
.modal-icon { .modal-icon {
width: 80px; width: 80px;
height: 80px; height: 80px;
margin: 0 auto 20px; margin: 0 auto 15px;
border-radius: 50%; border-radius: 50%;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
font-size: 40px; font-size: 38px;
color: white;
} }
.modal-icon.success { .modal-icon.success {
background: linear-gradient(135deg, #00d9ff 0%, #00ff88 100%); background: linear-gradient(135deg, #00eaff, #00ff88);
box-shadow: 0 0 30px rgba(0, 217, 255, 0.6); box-shadow: 0 0 25px #00ffcc;
}
.modal-icon.success::before {
content: "✓";
color: #fff;
} }
.modal-icon.error { .modal-icon.error {
background: linear-gradient(135deg, #ff0080 0%, #ff00ff 100%); background: linear-gradient(135deg, #ff0066, #ff00ff);
box-shadow: 0 0 30px rgba(255, 0, 128, 0.6); box-shadow: 0 0 25px #ff00aa;
}
.modal-icon.error::before {
content: "✕";
color: #fff;
} }
.modal-content h2 { .modal-content h2 {
color: #fff; font-size: 1.7rem;
font-size: 1.8rem; margin-bottom: 10px;
margin-bottom: 15px;
background: linear-gradient(90deg, #00d9ff 0%, #ff00ff 100%); background: linear-gradient(90deg, #00eaff, #ff00ff);
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
background-clip: text;
} }
.modal-content p { .modal-content p {
color: rgba(255, 255, 255, 0.8); color: rgba(240, 240, 255, 0.8);
font-size: 1rem; margin-bottom: 25px;
margin-bottom: 30px;
line-height: 1.5; line-height: 1.5;
} }
.modal-btn { .modal-btn {
padding: 12px 50px; padding: 12px 55px;
background: linear-gradient(90deg, #00d9ff 0%, #ff00ff 100%); background: linear-gradient(90deg, #00eaff, #ff00ff);
border: none; border: none;
border-radius: 10px; border-radius: 10px;
color: #fff;
color: white;
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
text-transform: uppercase;
letter-spacing: 2px;
cursor: pointer; cursor: pointer;
transition: all 0.3s ease; box-shadow: 0 0 20px #00d9ff;
box-shadow: 0 5px 25px rgba(0, 217, 255, 0.4); transition: 0.3s ease;
} }
.modal-btn:hover { .modal-btn:hover {
transform: translateY(-2px); transform: translateY(-3px);
box-shadow: 0 8px 35px rgba(0, 217, 255, 0.6); box-shadow: 0 0 30px #00eaff;
} }
.modal-btn:active { /* Responsive */
transform: translateY(0); @media (max-width: 480px) {
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideIn {
from {
transform: translateY(-50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@media (max-width: 768px) {
.container { .container {
padding: 40px 30px; padding: 30px 25px;
width: 95%;
} }
h1 { h1 {
font-size: 1.6rem; font-size: 1.8rem;
letter-spacing: 2px;
margin-bottom: 30px;
} }
input { input {
padding: 12px 16px; padding: 13px 15px;
font-size: 15px; font-size: 15px;
} }
.btn { .btn {
padding: 13px; padding: 13px;
font-size: 16px; font-size: 16px;
letter-spacing: 1.5px;
}
.register-link {
font-size: 13px;
}
.modal-content {
padding: 30px 25px;
}
.modal-content h2 {
font-size: 1.5rem;
} }
} }
@media (max-width: 480px) {
.container {
padding: 30px 20px;
}
h1 {
font-size: 1.4rem;
letter-spacing: 1.5px;
margin-bottom: 25px;
}
input {
padding: 10px 14px;
font-size: 14px;
}
.btn {
padding: 12px;
font-size: 15px;
letter-spacing: 1px;
}
.register-link {
font-size: 12px;
margin-top: 20px;
}
.modal-icon {
width: 60px;
height: 60px;
font-size: 30px;
}
.modal-content h2 {
font-size: 1.3rem;
}
.modal-content p {
font-size: 0.9rem;
}
}
@media (max-width: 360px) {
.container {
padding: 25px 15px;
}
h1 {
font-size: 1.2rem;
}
input {
padding: 10px 12px;
font-size: 13px;
}
.btn {
font-size: 14px;
}
}

View File

@ -10,7 +10,7 @@
<div id="particles"></div> <div id="particles"></div>
<div class="container"> <div class="container">
<h1>Register</h1> <h1>REGISTER</h1>
<form id="registerForm"> <form id="registerForm">
<div class="input-group"> <div class="input-group">