div.box {
    border: 1px #E0E0E0 solid;
    border-radius: 8px;
    background-color: #FCFCFC;

    padding: 25px;
    color: #808080;
    text-shadow: 2px 2px 3px rgba(192, 192, 192, 0.2);
}

div.box h3 {
    display: block;
    width: 100%;

    font-size: 110%;
    margin-bottom: 20px;
}

div.box h4 {
    display: block;
    width: 100%;
    margin: 15px 0px;
}

div.box hr {
    width: 100%;
    height: 1px;
    border: 0px black none;
    background-color: #E0E0E0;
    background: -o-linear-gradient(left, rgba(224, 224, 224, 0) 5%, rgba(224, 224, 224, 1) 15%, rgba(224, 224, 224, 1) 85%, rgba(224, 224, 224, 0) 95%);
    background: -webkit-linear-gradient(left, rgba(224, 224, 224, 0) 5%, rgba(224, 224, 224, 1) 15%, rgba(224, 224, 224, 1) 85%, rgba(224, 224, 224, 0) 95%);
    background: -moz-linear-gradient(left, rgba(224, 224, 224, 0) 5%, rgba(224, 224, 224, 1) 15%, rgba(224, 224, 224, 1) 85%, rgba(224, 224, 224, 0) 95%);
    background: linear-gradient(left, rgba(224, 224, 224, 0) 5%, rgba(224, 224, 224, 1) 15%, rgba(224, 224, 224, 1) 85%, rgba(224, 224, 224, 0) 95%);
    margin: 10px 0px 10px;
}

div.box label {
    position: relative;
    font-weight: bold;
    font-size: 70%;
    top: 3px;
}

div.box.centered {    
    margin: 20px auto;
}

/************************************************* inner, specific *************************************************/

div.box div.innerbox {
    width: 100%;
    height: auto;
    overflow: hidden;
}

div.box div.line {
    width: 100%;
    padding: 5px;
    clear: both;
    overflow: hidden;
}

div.box div.line.input {
    height: 35px;
}

div.box div.line.help {
    height: 22px;
}

div.box input[type=submit] {
    width: auto;
    padding: 0px 25px;
    margin: 0 auto;
    height: 27px;

    border: 0px none black;
    border-radius: 5px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px rgba(255, 255, 255, 0.3),
        inset 0 10px rgba(255, 255, 255, 0.03),
        inset 0 10px 20px rgba(255, 255, 255, 0.25),
        inset 0 -15px 30px rgba(0, 0, 0, 0.2);

    transition: 0.5s all ease-out;
    -o-transition: 0.5s all ease-out;
    -moz-transition: 0.5s all ease-out;
    -webkit-transition: 0.5s all ease-out;

    font-weight: bold;
    font-size: 80%;
    color: #FFFFFF;
}

div.box input#submit {
    background-color: rgb(112, 224, 0);
}

div.box input#submit:hover {
    background-color: rgb(128, 249, 0);
}

div.box input#create {
    background-color: rgb(0, 112, 224);
}

div.box input#create:hover {
    background-color: rgb(0, 141, 255);
}

div.box input[type=text], div.box input[type=password], div.box input[type=number] {
    height: 25px;

    font-size: 80%;
    font-family: 'Trebuchet MS', 'Arial', sans-serif;
    color: #404040;

    padding: 2px;
    border: 1px #C0C0C0 solid;
    box-shadow: 1px 1px 2px 0px rgba(192, 192, 192, 0.2) inset,
                0px 0px 4px 2px hsla(215, 90%, 50%, 0);
}

div.box input[type=text], div.box input[type=password] {
    width: 200px;

    border-radius: 3px;

    transition: 0.2s all ease-out;
    -o-transition: 0.2s all ease-out;
    -moz-transition: 0.2s all ease-out;
    -webkit-transition: 0.2s all ease-out;
}

div.box input[type=text].error, div.box input[type=password].error {
    background-color: hsl(0, 100%, 90%);
}

div.box input[type=text]:focus, div.box input[type=password]:focus {
    box-shadow: 1px 1px 2px 0px rgba(192, 192, 192, 0.2) inset,
                0px 0px 4px 1px hsla(215, 90%, 50%, 0.4);
}

div.box input.error[type=text]:focus, div.box input.error[type=password]:focus {
    border-color: #FF4040;
    box-shadow: 1px 1px 2px 0px rgba(192, 192, 192, 0.2) inset,
                0px 0px 4px 1px rgba(255, 0, 0, 0.8);
}

/************** div.line **************/

div.box div.line span.value {
    display: block;
    font-size: 75%;
    width: 100%;
    padding-top: 2px;
    text-align: right;
}

div.box div.line span.error {
    color: #E00000;
}

div.box div.line span.ok {
    color: #00C000;
}

div.box div.line span.weak {
    color: #C000C0;
}

div.box div.line span.fair {
    color: #0000C0;
}

div.box div.line span.strong {
    color: #00C0C0;
}

div.box div.line span.verystrong {
    color: #00C000;
}

div.box div.line img.wait {
    width: 16px;
    height: 16px;
    float: right;
    position: relative;
    display: none;
}

/********** big login buttons ************/

div.box div.buttonwrap {
    width: 50%;
    height: 64px;
    float: left;
    padding: 4px;
}

div.box div.loginbutton {
    width: 100%;
    height: 100%;

    padding: 4px;

    font-size: 80%;
    color: #404040;
    background-color: #E8E8E8;

    border-radius: 8px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.3),
                inset 0 10px 5px rgba(255, 255, 255, 0.03),
                inset 0 10px 20px rgba(255, 255, 255, 0.1),
                inset 0 -15px 30px rgba(0, 0, 0, 0.1);

    transition: 0.5s all ease-out;
    -o-transition: 0.5s all ease-out;
    -moz-transition: 0.5s all ease-out;
    -webkit-transition: 0.5s all ease-out;
}

div.box div.loginbutton:hover {
    background-color: #F8F8F8;
}

div.box div.loginbutton img {
    display: block;
    margin: 0 auto;
    width: 120px;
    height: 48px;
    border-radius: 4px;
    opacity: 0.9;
}

div.box div.loginbutton#facebook {
    background-color: #3B5999;
}

div.box div.loginbutton#facebook:hover {
    background-color: #5077CC;
}

/**************** other stuff ********************/

div.box span#newaccount {
    float: left;
    font-size: 70%;
    padding: 9px 0px;
}


div.box span.invalid {
    display: block;
    width: 100%;

    padding: 12px 0px 8px;
    font-size: 70%;
    font-weight: bold;
    text-align: center;
    color: #E00000;
}


div.error {
    background-color: #FFF0F0;
    box-shadow: 0px 0px 10px 2px rgba(255, 0, 0, 0.3);

    color: #000000;
}

div.error h2 {
    color: #E00000;
    text-shadow: 2px 2px 3px rgba(224, 0, 0, 0.2);
}

div.box#box-login {
    width: 440px;
}

div.box#box-createaccount {
    width: 600px;
    margin: 20px auto;
}