Responsive Login Form using only HTML & CSS
  • index.html

    <!DOCTYPE html>
    
    <html lang="en" dir="ltr">
      <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title> Login or Sign In form in HTML CSS  </title>
        <link rel="stylesheet" href="style.css">
       </head>
    <body>
      <div class="wrapper">
        <h2>Login</h2>
        <form action="#">
          
          <div class="input-box">
            <input type="text" placeholder="Enter your email" required>
          </div>
          <div class="input-box">
            <input type="password" placeholder="Enter password" required>
          </div>
          <div class="policy">
            <input type="checkbox">
            <h3>Remember Me</h3>
          </div>
          <div class="input-box button">
            <input type="Submit" value="Login Now">
          </div>
          <div class="text d-flex">
            <h4><a href="#">New User ?</a></h4>
            <h4> <a href="#" class="forgot">Forgot Password</a></h4>
          </div>
        </form>
      </div>
    
    </body>
    </html>
    

    style.css

    @import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');* {margin: 0;padding: 0;box-sizing: border-box;font-family: 'Poppins', sans-serif;}body {min-height: 100vh;display: flex;align-items: center;justify-content: center;background: #3142ae;}.wrapper {position: relative;max-width: 430px;width: 100%;background: #fff;padding: 34px;border-radius: 6px;box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);}.wrapper h2 {position: relative;font-size: 22px;font-weight: 600;color: #333;}.wrapper h2::before {content: '';position: absolute;left: 0;bottom: 0;height: 3px;width: 28px;border-radius: 12px;background: #3142ae;}.wrapper form {margin-top: 30px;}.wrapper form .input-box {height: 52px;margin: 18px 0;}form .input-box input {height: 100%;width: 100%;outline: none;padding: 0 15px;font-size: 17px;font-weight: 400;color: #333;border: 1.5px solid #C7BEBE;border-bottom-width: 2.5px;border-radius: 6px;transition: all 0.3s ease;}.input-box input:focus, .input-box input:valid {border-color: #3142ae;}form .policy {display: flex;align-items: center;}form h3 {color: #707070;font-size: 14px;font-weight: 500;margin-left: 10px;}.input-box.button input {color: #fff;letter-spacing: 1px;border: none;background: #3142ae;cursor: pointer;}.input-box.button input:hover {background: #0e4bf1;}form .text h3 {color: #333;width: 100%;text-align: center;}form .text h3 a {color: #3142ae;text-decoration: none;}form .text h3 a:hover {text-decoration: underline;}.d-flex {display: flex;justify-content: space-between !important;}.d-flex h4 {font-size: 12px;}.forgot {color: grey !important;font-weight: 200;}
    Download
    1.48 KB