diff --git a/public/login.html b/public/login.html index 9d90c077292e5414b06dec3f0c2667ce65367319..a11395c9bb8a1ff63c090a585da52eba26e79bfd 100644 --- a/public/login.html +++ b/public/login.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html lang="en"> +<html lang="es"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> @@ -9,75 +9,33 @@ <body> <div class="login-container"> <h2>Login</h2> - <form id="login-form" action="login.php" method="POST"> + <form id="login-form"> <input type="text" class="uname" - name="username" + id="username" placeholder="Username" required /> <input type="password" class="pass" - name="password" + id="password" placeholder="Password" required /> - <button type="submit">Login</button> + <button type="submit" class="submit-login">Login</button> </form> - <span class="error_text"></span> - <div class="success_message"> - Login successful! Redirecting to your to-do list... + <span class="error_text" style="color: red"></span> + <div class="success_message" style="display: none; color: green"> + Login successful! Redirecting... </div> <div class="register-link"> - <!DOCTYPE html> - <html lang="es"> - <head> - <meta charset="UTF-8" /> - <meta - name="viewport" - content="width=device-width, initial-scale=1.0" - /> - <title>Login</title> - <link rel="stylesheet" href="./css/login.css" /> - </head> - <body> - <div class="login-container"> - <h2>Login</h2> - <form id="login-form"> - <input - type="text" - class="uname" - id="username" - placeholder="Username" - required - /> - <input - type="password" - class="pass" - id="password" - placeholder="Password" - required - /> - <button type="submit" class="submit-login">Login</button> - </form> - <span class="error_text" style="color: red"></span> - <div class="success_message" style="display: none; color: green"> - Login successful! Redirecting... - </div> - - <div class="register-link"> - Don't have an account? <a href="register.html">Register</a>. - </div> - </div> - - <script src="./js/auth.js"></script> - </body> - </html> - Don't have an account? <a href="register.html">Create one</a>. + Don't have an account? <a href="register.html">Register</a>. </div> </div> + + <script src="./js/auth.js"></script> </body> </html>