body {
font-family: Arial, sans-serif;
}
.login-container {
max-width: 300px;
margin: 50px auto;
padding: 20px;
background: #f4f4f4;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.login-container h2 {
text-align: center;
}
.login-container input {
width: 100%;
margin: 10px 0;
padding: 10px;
box-sizing: border-box;
}
.login-container button {
width: 100%;
padding: 10px;
background: #007bff;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
.login-container button:hover {
background: #0056b3;
}
Login Form
function login() {
var username = document.getElementById(“username”).value;
var password = document.getElementById(“password”).value;
if (username === “user” && password === “password”) {
alert(“Login successful”);
} else {
alert(“Invalid username or password”);
}
}
Video Link – https://youtu.be/RdQhxXwpuRY