Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
135 changes: 135 additions & 0 deletions login1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Page</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}

.login-container {
background: white;
padding: 40px;
border-radius: 10px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
width: 100%;
max-width: 400px;
}

.login-container h2 {
text-align: center;
color: #333;
margin-bottom: 30px;
}

.form-group {
margin-bottom: 20px;
}

.form-group label {
display: block;
color: #555;
margin-bottom: 8px;
font-weight: 500;
}

.form-group input {
width: 100%;
padding: 12px;
border: 2px solid #ddd;
border-radius: 5px;
font-size: 14px;
transition: border-color 0.3s;
}

.form-group input:focus {
outline: none;
border-color: #667eea;
}

.login-btn {
width: 100%;
padding: 12px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 5px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s;
}

.login-btn:hover {
transform: translateY(-2px);
}

.form-footer {
margin-top: 20px;
text-align: center;
color: #666;
font-size: 14px;
}

.form-footer a {
color: #667eea;
text-decoration: none;
font-weight: 500;
}

.form-footer a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="login-container">
<h2>Welcome Back</h2>
<form id="loginForm">
<div class="form-group">
<label for="email">Email Address</label>
<input type="email" id="email" name="email" required placeholder="Enter your email">
</div>

<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" required placeholder="Enter your password">
</div>

<button type="submit" class="login-btn">Login</button>
</form>

<div class="form-footer">
<p>Don't have an account? <a href="#">Sign up</a></p>
<p><a href="#">Forgot password?</a></p>
</div>
</div>

<script>
document.getElementById('loginForm').addEventListener('submit', function(e) {
e.preventDefault();
const email = document.getElementById('email').value;
const password = document.getElementById('password').value;

// Simple validation
if (email && password) {
alert('Login successful!\nEmail: ' + email);
// Here you would typically send the data to a server
}
});
</script>
</body>
</html>