Академический Документы
Профессиональный Документы
Культура Документы
http://itechnode.com/20-disenos-de-formularios-con-css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
==============================================
==== -->
<meta charset="utf-8">
<title>Flat Login</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Mobile Specific Metas
==============================================
==== -->
<meta name="viewport" content="width=device-width, initialscale=1, maximum-scale=1">
<!-- CSS
==============================================
==== -->
<!--[if lt IE 9]>
<script
src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script
>
<![endif]-->
</head>
<body>
<div class="container">
<div class="flat-form">
<ul class="tabs">
<li>
<a href="#login" class="active">Login</a>
</li>
<li>
<a href="#register">Register</a>
</li>
<li>
<a href="#reset">Reset Password</a>
</li>
</ul>
<div id="login" class="form-action show">
<h1>Login on webapp</h1>
<p>
Morbi leo risus, porta ac consectetur ac, vestibulum at
eros.
Maecenas sed diam eget risus varius bladit sit amet
non
</p>
<form>
<ul>
<li>
<input type="text" placeholder="Username" />
</li>
<li>
<input type="password"
placeholder="Password" />
</li>
<li>
<!--/#register.form-action-->
<div id="reset" class="form-action hide">
<h1>Reset Password</h1>
<p>
To reset your password enter your email and your
birthday
and we'll send you a link to reset your password.
</p>
<form>
<ul>
<li>
<input type="text" placeholder="Email" />
</li>
<li>
<input type="text" placeholder="Birthday" />
</li>
<li>
<input type="submit" value="Send"
class="button" />
</li>
</ul>
</form>
</div>
<!--/#register.form-action-->
</div>
</div>
<script class="cssdeck"
src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.0/jquery.min.js"></s
cript>
</body>
</html>
CSS
@import url(http://fonts.googleapis.com/css?family=Roboto:100);
@import url(http://cdnjs.cloudflare.com/ajax/libs/meyerreset/2.0/reset.css);
body {
background: #1a1a1a;
color: white;
font-family: 'Roboto';
}
.flat-form {
background: #e74c3c;
margin: 25px auto;
width: 390px;
height: 340px;
position: relative;
font-family: 'Roboto';
}
.tabs {
background: #c0392b;
height: 40px;
margin: 0;
padding: 0;
list-style-type: none;
width: 100%;
position: relative;
display: block;
margin-bottom: 20px;
}
.tabs li {
display: block;
float: left;
margin: 0;
padding: 0;
}
.tabs a {
background: #c0392b;
display: block;
float: left;
text-decoration: none;
color: white;
font-size: 16px;
padding: 12px 22px 12px 22px;
/*border-right: 1px solid @tab-border;*/
}
.tabs li:last-child a {
border-right: none;
width: 174px;
padding-left: 0;
padding-right: 0;
text-align: center;
}
.tabs a.active {
background: #e74c3c;
border-right: none;
-webkit-transition: all 0.5s linear;
-moz-transition: all 0.5s linear;
transition: all 0.5s linear;
}
.form-action {
padding: 0 20px;
position: relative;
}
.form-action h1 {
font-size: 42px;
padding-bottom: 10px;
}
.form-action p {
font-size: 12px;
padding-bottom: 10px;
line-height: 25px;
}
form {
padding-right: 20px !important;
}
form input[type=text],
form input[type=password],
form input[type=submit] {
font-family: 'Roboto';
}
form input[type=text],
form input[type=password] {
width: 100%;
height: 40px;
margin-bottom: 10px;
padding-left: 15px;
background: #fff;
border: none;
color: #e74c3c;
outline: none;
}
.dark-box {
background: #5e0400;
box-shadow: 1px 3px 3px #3d0100 inset;
height: 40px;
width: 50px;
}
.form-action .dark-box.bottom {
position: absolute;
right: 0;
bottom: -24px;
}
.tabs + .dark-box.top {
position: absolute;
right: 0;
top: 0px;
}
.show {
display: block;
}
.hide {
display: none;
}
.button {
border: none;
display: block;
background: #136899;
height: 40px;
width: 80px;
color: #ffffff;
text-align: center;
border-radius: 5px;
/*box-shadow: 0px 3px 1px #2075aa;*/
-webkit-transition: all 0.15s linear;
-moz-transition: all 0.15s linear;
transition: all 0.15s linear;
}
.button:hover {
background: #1e75aa;
/*box-shadow: 0 3px 1px #237bb2;*/
}
.button:active {
background: #136899;
/*box-shadow: 0 3px 1px #0f608c;*/
}
::-webkit-input-placeholder {
color: #e74c3c;
}
:-moz-placeholder {
/* Firefox 18- */
color: #e74c3c;
}
::-moz-placeholder {
/* Firefox 19+ */
color: #e74c3c;
}
:-ms-input-placeholder {
color: #e74c3c;
}
JAVASCRIPT
(function( $ ) {
// constants
var SHOW_CLASS = 'show',
HIDE_CLASS = 'hide',
ACTIVE_CLASS = 'active';
$( '.tabs' ).on( 'click', 'li a', function(e){
e.preventDefault();
var $tab = $( this ),
href = $tab.attr( 'href' );
$( '.active' ).removeClass( ACTIVE_CLASS );
$tab.addClass( ACTIVE_CLASS );
$( '.show' )
.removeClass( SHOW_CLASS )
.addClass( HIDE_CLASS )
.hide();
$(href)
.removeClass( HIDE_CLASS )
.addClass( SHOW_CLASS )
.hide()
.fadeIn( 550 );
});
})( jQuery );
http://cssdeck.com/labs/flat-ui-login-form
HTML5/CSS3
HTML
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="ie6 ielt8"> <![endif]-->
<!--[if IE 7 ]>
<!--[if IE 8 ]>
CSS
/* Reset CSS */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body {
background: #DCDDDF
url(http://cssdeck.com/uploads/media/items/7/7AF2Qzt.png);
color: #000;
font: 14px Arial;
margin: 0 auto;
padding: 0;
position: relative;
}
h1{ font-size:28px;}
h2{ font-size:26px;}
h3{ font-size:18px;}
h4{ font-size:16px;}
h5{ font-size:14px;}
h6{ font-size:12px;}
h1,h2,h3,h4,h5,h6{ color:#563D64;}
small{ font-size:10px;}
b, strong{ font-weight:bold;}
a{ text-decoration: none; }
a:hover{ text-decoration: underline; }
.left { float:left; }
.right { float:right; }
.alignleft { float: left; margin-right: 15px; }
.alignright { float: right; margin-left: 15px; }
.clearfix:after,
form:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.container { margin: 25px auto; position: relative; width: 900px; }
#content {
background: #f9f9f9;
background: -moz-linear-gradient(top, rgba(248,248,248,1)
0%, rgba(249,249,249,1) 100%);
background: -webkit-linear-gradient(top,
rgba(248,248,248,1) 0%,rgba(249,249,249,1) 100%);
background: -o-linear-gradient(top, rgba(248,248,248,1)
0%,rgba(249,249,249,1) 100%);
background: -ms-linear-gradient(top, rgba(248,248,248,1)
0%,rgba(249,249,249,1) 100%);
background: linear-gradient(top, rgba(248,248,248,1)
0%,rgba(249,249,249,1) 100%);
filter:
progid:DXImageTransform.Microsoft.gradient( startColorstr='#f8f8f
8', endColorstr='#f9f9f9',GradientType=0 );
-webkit-box-shadow: 0 1px 0 #fff inset;
-moz-box-shadow: 0 1px 0 #fff inset;
-ms-box-shadow: 0 1px 0 #fff inset;
-o-box-shadow: 0 1px 0 #fff inset;
box-shadow: 0 1px 0 #fff inset;
border: 1px solid #c4c6ca;
margin: 0 auto;
padding: 25px 0 0;
position: relative;
text-align: center;
text-shadow: 0 1px 0 #fff;
width: 400px;
}
#content h1 {
color: #7E7E7E;
font: bold 25px Helvetica, Arial, sans-serif;
letter-spacing: -0.05em;
line-height: 20px;
margin: 10px 0 30px;
}
#content h1:before,
#content h1:after {
content: "";
height: 1px;
position: absolute;
top: 10px;
width: 27%;
}
#content h1:after {
background: rgb(126,126,126);
background: -moz-linear-gradient(left, rgba(126,126,126,1)
0%, rgba(255,255,255,1) 100%);
background: -webkit-linear-gradient(left,
rgba(126,126,126,1) 0%,rgba(255,255,255,1) 100%);
background: -o-linear-gradient(left, rgba(126,126,126,1)
0%,rgba(255,255,255,1) 100%);
background: -ms-linear-gradient(left, rgba(126,126,126,1)
0%,rgba(255,255,255,1) 100%);
background: linear-gradient(left, rgba(126,126,126,1)
0%,rgba(255,255,255,1) 100%);
right: 0;
}
#content h1:before {
background: rgb(126,126,126);
background: -moz-linear-gradient(right, rgba(126,126,126,1)
0%, rgba(255,255,255,1) 100%);
background: -webkit-linear-gradient(right,
rgba(126,126,126,1) 0%,rgba(255,255,255,1) 100%);
background: -o-linear-gradient(right, rgba(126,126,126,1)
0%,rgba(255,255,255,1) 100%);
background: -ms-linear-gradient(right, rgba(126,126,126,1)
0%,rgba(255,255,255,1) 100%);
background: linear-gradient(right, rgba(126,126,126,1)
0%,rgba(255,255,255,1) 100%);
left: 0;
}
#content:after,
#content:before {
background: #f9f9f9;
background: -moz-linear-gradient(top, rgba(248,248,248,1)
0%, rgba(249,249,249,1) 100%);
background: -webkit-linear-gradient(top,
rgba(248,248,248,1) 0%,rgba(249,249,249,1) 100%);
background: -o-linear-gradient(top, rgba(248,248,248,1)
0%,rgba(249,249,249,1) 100%);
background: -ms-linear-gradient(top, rgba(248,248,248,1)
0%,rgba(249,249,249,1) 100%);
background: linear-gradient(top, rgba(248,248,248,1)
0%,rgba(249,249,249,1) 100%);
filter:
progid:DXImageTransform.Microsoft.gradient( startColorstr='#f8f8f
8', endColorstr='#f9f9f9',GradientType=0 );
border: 1px solid #c4c6ca;
content: "";
display: block;
height: 100%;
left: -1px;
position: absolute;
width: 100%;
}
#content:after {
-webkit-transform: rotate(2deg);
-moz-transform: rotate(2deg);
-ms-transform: rotate(2deg);
-o-transform: rotate(2deg);
transform: rotate(2deg);
top: 0;
z-index: -1;
}
#content:before {
-webkit-transform: rotate(-3deg);
-moz-transform: rotate(-3deg);
-ms-transform: rotate(-3deg);
-o-transform: rotate(-3deg);
transform: rotate(-3deg);
top: 0;
z-index: -2;
}
#content form { margin: 0 20px; position: relative }
#content form input[type="text"],
#content form input[type="password"] {
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-ms-border-radius: 3px;
-o-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0 1px 0 #fff, 0 -2px 5px rgba(0,0,0,0.08)
inset;
-moz-box-shadow: 0 1px 0 #fff, 0 -2px 5px rgba(0,0,0,0.08)
inset;
-ms-box-shadow: 0 1px 0 #fff, 0 -2px 5px rgba(0,0,0,0.08)
inset;
-o-box-shadow: 0 1px 0 #fff, 0 -2px 5px rgba(0,0,0,0.08) inset;
box-shadow: 0 1px 0 #fff, 0 -2px 5px rgba(0,0,0,0.08) inset;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
background: #eae7e7
url(http://cssdeck.com/uploads/media/items/8/8bcLQqF.png) norepeat;
border: 1px solid #c8c8c8;
color: #777;
font: 13px Helvetica, Arial, sans-serif;
margin: 0 0 10px;
padding: 15px 10px 15px 40px;
width: 80%;
}
#content form input[type="text"]:focus,
#content form input[type="password"]:focus {
-webkit-box-shadow: 0 0 2px #ed1c24 inset;
-moz-box-shadow: 0 0 2px #ed1c24 inset;
color: #004a80;
float: right;
font-size: 12px;
margin: 30px 15px 0 0;
text-decoration: underline;
}
.button {
background: rgb(247,249,250);
background: -moz-linear-gradient(top, rgba(247,249,250,1)
0%, rgba(240,240,240,1) 100%);
background: -webkit-linear-gradient(top,
rgba(247,249,250,1) 0%,rgba(240,240,240,1) 100%);
background: -o-linear-gradient(top, rgba(247,249,250,1)
0%,rgba(240,240,240,1) 100%);
background: -ms-linear-gradient(top, rgba(247,249,250,1)
0%,rgba(240,240,240,1) 100%);
background: linear-gradient(top, rgba(247,249,250,1)
0%,rgba(240,240,240,1) 100%);
filter:
progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7f9f
a', endColorstr='#f0f0f0',GradientType=0 );
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;
-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;
-ms-box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;
-o-box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;
box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;
-webkit-border-radius: 0 0 5px 5px;
-moz-border-radius: 0 0 5px 5px;
-o-border-radius: 0 0 5px 5px;
-ms-border-radius: 0 0 5px 5px;
border-radius: 0 0 5px 5px;
http://cssdeck.com/labs/login-form-using-html5-and-css3
HTML
<form id="form" name="form" action="#" method="post">
<div id="block">
<label id="user" for="name">p</label>
<input type="text" name="name" id="name"
placeholder="Username" required/>
<label id="pass" for="password">k</label>
<input type="password" name="password"
id="password" placeholder="Password" required />
<input type="submit" id="submit" name="submit"
value="a"/>
</div>
</form>
<div id="option">
<p>Sign in</p>
<a href="#">forgot?</a>
</div>
CSS
@import url('http://fonts.googleapis.com/css?family=Open+Sans');
@font-face{
src:url("http://dl.dropbox.com/u/94346812/cssdeck/fonts/pictosregular-webfont.ttf") format("truetype"),
url("http://dl.dropbox.com/u/94346812/cssdeck/fonts/pictosregular-webfont.otf") format("opentype"),
url("http://dl.dropbox.com/u/94346812/cssdeck/fonts/pictosregular-webfont.svg") format("svg");
font-family:icon;
}
body{
background:#292931;
font-family:'Open Sans';
}
label{
font-family:icon;
text-shadow:0 -1px 0 #666;
-webkit-font-smoothing: antialiased;
}
#block,#option{
width:230px;
height:113px;
margin:auto;
}
#block{
background:#423143;
margin-top:100px;
}
#block:before{
content:'';
display:block;
width:230px;
height:3px;
/* The rainbow*/
background:linear-gradient(left, rgba(173,107,173,1) 0%,
rgba(173,107,173,1) 1%, rgba(181,121,168,1) 1%,
}
#block:after{
content:'';
display:block;
width:15px;
height:15px;
background:#423143;
transform:rotate(-45deg);
margin:10px 18px;
position:absolute;
}
#block label, #submit{
position:absolute;
width:33px;
height:34px;
background:#dedede;
margin:15px;
text-align:center;
line-height:2.2;
color:#857487;
border-top-left-radius:2px;
border-bottom-left-radius:2px;
}
#block label#pass{
position:absolute;
width:33px;
height:34px;
background:#dedede;
margin:-5px 15px;
}
#submit{
border:0;
margin:-29px 180px;
border-top-left-radius:0px;
border-bottom-left-radius:0px;
border-top-right-radius:2px;
border-bottom-right-radius:2px;
font-family:icon;
background:#ae6cac;
text-shadow:0 -1px 0 #333;
box-shadow:-1px 0 1px 0px #6c5b6d;
font-size:12px;
line-height:2.8;
padding:0;
}
#submit:hover{
color:#fff;
}
#user, #pass{
box-shadow:0.1px 0 2px #6c5B6d;
}
#block input[type=text],#block input[type=password], #option p {
font-family:'Open Sans';
font-weight:300;
-webkit-font-smoothing: antialiased;
}
#block input[type=text],#block input[type=password]{
width:156px;
height:32px;
margin:15px 15px;
border:0;
border-radius:2px;
outline:0;
display:block;
font-size:18px;
}
#block input[type=password]{
width:156px;
height:32px;
margin:-5px 15px;
}
#submit{
color:#fff;font-size:8px;font-weight:bold;
}
#option{
width:230px;
height:80px;
overflow:hidden;
margin:auto;
}
#option p{
color:#6c5B6d;
font-size:24px;
text-transform:uppercase;
padding:0px 18px;
margin-top:15px;
display:block;
float:left;
-webkit-font-smoothing: antialiased;
/*text-shadow:0 -1px 0 #000;*/
}
#option a{
-webkit-font-smoothing: antialiased;
color:#6c5B6d;
/*text-shadow:0 -1px 0 #000;*/
font-size:12px;
display:block;
float:right;
margin:26px 15px;
}
input{padding-left:40px;}
#block:active > #block:before{
background-position:100px 100px;
}
/* placeholder */
::-webkit-input-placeholder {
-webkit-font-smoothing: antialiased;
color:#999;
font-size:16px;
}
:-moz-input-placeholder {
color:#999;
font-size:16px;
}
oninvalid="setCustomValidity('Custom Message')"
*/
/*
input::-webkit-validation-bubble-message {
color:white;
background: #e62163;
border:0;
border-radius:0;
padding:0;
width:55px;
height:34px;
position:absolute;
float:left;
margin:-33px 208px;
text-align:center;
line-height:2.7em;
box-shadow:0 0 0;
}
input::-webkit-validation-bubble-message:before {
content:"X";
display:block;
font-family:icon;
color:white;
background: #e62163;
border:0;
border-radius:0;
padding:0;
width:34px;
height:34px;
position:absolute;
float:left;
margin:0px -208px;
text-align:center;
line-height:2.7em;
color: #fff;
border-top-left-radius:2px;
border-bottom-left-radius:2px;
-webkit-font-smoothing: antialiased;
}
input::-webkit-validation-bubble-icon {
display: none;
}
input::-webkit-validation-bubble-arrow {
background: #e62163;
border:0;
width:10px;
height:10px;
position:absolute;
margin:-23px 178px;
}*/
http://cssdeck.com/labs/minimal-style-login-form
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Al3xis</title>
<!--[if lt IE 9]>
<script
src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script
>
<![endif]-->
</head>
<body>
<div id="main">
</form>
</div>
<footer>
</body>
</html>
CSS
/*------------------------Simple reset
--------------------------*/
*{
margin:0;
padding:0;
}
/*------------------------General Styles
--------------------------*/
html{
background:url('http://i34.tinypic.com/m922bk.jpg') repeat
center top #826e79;
}
body{
font:14px/1.3 'Segoe UI', 'Arial', sans-serif;
}
a, a:visited {
outline:none;
color:#1c4f64;
}
a:hover{
text-decoration:none;
}
/*---------------------------The Header
-----------------------------*/
h1{
font:bold 36px Cambria, "Hoefler Text",serif;
margin-bottom:50px;
color:#71564b;
text-shadow:1px 1px 0 rgba(255,255,255,0.4);
}
/*---------------------------The Form
-----------------------------*/
#main{
width:440px;
margin:80px auto 120px;
position:relative;
text-align:center;
}
#main form{
width:440px;
height:450px;
background:url('http://i33.tinypic.com/24eng8x.png') norepeat;
padding-top: 50px;
}
position:absolute;
right: 60px;
top: 8px;
width:32px;
height:32px;
background:url('http://i38.tinypic.com/33c4s9c.png') norepeat;
}
border:none;
background:url('http://i34.tinypic.com/2qm0ndc.png') norepeat top left;
font:14px 'Segoe UI','Arial',sans-serif;
color:#888;
outline:none;
height: 48px;
margin: 0 auto 22px;
padding: 0 10px 0 50px;
width: 278px;
}
background-color:#0496DA;
background-color:#0383d3;
background-color:#026fcb;
/*---------------------------The Arrow
-----------------------------*/
-moz-transition:0.3s;
-webkit-transition:0.3s;
-o-transition:0.3s;
-ms-transition:0.3s;
transition:0.3s;
-moz-transform: rotate(-134deg);
-webkit-transform: rotate(-134deg);
-o-transform: rotate(-134deg);
-ms-transform: rotate(-134deg);
transform: rotate(-134deg);
}
/*---------------------------The Footer
-----------------------------*/
footer{
font:14px/1.3 'Segoe UI',Arial, sans-serif;
background-color: #111111;
bottom: 0;
box-shadow: 0 -1px 2px rgba(0,0,0,0.4);
height: 45px;
left: 0;
position: fixed;
width: 100%;
z-index: 100000;
}
footer h2{
color: #EEEEEE;
font-size: 14px;
font-weight: normal;
left: 50%;
margin-left: -400px;
padding: 13px 0 0;
position: absolute;
width: 540px;
}
footer h2 i{
font-style:normal;
color:#888;
}
footer a.al3xis,a.al3xis:visited{
color: #999999;
font-size: 12px;
left: 50%;
margin: 16px 0 0 110px;
position: absolute;
text-decoration: none;
top: 0;
}
footer a i{
color:#ccc;
font-style: normal;
}
footer a i b{
color:#c92020;
font-weight: normal;
}
JAVASCRIPT
$(function(){
// Yes!
}
else{
}
});
});
pass1.complexify({minimumChars:6,
strengthScaleFactor:0.7}, function(valid, complexity){
if(valid){
pass2.removeAttr('disabled');
pass1.parent()
.removeClass('error')
.addClass('success');
}
else{
pass2.attr('disabled','true');
pass1.parent()
.removeClass('success')
.addClass('error');
}
});
pass2.parent()
.removeClass('error')
.addClass('success');
}
else{
pass2.parent()
.removeClass('success')
.addClass('error');
}
});
});
//jquery complexify.js script
/*
http://github.com/danpalmer/jquery.complexify.js
$.fn.extend({
complexify: function(options, callback) {
var defaults = {
minimumChars: 8,
strengthScaleFactor: 1
};
if($.isFunction(options) && !callback) {
callback = options;
options = {};
}
options = $.extend(defaults, options);
function additionalComplexityForCharset(str,
charset) {
for (var i = str.length - 1; i >= 0; i--) {
if (charset[0] <= str.charCodeAt(i) &&
str.charCodeAt(i) <= charset[1]) {
return charset[1] - charset[0] + 1;
};
}; return 0;
};
return this.each(function () {
$(this).keyup(function () {
var password = $(this).val();
var complexity = 0, valid = false;
}
});
})(jQuery);
http://cssdeck.com/labs/yze3ymgf
HTML
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<title>Login</title>
<!--[if lt IE 9]>
<script
src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script
>
<![endif]-->
</head>
<body>
<div id="login">
<h2><span class="fontawesome-lock"></span>Sign
In</h2>
<fieldset>
<p><label for="email">E-mail
address</label></p>
<p><input type="email" id="email"
value="mail@address.com"
onBlur="if(this.value=='')this.value='mail@address.com'"
onFocus="if(this.value=='mail@address.com')this.value=''"></p>
<!-- JS because of IE support; better:
placeholder="mail@address.com" -->
<p><label
for="password">Password</label></p>
<p><input type="password" id="password"
value="password" onBlur="if(this.value=='')this.value='password'"
onFocus="if(this.value=='password')this.value=''"></p> <!-- JS
because of IE support; better: placeholder="password" -->
</fieldset>
</form>
</body>
</html>
CSS
@charset "utf-8";
/* CSS Document */
@import url(http://weloveiconfonts.com/api/?family=fontawesome);
@import url(http://meyerweb.com/eric/tools/css/reset/reset.css);
[class*="fontawesome-"]:before {
font-family: 'FontAwesome', sans-serif;
}
body {
background-color: #C0C0C0;
color: #000;
font-family: "Varela Round", Arial, Helvetica, sans-serif;
font-size: 16px;
line-height: 1.5em;
}
input {
border: none;
font-family: inherit;
font-size: inherit;
font-weight: inherit;
line-height: inherit;
-webkit-appearance: none;
}
#login {
margin: 50px auto;
width: 400px;
}
#login h2 {
background-color: #f95252;
-webkit-border-radius: 20px 20px 0 0;
-moz-border-radius: 20px 20px 0 0;
border-radius: 20px 20px 0 0;
color: #fff;
font-size: 28px;
padding: 20px 26px;
}
#login h2 span[class*="fontawesome-"] {
margin-right: 14px;
}
#login fieldset {
background-color: #fff;
-webkit-border-radius: 0 0 20px 20px;
-moz-border-radius: 0 0 20px 20px;
#login fieldset p {
color: #777;
margin-bottom: 14px;
}
color: #fff;
display: block;
margin: 0 auto;
padding: 4px 0;
width: 100px;
}
http://cssdeck.com/labs/ryn8lp74
HTML
<form>
<h1>Employer Log in</h1>
<div class="inset">
<p>
<label for="email">EMAIL ADDRESS</label>
<input type="text" name="email" id="email">
</p>
<p>
<label for="password">PASSWORD</label>
<input type="password" name="password" id="password">
</p>
<p>
CSS
* { box-sizing: border-box; }
body {
font-family: "HelveticaNeue-Light","Helvetica Neue
Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;
color:white;
font-size:12px;
background:#333 url(/images/classy_fabric.png);
}
form {
background:#111;
width:300px;
margin:30px auto;
border-radius:0.4em;
border:1px solid #191919;
overflow:hidden;
position:relative;
box-shadow: 0 5px 10px 5px rgba(0,0,0,0.2);
}
form:after {
content:"";
display:block;
position:absolute;
height:1px;
width:100px;
left:20%;
background:linear-gradient(left, #111, #444, #b6b6b8, #444,
#111);
top:0;
}
form:before {
content:"";
display:block;
position:absolute;
width:8px;
height:5px;
border-radius:50%;
left:34%;
top:-7px;
.inset {
padding:20px;
border-top:1px solid #19191a;
}
form h1 {
font-size:18px;
text-shadow:0 1px 0 black;
text-align:center;
padding:15px 0;
border-bottom:1px solid rgba(0,0,0,1);
position:relative;
}
form h1:after {
content:"";
display:block;
width:250px;
height:100px;
position:absolute;
top:0;
left:50px;
pointer-events:none;
transform:rotate(70deg);
background:linear-gradient(50deg, rgba(255,255,255,0.15),
rgba(0,0,0,0));
label {
color:#666;
display:block;
padding-bottom:9px;
}
input[type=text],
input[type=password] {
width:100%;
padding:8px 5px;
background:linear-gradient(#1f2124, #27292c);
border:1px solid #222;
box-shadow:
0 1px 0 rgba(255,255,255,0.1);
border-radius:0.3em;
margin-bottom:20px;
}
label[for=remember]{
color:white;
display:inline-block;
padding-bottom:0;
padding-top:5px;
}
input[type=checkbox] {
display:inline-block;
vertical-align:top;
}
.p-container {
padding:0 20px 20px 20px;
}
.p-container:after {
clear:both;
display:table;
content:"";
}
.p-container span {
display:block;
float:left;
color:#0d93ff;
padding-top:8px;
}
input[type=submit] {
padding:5px 20px;
border:1px solid rgba(0,0,0,0.4);
text-shadow:0 -1px 0 rgba(0,0,0,0.4);
box-shadow:
inset 0 1px 0 rgba(255,255,255,0.3),
input[type=submit]:hover {
box-shadow:
inset 0 1px 0 rgba(255,255,255,0.3),
inset 0 -10px 10px rgba(255,255,255,0.1);
}
input[type=text]:hover,
input[type=password]:hover,
label:hover ~ input[type=text],
label:hover ~ input[type=password] {
background:#27292c;
}
http://codepen.io/anon/pen/FnsKi
HTML
<div class="loginWrapper">
<!-- Current user form -->
<form action="index.html" id="login">
<div class="loginPic">
<a href="#" title=""><img
src="http://i.imgur.com/lZBpqmM.png" alt=""></a>
<span>Helixsoft</span>
<div class="loginActions">
<div><a href="#" title="Change user" class="logleft flip"
style="left: 0px; opacity: 1;"></a></div>
<div><a href="#" title="Forgot password?"
class="logright" style="right: 0px; opacity: 1;"></a></div>
</div>
</div>
<div class="logControl">
<div class="memory"><div class="checker" id="uniformremember1"><span><input type="checkbox" checked="checked"
class="check" id="remember1" style="opacity:
0;"></span></div><label for="remember1">Remember
me</label></div>
<input type="submit" name="submit" value="Login"
class="buttonM bBlue">
</div>
</form>
<div class="logControl">
<div class="memory"><div class="checker" id="uniformremember2"><span><input type="checkbox" checked="checked"
class="check" id="remember2" style="opacity:
0;"></span></div><label for="remember2">Remember
me</label></div>
<input type="submit" name="submit" value="Login"
class="buttonM bBlue">
</div>
</form>
</div>
<script class="cssdeck"
src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.0/jquery.min.js"></s
cript>
CSS
/*Login page
==============================================
==== */
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
/* Checkboxes */
/* Button */
JAVASCRIPT
$(function(){
formContainer.find('form').submit(function(e){
// Preventing form submissions. If you implement
// a backend, you might want to remove this code
//e.preventDefault();
});
return true;
}
}
return false;
}
//checkbox
$('.checker').click(function(e){
$(this).children('span').toggleClass('checked');
});
});
http://cssdeck.com/labs/elvp76rk