Skip to main content

Login & Signup forms using Html & CSS

 Login/Signup Form 

Using Html & CSS



Hello hope you all are fine :-), today I'm going to make Login and signup form by using html & css it is very easy to create just like a piece of cake!

  • Login Form

Index.Html

<!DOCTYPE html>
<html lang="en">
    
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Join-Us</title>
   
    <link rel="stylesheet" href="join-us.css">
   
</head>
<body>
  <div class="form">
    <h1>Login <span><hr style=" border: 0;
      height: 1px;
      
      background: rgb(129, 133, 131);padding-top:2px;
      background-image: linear-gradient(to right, rgba(122, 184, 93, 0.678), rgba(135, 172, 141, 0.404), rgba(202, 200, 200, 0.521));"></span></h1>
   
       <input type="text" autocomplete="off" required>
       <label for="email" class="label-email">
         <span class="content-email">Email</span></label>

      <input type="password"  required>
      <label for="pass" class="label-pass">
        <span class="content-pass">Password</span></label>

   <br><br>
        <div class="pass">Forgot Password</div>
        <input type="submit" value="Login">
        <div class="signup-link"> Not a member? <a href="signup.html">Signup</a>
       
        </div>
  </div>

  
    

</body>
</html>

Style.Css

*{
    margin0;
    padding0;
    box-sizing:border-box;
}
body{
    height100vh;
    font-familysans-serif;
  background-image: url(https://cdn.pixabay.com/photo/2016/03/26/13/09/notebook-1280538_960_720.jpg);
  background-sizecover;
    displayflex;
    justify-contentcenter;
    align-itemscenter;
}
.form{
    width300px;
    height500px;
    positionrelative;
    background-color#393a3b;
    displayflex;
    flex-directioncolumn;
    justify-contentcenter;
    border-radius15px;
    padding0 15px 0 15px;
    box-shadow0px 25px 36px 12px rgba(5367820.295)
}
.form input{
    width100%;
    height50px;
    padding-top20px;
    colorwhite;
    bordernone;
    background-color#393a3b;
    border-bottom2px solid white;
    outlinenone;
}
.form label{
transform: translateY(-50px);
pointer-eventsnone;
}
.content-email , .content-pass{
    positionabsolute;
    top25px;
    colorwhite;
transitionall 0.4s ease;
}
.form input:focus+.label-email .content-email,
.form input:valid+.label-email .content-email{
transform: translateY(-100%);
font-size14px;
color#eee;

}
.form input:focus+.label-pass .content-pass,
.form input:valid+.label-pass .content-pass{
transform: translateY(-100%);
font-size14px;
color#eee;
}
h1{
    align-selfcenter;
    colorwhite;
    margin-bottom30px;
    font-family'Lucida Sans''Lucida Sans Regular''Lucida Grande''Lucida Sans Unicode', Geneva, Verdanasans-serif;
}


input[type="submit"]{
    width100%;
    height53px;
padding-top13px;
    border1px solid;
    background#2ca16b;
    color: rgb(250249249);
    border-radius25px;
    font-size17px;
    font-weight700;
    cursorpointer;
    outlinenone;

}

.pass{
    margin-5px 0 20px 5px;
    color#a6a6a6;
    cursorpointer;
}

input[type="submit"]:hover{
  transition.5s;
  border2px solid rgb(153615);
  border-color: rgb(2714633);
}
.signup-link{
    margin30px 0;
    text-aligncenter;
    font-size16px;
    color#f8f7f7;
}
.signup-link a{
    color#2ca16b;
    text-decorationnone;
    padding-left-5px;
}
.signup-link a:hover{
    text-decorationunderline;

Output






  • Sign Up Form

Index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
   
    <link rel="stylesheet" href="signup.css">
    
</head>
<body>
    
    <div class="form">
 <h1 > Sign Up <span><hr style=" border: 0;
    height: 1px;
    background: rgb(129, 133, 131);padding-top:2px;
      background-image: linear-gradient(to right, rgba(127, 158, 113, 0.678), rgba(135, 172, 141, 0.404), rgba(202, 200, 200, 0.521));"></span></h1> <br>

        <input type="text"  required>
        <label for="pass" class="label-pass">
          <span class="content-pass">First Name</span></label>

          <input type="text"  required>
          <label for="pass" class="label-pass">
            <span class="content-pass">Last Name</span></label>
            
            <input type="text"  required>
            <label for="pass" class="label-pass">
              <span class="content-pass">Email</span></label>

              <input type="password"  required>
              <label for="pass" class="label-pass">
                <span class="content-pass">Password</span></label>
                <br>
                <br>
                <br>
               
              
                <input type="submit" value="Sign Up">
                <br><br><br>
                <a href="join-us.html">Already have an account?</a>
    </div>
       <!-- tab-content -->
        
 <!-- /form -->
</body>
</html>

Style.Css

body,html{
    margin0;
    padding0;
 background-color#75777613;
    overflow-xhidden;
}
.navbar{
    background-color:#393a3bce !important;
   
   padding-bottom12px;
    border-radius:0px;

  
}

.nav-item :hover{
 
    border-radius0px 6px ;
   background-color: rgba(3637360.815);
 
 transform: translate(-15px);
 transition0.4s  ;
}

p{
    margin-top20px !important;
    padding-bottom33px;
   padding-top30px;
    font-size20px !important;

}
.para{
    padding-left30px;
    padding-right30px;
    margin-left30px;
    margin-right30px;
    padding-bottom20px;
    line-height1.1cm;
    
}
.features_photos{
    margin-top:50px;
}

.color{
    background-color:#393a3bce !important ;
}

.intro{
    padding-top20px;
  
}


.carousel-caption{
    background: rgb(192189189); /* Fallback color */
    background: rgba(1281271270.4); /* Black background with 0.5 opacity */
    color#f1f1f1;
   font-size17px !important;
    positionabsolute;
    bottom0 !important;
    padding20px !important;
  
}
.button{
    padding-bottom28px;
}
/*images button*/
#hover{
  padding10px 25px;
  color#fff;
  positionrelative;
  text-decorationnone;
  overflowhidden;
  border2px solid #38a169;  

}
#hover::before{
    content"";
    positionabsolute;
    bottom2px;
    left2px;
    width18px;
    height18px;
    border-bottom2px solid  #38a169;
    border-left2px solid  #38a169;
}
#hover::after{
    content"";
    positionabsolute;
    border-top2px solid  #38a169;
    border-right2px solid  #38a169;
    top2px;
    right2px;
    width18px;
    height18px;
}
#hover:hover{
  background-color#38a169;
  color#fff;
  transitionall 0.3s ease-in-out 0.4s;
}
#hover:hover::before,#hover:hover::after{
    width100%;
    height100%;
    transitionall 0.5s ease-in-out;
}
/*-------------images gallery---------*/
/* div>.image-gallery{
 display: flex;
 float: left;

 padding-bottom: 30px;
 
}
@media only screen and (max-width: 900px ){
.image-gallery {
    max-width:  500px;}
}

@media only screen and (max-width: 500px ){
    .image-gallery{
        width:100% !important;
    }
}

.img-items {
    padding-left: 8.5555px !important;
  align-items: center !important;
  position: relative;
  left: 34px;
  }
  @media only screen and (max-width: 400px){
    .img-items {
        width:100% !important;
    }
}


  */
.img-fluid{
    box-shadow0 10px 10px rgba(1618190.61);
}

.img-fluid:hover,.box:hover{
    transform: scale(1);
    filter: blur(0px); opacity1;
    box-shadow0 0 20px rgba(0000.8) ;
}


.img-fluid:hover  {

    transform: scale(0.98);
    box-shadownone;
}
.fa:hover{
    colorblack !important;
    transitionall 0.1s ease-in 0.2s;
}


Output





Comments

Popular posts from this blog

Best ToDo-Application using javascript

To Do Application  What is To Do List? ToDoList is a type of software which is used for managing your productive workflow.It is also called "Getting things done" (GTD), scheduling and collaboration. ToDoList is general-purpose, Windows-based software, which can be used for simple “honey do” home lists or to manage complex multi-user projects for business. In addition to tracking the status of tasks, ToDoList includes a powerful system for logging and reporting time spent on tasks. Combined with powerful reporting mechanisms, this makes ToDoList an effective tool for client billing. About My To Do Application So as you can read the above intro of ToDO-Application, I build this with very easy way and you can also try this for enhance or revise your JavaScript concepts. The code is simple and easy to understand, if you are new to JavaScript and web development then this tutorial is for you.I tried my best to design it for user friendly and keep it simple.Here is some screen sh

Best Ui Dark Calculator using Html,Css and Javascript

   How to Create a  Calculator  Introduction Calculator is one of the basic projects of JavaScript or any other languages a newbie programmer should probably know how to create it.The best thing of this is that the coding is short and easy to understand . It is a basic project that perform arithmetical operations. All you have to do is to create a button for each number, arithmetic operations. symbols and then add a text-box or input-field. Here is the Output of Dark Calculator : Output: Source Code : Index.html: Here is the html coding :) <!DOCTYPE html> <html  lang =" en "> <head> <meta  charset =" UTF-8 "> <meta  name =" viewport "  content =" width=device-width, initial-scale=1.0 "> <title> Dark Calculator </title> <link  rel =" stylesheet "  href =" styel.css "> </head> <body> <div  class =" main "> <div> <input  id =" result &quo