You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
194 lines
5.3 KiB
194 lines
5.3 KiB
<!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>
|
|
/* General Body Styling */
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #0ced0c;
|
|
color: #04e64c;
|
|
background-image: url('./images/alok.png'); /* Add background image */
|
|
background-size: cover; /* Ensures the image covers the entire background */
|
|
background-position: center; /* Center the background image */
|
|
background-attachment: fixed; /* Keeps the background fixed during scroll */
|
|
}
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: Arial, sans-serif;
|
|
background-color: #f4f4f9;
|
|
display: flex;
|
|
flex-direction: column; /* Allows footer to be at the bottom */
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Login Container */
|
|
.login-container {
|
|
width: 100%;
|
|
max-width: 400px; /* Restrict maximum width */
|
|
padding: 30px;
|
|
background: #ffffff;
|
|
border: 2px solid #ccc; /* Subtle border */
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Soft shadow */
|
|
text-align: center;
|
|
animation: fadeIn 0.5s ease-in-out; /* Fade-in effect */
|
|
}
|
|
|
|
/* Heading */
|
|
.login-container h2 {
|
|
font-size: 1.8rem;
|
|
margin-bottom: 20px;
|
|
color: #333;
|
|
}
|
|
|
|
/* Form Group */
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
/* Label Styling */
|
|
label {
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
margin-bottom: 5px;
|
|
color: #555;
|
|
}
|
|
|
|
/* Input Fields */
|
|
input[type="email"],
|
|
input[type="password"] {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 5px;
|
|
font-size: 1rem;
|
|
color: #333;
|
|
box-sizing: border-box;
|
|
transition: border-color 0.3s ease-in-out;
|
|
}
|
|
|
|
input:focus {
|
|
border-color: #007bff;
|
|
outline: none;
|
|
}
|
|
|
|
/* Button Styling */
|
|
button {
|
|
width: 100%;
|
|
padding: 10px;
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
background-color: #007bff;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease-in-out;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
/* Back Button */
|
|
.back-button {
|
|
margin-top: 10px;
|
|
width: 100%;
|
|
padding: 10px;
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
background-color: #6c757d;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease-in-out;
|
|
}
|
|
|
|
.back-button:hover {
|
|
background-color: #5a6268;
|
|
}
|
|
|
|
/* Signup Link */
|
|
.signup-link {
|
|
margin-top: 15px;
|
|
font-size: 0.9rem;
|
|
color: #555;
|
|
}
|
|
|
|
.signup-link a {
|
|
color: #007bff;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.signup-link a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Centering Animation */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Footer */
|
|
footer {
|
|
background-color: #333;
|
|
color: #fff;
|
|
text-align: center;
|
|
padding: 10px;
|
|
position: absolute;
|
|
bottom: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="login-container">
|
|
<h2>Login</h2>
|
|
<form id="login-form">
|
|
<div class="form-group">
|
|
<label for="email">Email</label>
|
|
<input type="email" id="email" name="email" placeholder="Enter your email" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="password">Password</label>
|
|
<input type="password" id="password" name="password" placeholder="Enter your password" required>
|
|
</div>
|
|
<button type="submit" class="animated-btn">Login</button>
|
|
<button type="button" class="back-button" onclick="window.history.back()">
|
|
<i class="fas fa-arrow-left"></i> Back
|
|
</button>
|
|
<p class="signup-link">
|
|
Don't have an account?
|
|
<a href="buyer.html">Register as a Buyer</a> |
|
|
<a href="seller.html">Register as a Seller</a>
|
|
</p>
|
|
</form>
|
|
</div>
|
|
|
|
<footer>
|
|
<p>© 2025 GREENTECH. All rights reserved.</p>
|
|
</footer>
|
|
</body>
|
|
|
|
</html>
|
|
|