Login page


 source code 

HTML



<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="preconnect" href="https://fonts.googleapis.com" />
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
    <link
      href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
      rel="stylesheet"
    />
    <link rel="stylesheet" href="style.css" />
    <title>Welcome</title>
  </head>
  <body>
    <main>
      <div class="login">
        <h2>Login</h2>
        <label for="username">username:</label>
        <input type="text" name="username" placeholder="Name" id="Name" />
        <label for="password">Password:</label>
        <input type="password" name="password" placeholder="password" />
        <label for="forget password" id="forgetpassword"
          ><a href="/">forget password?</a></label
        >
        <div class="btn"><button>Login Here</button></div>
      </div>
    </main>
  </body>
</html>



CSS

* {
  padding: 0;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}
body {
  height: 100vh;
  width: 100vw;
}
main {
  background-image: url(https://plus.unsplash.com/premium_photo-1681426539530-0ba6b38601e6?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8OXx8YnJpZ2h0fGVufDB8fDB8fHww);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
}

.login {
  background-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: 10px;
  height: 450px;
  width: 350px;
  border-radius: 5px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
h2 {
  text-align: center;
  font-weight: 900;
  margin: 10px 0px;
  font-size: 40px;
}
label {
  display: block;
  color: rgba(0, 0, 0, 0.486);
  font-weight: 900;
  padding-left: 10px;
  line-height: 50px;
}

input {
  border: 1px solid gray;
  border-radius: 5px;
  position: relative;
  left: 30px;
  width: 80%;
  height: 40px;
  color: rgb(0, 0, 0);
  font-weight: 500;
  padding-left: 5px;
  background: transparent;
}

div button {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: 10px;
  font-size: 20px;
  font-weight: 500;
  border: 1px solid gray;
  padding: 5px 20px;
  margin-top: 20px;
  position: relative;
  left: 30%;
  border-radius: 5px;
  transition: all 0.2s linear 0s;
}
.btn :hover {
  background-color: rgba(0, 0, 0, 0.486);
  backdrop-filter: 10px;
  color: white;
}

#forgetpassword {
  position: relative;
  left: 200px;
  bottom: 16px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}
#forgetpassword a {
  text-decoration: none;
  color: inherit;
}


Comments

Popular posts from this blog

box animation

Spotify website clone

UltraEdit Website Clone