diff --git a/public/css/login.css b/public/css/login.css index 45a9227bcb50d74b8371df9438acdbf6fd487db6..cf9bc64064e9ac6426cbf994e2454826824558d0 100644 --- a/public/css/login.css +++ b/public/css/login.css @@ -1,9 +1,13 @@ -/* Global Styles */ -body { - font-family: 'Arial', sans-serif; - background-color: #f0f2f5; +/* Reset some default browser styles */ +* { margin: 0; padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Arial', sans-serif; + background: #f7f7f7; display: flex; justify-content: center; align-items: center; @@ -11,10 +15,10 @@ body { } .login-container { - background-color: #fff; - border-radius: 8px; - box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); + background: #fff; padding: 30px; + border-radius: 10px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); width: 100%; max-width: 400px; text-align: center; @@ -26,27 +30,16 @@ h2 { color: #333; } -/* Error Message Styling */ -.error-message { - background-color: #f8d7da; - color: #721c24; - padding: 10px; - border-radius: 5px; - margin-bottom: 15px; - font-size: 14px; -} - -/* Input Group */ .input-group { - margin-bottom: 20px; + margin-bottom: 15px; text-align: left; } .input-group label { + display: block; font-size: 14px; color: #666; margin-bottom: 5px; - display: block; } .input-group input { @@ -54,20 +47,20 @@ h2 { padding: 10px; border: 1px solid #ccc; border-radius: 5px; - font-size: 16px; - outline: none; + font-size: 14px; + color: #333; transition: border-color 0.3s ease; } .input-group input:focus { - border-color: #007bff; + border-color: #4CAF50; + outline: none; } -/* Submit Button */ button { width: 100%; padding: 12px; - background-color: #007bff; + background-color: #4CAF50; color: white; border: none; border-radius: 5px; @@ -77,17 +70,23 @@ button { } button:hover { - background-color: #0056b3; + background-color: #45a049; +} + +.error-message { + color: red; + font-size: 14px; + margin-bottom: 15px; } -/* Register Link */ p { + margin-top: 15px; font-size: 14px; - color: #666; + color: #777; } a { - color: #007bff; + color: #4CAF50; text-decoration: none; } diff --git a/views/login.ejs b/views/login.ejs index 245b4851a4eb9a4e0a4f8bedeffc001040f94b60..eaed4a73338c0637a932efc5387cd9381af3cd55 100644 --- a/views/login.ejs +++ b/views/login.ejs @@ -4,7 +4,7 @@ <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Login</title> - <link rel="stylesheet" href="/login.css"> + <link rel="stylesheet" href="/css/login.css"> </head> <body> <div class="login-container"> diff --git a/views/register.ejs b/views/register.ejs index 93bdcb0f4dbcefa8d4c34fc6ec0a78df1817993c..e564e220905915bcb61e115f12156eee2d000c3a 100644 --- a/views/register.ejs +++ b/views/register.ejs @@ -4,7 +4,7 @@ <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Register</title> - <link rel="stylesheet" href="/regis.css"> + <link rel="stylesheet" href="/css/regis.css"> </head> <body> <div class="register-container"> @@ -17,19 +17,19 @@ <form action="/register" method="POST"> <div class="input-group"> <label for="name">Name</label> - <input type="text" name="name" required placeholder="Name"> + <input type="text" name="name" id="name" required placeholder="Name"> </div> <div class="input-group"> <label for="email">Email</label> - <input type="email" name="email" required placeholder="Email"> + <input type="email" name="email" id="email" required placeholder="Email"> </div> <div class="input-group"> <label for="password">Password</label> - <input type="password" name="password" required placeholder="Password"> + <input type="password" name="password" id="password" required placeholder="Password"> </div> <div class="input-group"> <label for="confirm-password">Confirm Password</label> - <input type="password" name="confirmPassword" required placeholder="Confirm Password"> + <input type="password" name="confirmPassword" id="confirm-password" required placeholder="Confirm Password"> </div> <button type="submit">Register</button> </form>