cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <form class="dark-box">
  <h1>Bank of Gotham</h1>
  <div class="inset">
  <p>
    
    <input required type="email" name="email" id="email" class="dark-input" />
    <label for="email">LOGIN</label>
  </p>
  <p>
    <input type="password" name="password" id="password" class="dark-input" />
    <label for="password">PASSWORD</label>
  </p>
  </div>
  <p class="container">
    <input type="submit" name="go" id="go" value="Submit" class="dark-button">
  </p>
</form>
            
          
!
            
              @import url(http://fonts.googleapis.com/css?family=Special+Elite);

@color-one: #111;
@color-two: #222;
@color-three: #333;

@color-action: #000000;
@color-text: rgba(255, 255, 255, .8);

@border-color-one: #000;
@border-color-two: #19191a;


@background-radial-gradient: radial-gradient(circle, @color-three, @color-one);
@background-radial-gradient-dark: radial-gradient(circle, @color-two, @color-one);

* {
	box-sizing: border-box;
}


html {
	height: 100%;
}

body {
	font-family: Special Elite;
	color: @color-text;
	font-size: 12px;
	background-image: @background-radial-gradient;
	background-repeat: no-repeat;
	height: 100%;
}

.shadow(@bg: @color-one) {
	box-shadow: 1px 1px 0 @bg,
	2px 2px 0 @bg;
	//3px 3px 0 @bg,
	//4px 4px 0 @bg;
}

.dark-box {
	background-image: @background-radial-gradient-dark;
	width: 300px;
	height: 300px;
	border-radius: 0;
	border: 1px solid @border-color-one;
	overflow: hidden;
	position: relative;
	margin: auto;
  box-shadow: 0 0 22px 4px rgba(255,255,255, .05), 0 0 3px rgba(0,0,0,.7);
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	&:after {
		content: "";
		display: block;
		position: absolute;
		height: 1px;
		width: 100px;
		left: 35%;
		top: 0;
		// little gradient line
		background: linear-gradient(left, rgba(0, 0, 0, .05), #444, #b6b6b8, #444, rgba(0, 0, 0, .05));
		transition: all 1s;
	}
	&:before {
		content: "";
		display: block;
		position: absolute;
		width: 8px;
		height: 5px;
		transition: transform 1s;
		border-radius: 50%;
		left: 50%;
		top: -7px;
		box-shadow: 0 0 6px 4px #fff;
	}
	&:hover {
		&::before {
			transform: translate(40px, -10px);
		}
		&::after {
			transform: translate(40px, 0);
			opacity: .2;
		}
		h1 { 
      color: @color-text;
      &:after {
        opacity: .4;
        height: 60px;
        transform-origin: 43% 200%; 
        transform: rotate(76deg);
      }
    }
	}

	h1 {
    color: fade(@color-text, 50%);
		font-size: 24px;
		text-shadow: 1px 1px 1px @border-color-one;
		text-align: center;
		padding: 0px;
    padding-bottom: 14px;
    margin-bottom: 0;
		border-bottom: 1px solid @border-color-two;
		position: relative;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.5));
    box-shadow: inset 0 -2px 2px rgba(0,0,0,.9);
    transition: all 1s;
    transform: translate3d(0,0,100);
		
    &:after {
      transform-origin: 50% 50%;
			content: "";
			display: block;
			width: 200%;
			height: 84px;
			position: absolute;
			top: 0;
			left: -40%;
			pointer-events: none;
			// box-shadow: -10px -10px 10px rgba(0,0,0,.1);
      z-index: 1000;
			transform: rotate(70deg);
			background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 255, 240, 0.08));
			transition: all 1s;
      
		}
	}
}

.inset {
	padding: 0 20px 0 20px;
	border-top: 1px solid @border-color-one;
}

label {
	color: #666;
	display: block;
	padding-bottom: 9px;
  transform: translate(0, -30px);
}

.dark-input {
  transform: translate3d(0, 40px, 0);
	width: 100%;
	color: white;
	padding: 8px 5px;
	background: linear-gradient(#222, #1a1a1a);
	border: 1px solid #000;
	border-left-color: rgba(255, 255, 200, 0.1);
	.shadow();
	border-radius: 0;
	margin-bottom: 20px;
	&:focus {
		outline: none;
		border-left-color: rgba(255, 255, 200, 0.5);
		background: #222;
		.shadow(#000);
    + label {
      color: white;
    }
	}
}

.container {
	padding: 0 20px 20px 20px;
	&:after {
		clear: both;
		display: table;
		content: "";
	}
}

.dark-button {
	padding: 12px;
	padding-bottom: 8px;
	border: 1px solid @border-color-two;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),	inset 0 18px 4px rgba(255, 255, 255, 0.2);
	background: @color-action;
	text-transform: uppercase;
	color: fade(@color-text, 50%);
	float: right;
	font-weight: bold;
	font-size: 14px;
	font-family: Special Elite;
  transition: all .3s;
	&:hover {
		border-color: @border-color-one;
    background-color: lighten(@color-action, 5%);
    color: @color-text;
	}
}
 
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console