Tutorials

Instagram Login Page HTML and CSS Code Download

The official Instagram login page is designed using HTML and CSS. In this tutorial, I’ll provide you complete source code of the Instagram login page.


Images Used on Instagram Login Page

Download these images by clicking the links given below. After downloading, place all these images inside the root directory of your project.


index.html

<!DOCTYPE html>
<html lang="en">
<head>
 <meta charset="UTF-8">
 <title>Instagram Login Page</title>
 <link rel="stylesheet" href="style.css">
</head>
<body>

<div class="wrapper">
 <div class="header">
  <div class="top">
   <div class="logo">
    <img src="instagram.png" alt="instagram" style="width: 175px;">
   </div>
   <div class="form">
    <div class="input_field">
     <input type="text" placeholder="Phone number, username, or email" class="input">
    </div>
    <div class="input_field">
     <input type="password" placeholder="Password" class="input">
    </div>
    <div class="btn"><a href="#">Log In</a></div>
   </div>
   <div class="or">
    <div class="line"></div>
    <p>OR</p>
    <div class="line"></div>
   </div>
   <div class="dif">
    <div class="fb">
     <img src="facebook.png" alt="facebook">
     <p>Log in with Facebook</p>
    </div>
    <div class="forgot">
     <a href="#">Forgot password?</a>
    </div>
   </div>
  </div>
  <div class="signup">
   <p>Don't have an account? <a href="#">Sign up</a></p>
  </div>
  <div class="apps">
   <p>Get the app.</p>
   <div class="icons">
    <a href="#"><img src="appstore.png" alt="appstore"></a>
    <a href="#"><img src="googleplay.png" alt="googleplay"></a>
   </div>
  </div>
 </div>
 <div class="footer">
  <div class="links">
   <ul>
    <li><a href="#">ABOUT US</a></li>
    <li><a href="#">SUPPORT</a></li>
    <li><a href="#">PRESS</a></li>
    <li><a href="#">API</a></li>
    <li><a href="#">JOBS</a></li>
    <li><a href="#">PRIVACY</a></li>
    <li><a href="#">TERMS</a></li>
    <li><a href="#">DIRECTORY</a></li>
    <li><a href="#">PROFILES</a></li>
    <li><a href="#">HASHTAGS</a></li>
    <li><a href="#">LANGUAGE</a></li>
   </ul>
  </div>
  <div class="copyright">
   © 2022 INSTAGRAM
  </div>
 </div>
</div>

</body>
</html>

style.css

@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');

*{
 margin: 0;
 padding: 0;
 box-sizing: border-box;
 outline: none;
 list-style: none;
 text-decoration: none;
 font-family: 'Roboto', sans-serif;
}

body{
 background: #fafafa;
 font-size: 14px;
}

.wrapper .header{
 max-width: 350px;
 width: 100%;
 height: auto;
 margin: 50px auto;
}

.wrapper .header .top,
.wrapper .signup{
 background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 1px;
    padding: 40px 40px 20px;
}

.wrapper .header .logo img{
 display: block;
 margin: 0 auto 35px;
}

.wrapper .header .form .input_field{
 margin-bottom: 5px;
}

.wrapper .header .form .input_field .input{
 width: 100%;
 background: #fafafa;
 border: 1px solid #efefef;
 font-size: 12px;
 border-radius: 3px;
 color: #262626;
 padding: 10px;
}

.wrapper .header .form .input_field .input:focus{
 border: 1px solid #b2b2b2;
}

.wrapper .header .form .btn{
 margin: 10px 0;
 background-color: #3897f0;
    border: 1px solid #3897f0;
    border-radius: 4px;
    text-align: center;
    padding: 5px;
}

.wrapper .header .form .btn a{
 color: #fff;
 display: block;
}

.wrapper .header .or{
 display: flex;
 justify-content: space-between;
 align-items: center;
 height: 15px;
 margin: 15px 0 20px;
}

.wrapper .header .or .line{
 width: 105px;
 height: 2px;
 background: #efefef
}

.wrapper .header .or p{
 color: #999;
 font-size: 12px;
}

.wrapper .dif .fb{
 display: flex;
 justify-content: center;
 align-items: center;
}

.wrapper .dif .fb img{
 width: 16px;
 height: 16px;
}

.wrapper .dif  .fb p{
 color: #385185;
 font-weight: 500;
 margin-left: 10px;
}

.wrapper .dif .forgot{
 font-size: 12px;
 text-align: center;
 margin-top: 20px;
}

.wrapper .dif .forgot a{
 color: #003569;
}

.wrapper .signup{
 margin: 10px 0 20px;
 padding: 25px 40px;
 text-align: center;
 color: #262626;
}

.wrapper .signup a{
 color: #3897f0;
}

.wrapper .apps{
 text-align: center;
 color: #262626;
}

.wrapper .apps p{
 margin-bottom: 20px;
}

.wrapper .apps a img{
 width: 135px;
 height: 40px;
 margin: 0 5px;
}

.footer{
 max-width: 935px;
 width: 100%;
 margin: 0 auto;
 padding: 40px 0;
 display: flex;
 justify-content: space-between;
}

.footer .links ul li{
 display: inline-block;
 margin-right: 10px;
}

.footer .links ul li a{
 color: #003569;
 font-size: 12px;
}

.footer .copyright{
 color: #999; 
}
Furqan

Well. I've been working for the past three years as a web designer and developer. I have successfully created websites for small to medium sized companies as part of my freelance career. During that time I've also completed my bachelor's in Information Technology.

Recent Posts

MiniMax-M1 vs GPT-4o vs Claude 3 Opus vs LLaMA 3 Benchmarks

MiniMax-M1 is a new open-weight large language model (456 B parameters, ~46 B active) built with hybrid…

June 22, 2025

How to Use Husky with npm to Manage Git Hooks

Managing Git hooks manually can quickly become tedious and error-prone—especially in fast-moving JavaScript or Node.js…

June 22, 2025

How to Use Lefthook with npm to Manage Git Hooks

Git hooks help teams enforce code quality by automating checks at key stages like commits…

June 22, 2025

Lefthook vs Husky: Which Git Hooks Tool is Better? [2025]

Choosing the right Git hooks manager directly impacts code quality, developer experience, and CI/CD performance.…

June 22, 2025

Llama 3.1 vs GPT-4 Benchmarks

We evaluated the performance of Llama 3.1 vs GPT-4 models on over 150 benchmark datasets…

July 24, 2024

Transforming Manufacturing with Industrial IoT Solutions and Machine Learning

The manufacturing industry is undergoing a significant transformation with the advent of Industrial IoT Solutions.…

July 6, 2024