"Beautiful and responsive login form"
Bootstrap 4.1.1 Snippet by test9999

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>BeautyLogin</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> <link href="https://fonts.googleapis.com/css?family=Comfortaa|Lobster&display=swap" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css"> <!--Coded with love by Mutiullah Samim--> </head> <body> <div class="d-flex justify-content-center align-items-center w-100 h-100"> <div class="card beauty_login"> <div class="card-header"> <div class="logo"><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRAHXPluq6GtTRPDIHRv5kJPy86uFjp5sO7hg&usqp=CAU" alt=""></div> <div class="login_text d-flex flex-row justify-content-center align-items-center"> <span></span> <span class="text px-1">LOGIN</span> <span></span> </div> <div class="login_with_text"> Login with your username and password or using your social media </div> </div> <div class="card-body"> <div class="social_login_container flex-column align-items-end"> <div class="fb"> <i class="fab fa-facebook-f"></i> <span>Facebook</span> </div> <div class="google"> <i class="fab fa-google"></i> <span>Google</span> </div> <div class="twitter"> <i class="fab fa-twitter"></i> <span>Twitter</span> </div> <div class="linkedin"> <i class="fab fa-linkedin"></i> <span>LinkedIn</span> </div> </div> <div class="login_container d-flex flex-column"> <form action=""> <label for="username">Username</label> <div class="input-group mb-3"> <div class="input-group-prepend"> <span class="input-group-text"><i class="fas fa-user"></i></span> </div> <input type="text" id="username" name="username" class="form-control" placeholder="username"> </div> <label for="password">Password</label> <div class="input-group mb-2"> <div class="input-group-prepend"> <span class="input-group-text"><i class="fas fa-key"></i></span> </div> <input type="password" id="password" name="password" class="form-control" placeholder="password"> </div> <div class="form-group custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input" id="customControlAutosizing"> <label class="custom-control-label" for="customControlAutosizing">Remember Me</label> </div> <div class="form-group"> <button class="btn btn-primary w-100 login_btn">Login</button> </div> </form> </div> </div> <div class="card-footer d-flex flex-column"> <div class="social_login_container py-2"> <div class="fb"> <i class="fab fa-facebook-f"></i> </div> <div class="google"> <i class="fab fa-google"></i> </div> <div class="twitter"> <i class="fab fa-twitter"></i> </div> <div class="linkedin"> <i class="fab fa-linkedin"></i> </div> </div> <div class="d-flex justify-content-center align-items-center p-3"> Dont have an account? <a href="#" class="ml-2">Click here</a> </div> </div> </div> </div> <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script> </body> </html>
html,body{ height: 100%; width: 100%; } body{ overflow-x: hidden; overflow-y: auto; font-family: 'Comfortaa', cursive; padding: 10% 5%; } .beauty_login{ max-width: 350px; -webkit-box-shadow: 0px 0px 16px -6px rgba(0,0,0,0.55); -moz-box-shadow: 0px 0px 16px -6px rgba(0,0,0,0.55); box-shadow: 0px 0px 16px -6px rgba(0,0,0,0.55); border-radius: 20px !important; border: none !important; } .beauty_login .card-header{ display: flex; flex-direction: column; align-items: center; position: relative; background-image: linear-gradient(to right top, #ff4757, #ff713f, #ff982c, #f5be29, #e0e043) !important; border-top-right-radius: 20px !important; border-top-left-radius: 20px !important; border-bottom: none !important; } .beauty_login .card-header .logo{ height: 150px; width: 150px; padding: 8px; border-radius: 50%; position: absolute; top: -50px; background: #ffffff; } .beauty_login .card-header .logo img{ width: 100%; height: auto; border-radius:50%; } .beauty_login .card-header .login_text{ padding-top: 95px; font-size: 25px; font-weight: bold; width: 100%; color: #ffffff; } .beauty_login .card-header .login_text > span:not(.text){ flex: 1; height: 2px; background: #ffffff; } .beauty_login .card-header .login_with_text{ text-align: center; font-size: 13px; color: #ffffff; } .beauty_login .card-body{ padding:1.25em 1.25em 0 1.25em !important; position: relative; } .beauty_login .card-body .social_login_container{ position: absolute; display: flex; right: 100%; top: 0; height: 100%; } .beauty_login .card-footer .social_login_container{ display: none; flex-direction: row; } .beauty_login .card-body .social_login_container > div{ display: flex; flex-direction: row; justify-content: space-between; align-items: center; font-size:25px; color: #ffffff; padding: 10px; flex:1; width: 45px; position: relative; cursor: pointer; overflow: hidden; -webkit-transition: width .6s ease; -moz-transition: width .6s ease; -o-transition: width .6s ease; transition: width .6s ease; } .beauty_login .card-footer .social_login_container > div{ display: flex; flex-direction: row; justify-content: center; align-items: center; font-size:25px; color: #ffffff; padding: 10px; flex:1; cursor: pointer; overflow: hidden; } .beauty_login .card-body .social_login_container > div > span{ position: absolute; left: 100%; font-size: 15px; -webkit-transition: left .4s ease; -moz-transition: left .4s ease; -o-transition: left .4s ease; transition: left .4s ease; } .beauty_login .card-body .social_login_container > div.is_open{ width: 130px; } .beauty_login .card-body .social_login_container > div.is_open > span { left: 45px; } .beauty_login .social_login_container > div.fb{ background: #1877f2; } .beauty_login .social_login_container > div.google{ background: #ea4335; } .beauty_login .social_login_container > div.twitter{ background: #1da1f2; } .beauty_login .social_login_container > div.linkedin{ background: #007bb5; } .beauty_login .card-footer{ background: transparent !important; border-top: none !important; padding: 0 !important; } .beauty_login .card-body .login_container .login_btn{ background-image: linear-gradient(to right top, #ff4757, #ff713f, #ff982c, #f5be29, #e0e043) !important; outline: 0 !important; border: 0 !important; box-shadow:none !important; } .beauty_login .card-body .login_container .login_btn:focus{ outline: 0 !important; border: 0 !important; box-shadow:none !important; } .beauty_login .card-body .login_container .custom-control-input:checked~.custom-control-label::before{ border-color: #f5be29 !important; box-shadow: none !important; background-image: linear-gradient(to right top, #ff4757, #ff713f, #ff982c, #f5be29, #e0e043) !important; } .beauty_login .card-body .login_container .input-group .input-group-text{ background-image: linear-gradient(to right top, #ff4757, #ff713f, #ff982c, #f5be29, #e0e043) !important; color: #ffffff; } .beauty_login .card-body .login_container .form-control{ outline: none !important; box-shadow: none !important; } .beauty_login .card-body .login_container .form-control:focus{ outline: none !important; box-shadow: none !important; border-color: #f5be29 !important; } @media screen and (max-width:620px){ .beauty_login .card-body .social_login_container{ display: none; } .beauty_login .card-footer .social_login_container{ display: flex; } }
$( ".beauty_login .card-body .social_login_container > div" ).hover( function() { $( this ).addClass('is_open'); }, function() { $( this ).removeClass('is_open'); } );

Related: See More


Questions / Comments: