"Clean Modal Login Form with register"
Bootstrap 3.3.0 Snippet by iala

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <?php $bg = array('bg-01.jpg', 'bg-02.jpg', 'bg-03.jpg', 'bg-04.jpg', 'bg-05.jpg', 'bg-06.jpg', 'bg-07.jpg' ); // array of filenames $i = rand(0, count($bg)-1); // generate random number size of the array $selectedBg = "$bg[$i]"; // set variable equal to which random filename was chosen ?> <a href="#" data-toggle="modal" data-target="#login-modal">Login</a> <div class="modal fade" id="login-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;"> <div class="modal-dialog"> <div class="title"> <p>Site name</p> </div> <div class="loginmodal-container"> <div class="logo"> <img src="https://download.qnap.com/Origin/i/images/q_logo.jpg" height="120px" width:"120px"> </div> <form> <input type="text" name="user" placeholder="Usuario"> <input type="password" name="pass" placeholder="Contraseña"> <input type="submit" name="login" class="login loginmodal-submit" value="INICIAR SESIÓN"> </form> <div class="login-help"> <a href="#">Olvidé mi contraseña</a> </div> <div> <div class="register-title"> ¿No tienes cuenta? </div> <input type="submit" name="login" class="login registermodal-submit" value="REGÍSTRATE AHORA GRATIS"> </div> </div> </div> <div class="social-networks"> © company™ 2015-2016 - All rights reserved<br/> Social networks icons </div> </div>
@import url(http://fonts.googleapis.com/css?family=Roboto); @import url(http://fonts.googleapis.com/css?family=Ubuntu); body { background: url(images/<?php echo $selectedBg; ?>) no-repeat; background: #808080 url("http://www.planwallpaper.com/static/images/518164-backgrounds.jpg") no-repeat fixed center; } .title { font-family: ubuntu; margin-top: 40px; margin-bottom: 20px; text-align: center; margin-rigth: auto; margin-left: auto; font-size: 28px; } /****** LOGIN MODAL ******/ .loginmodal-container { padding: 30px; padding-top: 115px; max-width: 450px; width: 100% !important; background-color: #ffffff; margin: 0 auto; border-radius: 0px; box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); overflow: hidden; font-family: roboto; margin-top: 80px; } .loginmodal-container h1 { text-align: center; font-size: 1.8em; font-family: roboto; } .loginmodal-container input[type=submit] { width: 100%; display: block; margin-bottom: 10px; position: relative; } .loginmodal-container input[type=text], input[type=password] { height: 44px; font-size: 16px; width: 100%; margin-bottom: 10px; -webkit-appearance: none; background: #fff; border: 1px solid #d9d9d9; border-top: 1px solid #c0c0c0; /* border-radius: 2px; */ padding: 0 8px; box-sizing: border-box; -moz-box-sizing: border-box; } .loginmodal-container input[type=text]:hover, input[type=password]:hover { border: 1px solid #b9b9b9; border-top: 1px solid #a0a0a0; -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); } .loginmodal { text-align: center; font-size: 14px; font-family: 'Arial', sans-serif; font-weight: 700; height: 36px; padding: 0 8px; /* border-radius: 3px; */ /* -webkit-user-select: none; user-select: none; */ } .logo { position: absolute; margin-top: -175px; display: block; margin-left: auto%; margin-right: auto; } .loginmodal-submit { /* border: 1px solid #3079ed; */ border: 0px; color: #fff; text-shadow: 0 1px rgba(0,0,0,0.1); background-color: #2196F3; padding: 17px 0px; font-family: roboto; font-size: 17px; /* background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#4787ed)); */ } .loginmodal-submit:hover { /* border: 1px solid #2f5bb7; */ border: 0px; text-shadow: 0 1px rgba(0,0,0,0.3); background-color: #1976D2; /* background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#357ae8)); */ } .registermodal-submit { /* border: 1px solid #3079ed; */ border: 0px; color: #fff; text-shadow: 0 1px rgba(0,0,0,0.1); background-color: #30e536; padding: 17px 0px; font-family: roboto; font-size: 17px; /* background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#4787ed)); */ } .registermodal-submit:hover { /* border: 1px solid #2f5bb7; */ border: 0px; text-shadow: 0 1px rgba(0,0,0,0.3); background-color: #4caf50; /* background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#357ae8)); */ } .loginmodal-container a { text-decoration: none; color: #666; font-weight: 400; text-align: center; display: inline-block; opacity: 0.6; transition: opacity ease 0.5s; } .login-help{ font-size: 12px; margin-bottom: 20px; text-align: right; color: #03A9F4; font-family: roboto; } .register-title{ font-size: 15px; margin-bottom: 5px; text-align: center; color: #000000; font-weight: bold; font-family: roboto; } .social-networks { overflow: hidden; font-family: roboto; margin: 0 auto; margin-top: 39px; text-align: center; }

Related: See More


Questions / Comments: