css
--------------------------------------homestyles.css
/* General page styling */
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
/* Header styling */
h1 {
color: #333;
text-align: center;
margin-top: 50px;
}
/* Navbar styling */
nav {
background-color: #0066cc;
padding: 10px 0;
display: flex;
justify-content: space-between;
align-items: center;
}
nav ul {
list-style-type: none;
padding: 0;
margin: 0;
display: flex;
}
nav ul li {
margin: 0 15px;
}
nav ul li a {
text-decoration: none;
font-size: 18px;
color: white;
padding: 10px 15px;
border-radius: 5px;
}
nav ul li a:hover {
background-color: #ff6600;
}
/* Logout button styling */
.logout a {
text-decoration: none;
color: #ff0000;
font-size: 18px;
padding: 10px 15px;
border-radius: 5px;
background-color: white;
}
.logout a:hover {
background-color: #ffcccc;
}
-----------------------------------------Loginstyles.css
/* Error message styling /
.error-message {
background-color: #f8d7da;
color: #721c24;
padding: 10px;
border: 1px solid #f5c6cb;
border-radius: 5px;
margin-bottom: 15px;
text-align: center;
font-size: 14px;
font-weight: bold;
}
/ General styles */
body {
font-family: Arial, sans-serif;
background-color: #f0f8ff;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
/* Login container */
.login-container {
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
padding: 30px;
width: 400px;
text-align: center;
}
/* Header styles */
.login-container h2 {
color: #333333;
margin-bottom: 20px;
font-size: 24px;
}
/* Input fields */
.login-container input[type="text"],
.login-container input[type="password"] {
width: calc(100% - 20px);
padding: 10px;
margin: 10px 0;
border: 1px solid #cccccc;
border-radius: 5px;
font-size: 16px;
}
/* Button styles */
.login-container .btn-login {
background-color: #4CAF50;
color: white;
border: none;
padding: 12px 20px;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.login-container .btn-login:hover {
background-color: #45a049;
}
/* Register link */
.login-container .register-link {
margin-top: 15px;
font-size: 14px;
color: #555555;
}
.login-container .register-link a {
color: #007BFF;
text-decoration: none;
font-weight: bold;
}
.login-container .register-link a:hover {
text-decoration: underline;
}
----------------------------------styles.css
/* style.css */
/* Reset some default styles */
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #f4f4f4;
}
/* Center the form on the page */
form {
max-width: 500px;
margin: 50px auto;
padding: 20px;
background: white;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/* Style the labels */
label {
display: block;
margin-bottom: 8px;
font-weight: bold;
}
/* Style the input fields and select dropdowns /
input[type="text"],
input[type="email"],
input[type="password"],
select {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box; / Ensures padding is included in width */
}
/* Style the buttons */
button {
width: 48%;
padding: 10px;
margin-top: 10px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
button[type="submit"] {
background-color: #28a745; /* Green */
color: white;
}
button[type="reset"] {
background-color: #dc3545; /* Red */
color: white;
}
/* Add hover effects for buttons */
button:hover {
opacity: 0.9;
}
/* Responsive design */
@media (max-width: 600px) {
form {
width: 90%;
}
button {
width: 100%;
margin-top: 5px;
}
}