from
from
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login and Signup</title>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #f4f4f4;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
background-color: #fff;
padding: 40px;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
width: 320px;
text-align: center;
animation: popUp 0.3s ease;
}
@keyframes popUp {
0% { transform: scale(0.5); opacity: 0; }
100% { transform: scale(1); opacity: 1; }
}
.container.hidden-container {
display: none;
}
.container h2 {
margin-bottom: 30px;
color: #333;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
font-weight: bold;
margin-bottom: 5px;
color: #666;
}
.form-group input {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}
.form-group button {
width: 100%;
padding: 10px;
border: none;
border-radius: 5px;
background-color: #00E6B2;
color: #fff;
cursor: pointer;
}
.form-group button:hover {
background-color: #00cc99;
}
.switch-btn {
margin-top: 20px;
font-size: 14px;
color: #666;
}
.switch-btn a {
color: #00E6B2;
text-decoration: none;
}
</style>
</head>
<body>
<script>
function showSignupForm() {
document.getElementById("login-container").classList.add("hidden-
container");
document.getElementById("signup-container").classList.remove("hidden-
container");
}
function showLoginForm() {
document.getElementById("signup-container").classList.add("hidden-
container");
document.getElementById("login-container").classList.remove("hidden-
container");
}
function login() {
var username = document.getElementById("login-username").value;
var password = document.getElementById("login-password").value;
function signup() {
var email = document.getElementById("signup-email").value;
var username = document.getElementById("signup-username").value;
var password = document.getElementById("signup-password").value;
var phone = document.getElementById("signup-phone").value;
</body>
</html>