html, body {
    margin: 0;
    padding: 0;
    font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    position: relative;
    background: #000;
    font-size: 16px;
}

#background {
    background: url(https://secure.netflix.com/us/dvd/nmh/nonMemberHomeBackground2.jpg) no-repeat scroll center center transparent;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 99;
}

#top-gradient {
    position: absolute;
    width: 100%;
    height: 130px;
    z-index: 100;
    background: -moz-linear-gradient(top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.6)), color-stop(100%,rgba(0,0,0,0)));
    background: -webkit-linear-gradient(top, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0) 100%);
    background: -o-linear-gradient(top, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0) 100%);
    background: -ms-linear-gradient(top, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0) 100%);
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#66000000', endColorstr='#00000000',GradientType=0 );
}

#bottom-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: -moz-linear-gradient(top, rgba(0,0,0,0) 85%, rgba(0,0,0,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(85%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, rgba(0,0,0,0) 85%,rgba(0,0,0,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, rgba(0,0,0,0) 85%,rgba(0,0,0,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, rgba(0,0,0,0) 85%,rgba(0,0,0,1) 100%); /* IE10+ */
    background: linear-gradient(to bottom, rgba(0,0,0,0) 85%,rgba(0,0,0,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#000000',GradientType=0 ); /* IE6-9 */
}

header {
    padding: 1em;
}

header .logo {
    background: url(https://secure.netflix.com/us/dvd/common/dvd_logo_trans.png) no-repeat center left transparent;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    display: block;
    width: 334px;
    height: 85px;
    text-indent: -1000px;
}

#main {
    position: relative;
    min-width: 320px;
}

#signin-box-container {
    max-width: 470px;
    margin-left: auto;
    margin-right: auto;
    padding: 7% 3% 14%;
}

#signin-box {
    padding: 0 0 10%;
    background: #fafafa;
    border: 1px solid #333;
    position: relative;
}

footer {
    padding: 5% 3% 2%;
}

header, #signin-box-container, footer {
    position: relative;
    z-index: 101;
}

footer > p {
    color: #aaa;
    opacity: 0.6;
    display: table;
    font-size: 65%;
    margin: 0 auto 0.2em;
}

footer > p a {
    white-space: nowrap;
}

h1 {
    margin: 10% auto 0;
    padding: 0 0 0.5em;
    font-weight: normal;
    font-size: 220%;
}

form {
    display: table;
    margin: 0 auto;
}

h1, form {
    width: 80%;
}

form > div {
    display: table-row;
}

form button {
    font-size:1.3em;
    background: #1872d9;
    background: -moz-linear-gradient(top, #1872d9 20%, #135aac 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(20%,#1872d9), color-stop(100%,#135aac));
    background: -webkit-linear-gradient(top, #1872d9 20%,#135aac 100%);
    background: -o-linear-gradient(top, #1872d9 20%,#135aac 100%);
    background: -ms-linear-gradient(top, #1872d9 20%,#135aac 100%);
    background: linear-gradient(to bottom, #1872d9 20%,#135aac 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1872d9', endColorstr='#135aac',GradientType=0 );
    border: 1px solid #265890;
    border-radius: 5px;
    box-shadow: 0 1px 0 0 #5E9DE4 inset;
    text-shadow: 1px 1px 1px #000000;
    color:#fff;
    box-shadow:0 4px 10px -6px #010101, 0 1px 0 0 #60a6f6 inset;
    margin: 1.5em 0;
    padding: 0.5em 0;
    width: 100%;
    font-weight: bold;
}

form button:hover {
    background: #1b7ff2;
    background: -moz-linear-gradient(top, #1b7ff2 20%, #115099 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(20%,#1b7ff2), color-stop(100%,#115099));
    background: -webkit-linear-gradient(top, #1b7ff2 20%,#115099 100%);
    background: -o-linear-gradient(top, #1b7ff2 20%,#115099 100%);
    background: -ms-linear-gradient(top, #1b7ff2 20%,#115099 100%);
    background: linear-gradient(to bottom, #1b7ff2 20%,#115099 100%);
    cursor: pointer;
}

form button:active {
    background: #115099;
    background: -moz-linear-gradient(top, #115099 20%, #0d3c73 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(20%,#115099), color-stop(100%,#0d3c73));
    background: -webkit-linear-gradient(top, #115099 20%,#0d3c73 100%);
    background: -o-linear-gradient(top, #115099 20%,#0d3c73 100%);
    background: -ms-linear-gradient(top, #115099 20%,#0d3c73 100%);
    background: linear-gradient(to bottom, #115099 20%,#0d3c73 100%);
    border:1px solid #1e5292;
    box-shadow: 0 1px 0 0 #073b7e inset;
    color:#b3b3b3;
}

label {
    display: block;
    margin-top: 1.3em;
    padding: 0 0 0.2em 0.1em;
}

input {
    width: 100%;
    font-size: 18px;
    padding: 6px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.4);
}

input:focus {
    box-shadow: 0 0 4px 2px #b5d0ec;
}

#forgot-password {
    text-align: right;
}

#signup {
    padding-top: 1em;
}

#signup p {
    margin: 0;
}

a {
    color: #0080ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#signup a {
    font-size: 100%;
}

#forgot-password a {
    display: inline-block;
    padding: 0.5em 0;
}

.form-error {
    background: none repeat scroll 0 0 #333;
    box-sizing: border-box;
    color: #fff;
    margin: 0;
    min-height: 2em;
    padding: 1em;
    text-align: left;
    width: 100%;
    line-height: 130%;
}

.loading-img {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    opacity: 0;
    border-radius: 5px;
    transition: opacity 0.4s 0s ease-in;
}

.loading-img.shown {
    z-index: 11;
    opacity: 1;
}

.loading-img.fg.shown {
    z-index: 12;
}

/* media queries */
@media only screen and (max-width : 1024px) {
    #signin-box-container {
        padding: 7% 3% 25%; /* shows the envelopes more... */
    }
}

@media only screen and (max-width : 350px) {
    header .logo {
        width: 300px;
        height: 76px;
    }

    #signin-box {
        border: none;
    }

    #signin-box-container {
        padding: 0 0 5%;
    }

    #background, #top-gradient, #bottom-gradient {
        display: none;
    }

    h1 {
        margin: 0 auto;
        padding: 10% 0 0.5em;
    }
}
