"Simple basic login page with logo"
Bootstrap 4.1.1 Snippet by Zarwax

<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="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html lang="fr"> <!--Timothy Cuenat--> <!--21.03.2020--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Login page</title> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous"> <link rel="stylesheet" href="css/bootstrap.css"> <link rel="stylesheet" href="css/screen.css"> <!-- <link rel="shortcut icon" href="pictures/favicon.ico" type="image/x-icon"> --> </head> <body> <div class="container h-100"> <div class="d-flex justify-content-center h-100"> <div class="user_card"> <div class="d-flex justify-content-center"> <h1>LOGIN</h1> </div> <div class="d-flex justify-content-center form_container"> <form> <div class="input-group mb-3"> <div class="input-group-append"> <span class="input-group-text logo"><i class="fas fa-user"></i></span> </div> <input type="text" name="" class="form-control input_user" value="" placeholder="username" spellcheck="false"> </div> <div class="input-group mb-2"> <div class="input-group-append"> <span class="input-group-text logo"><i class="fas fa-key"></i></span> </div> <input type="password" name="" class="form-control input_pass" value="" placeholder="password" spellcheck="false"> </div> <div class="d-flex justify-content-center mt-3 login_container"> <button type="button" name="button" class="btn login_btn">Login</button> </div> </form> </div> <div class="mt-4 groupe-liens"> <div class="d-flex justify-content-center links"> Don't have an account? <a href="#" class="ml-2 liens">Sign Up</a> </div> <div class="d-flex justify-content-center links"> <a href="#" class="liens">Forgot your password?</a> </div> </div> </div> </div> </div> </body> </html>
* { font-family: Arial, Verdana, sans-serif; margin: 0px; padding: 0px; text-decoration: none; list-style: none; -webkit-tap-highlight-color: transparent; } *::selection { background-color: #2b71c05b; } body, html { margin: 0; padding: 0; height: 100%; background: #353535 !important; overflow-x: hidden; min-height: 100%; user-select: none; } .user_card { height: 400px; width: 350px; margin-top: auto; margin-bottom: auto; background: #a1a1a1; position: relative; display: flex; justify-content: center; flex-direction: column; padding: 10px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); -moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); border-radius: 5px; } /* */ .brand_logo { height: 150px; width: 150px; border-radius: 50%; border: 2px solid white; } .form_container { margin-top: 30px; } h1 { font-weight: bold; font-size: 43px; } .logo { width: 40px; } .login_btn { width: 100%; background: #2b71c0 !important; color: white !important; } .login_btn:hover { background: #2b71c0 !important; color: white !important; box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); -webkit-box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); -moz-box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); } .login_btn:active { width: 100%; background: #353535 !important; color: white !important; } .login_btn:focus { box-shadow: none !important; outline: 0px !important; } .input-group-text { background: #2b71c0 !important; color: white !important; border: 0 !important; border-radius: 0.25rem 0 0 0.25rem !important; } .input_user, .input_pass:focus { box-shadow: none !important; outline: 0px !important; } .custom-checkbox .custom-control-input:checked~.custom-control-label::before { background-color: #2b71c0 !important; } .groupe-liens { margin-top: 15px; } .liens { color: #2865aa; } .liens:hover { color: #353535; }

Related: See More


Questions / Comments: