"Sign in Panel"
Bootstrap 3.2.0 Snippet by riko

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.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 ----------> <section id="login"> <section id="login"> <div class="container" style="margin-top:40px"> <div class="row"> <div class="col-sm-6 col-md-4 col-md-offset-4"> <div class="panel panel-default"> <div class="panel-heading"> <strong> Log in to Your Home</strong> </div> <div class="panel-body"> <form role="form" action="javascript:;" method="POST"> <fieldset> <div class="row"> <div class="center-block"> <img class="profile-img" src="https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcSuQcPXpcsHLaE0WsjR7hOOS-0gaGcuW6TPZ8M-P247EMVOHHOZZw.jpg?sz=120" alt=""> </div> </div> <div class="row"> <div class="col-sm-12 col-md-10 col-md-offset-1 "> <div class="form-group"> <div class="input-group"> <span class="input-group-addon"> <i class="glyphicon glyphicon-user"></i> </span> <input class="form-control" placeholder="Username" name="loginname" type="text" autofocus> </div> </div> <div class="form-group"> <div class="input-group"> <span class="input-group-addon"> <i class="glyphicon glyphicon-lock"></i> </span> <input class="form-control" placeholder="Password" name="key" id="key" type="password" value=""> </div> </div> <div class="checkbox"> <span class="character-checkbox" onclick="showPassword()"></span> <span class="label">Show password</span> </div> <div class="form-group"> <input type="submit" class="btn btn-lg btn-primary btn-block" value="Sign in"> </div> </div> <a href="javascript:;" class="forget" data-toggle="modal" data-target=".forget-modal">Forgot your password?</a> </div> </fieldset> </form> </div> <div class="panel-footer "> Don't have an account! <a href="#" onClick=""> Sign Up Here </a> </div> </div> </div> </div> </div>
.panel-heading { padding: 5px 15px; text-align : center; } .panel-footer { padding: 1px 15px; color: #A0A0A0; } .profile-img { width: 96px; height: 96px; margin: 0 auto 10px; display: block; -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; } .form-group { margin-bottom: 25px; } .checkbox { margin-bottom: 20px; position: relative; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } .checkbox.show:before { content: '\e013'; color: #1fa67b; font-size: 17px; margin: 1px 0 0 3px; position: absolute; pointer-events: none; font-family: 'Glyphicons Halflings'; } .checkbox .character-checkbox { width: 25px; height: 25px; cursor: pointer; border-radius: 3px; border: 1px solid #ccc; vertical-align: middle; display: inline-block; } .checkbox .label { color: #6d6d6d; font-size: 13px; font-weight: normal; } .forget { font-size: 13px; text-align: center; display: block; }
function showPassword() { var key_attr = $('#key').attr('type'); if(key_attr != 'text') { $('.checkbox').addClass('show'); $('#key').attr('type', 'text'); } else { $('.checkbox').removeClass('show'); $('#key').attr('type', 'password'); } }

Related: See More

Questions / Comments: