body {
    padding: 0;
    margin: 0;
    min-width: 500px;
}
.container {
    box-sizing: border-box;
    width: 500px;
    padding: 40px 15px 0;
}
form {
    outline: 0;
    width: 100%;
}
input {
    outline: 0;
    box-sizing: border-box;
    width: 100%;
    background: none;
    border: 0;
    border-bottom: 1px solid #000;
    padding: 0;
    margin: 0;
    transition: border-color .3s;
}
input:hover, input:focus {border-color: #00f;}
label {
    display: block;
    outline: 0;
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}
label span {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    color: #000;
    transition: top .3s, font-size .3s, color .3s;
}
label.on span {
    top: -10px;
    font-size: 10px;
}
label.error span {color: #f00;}
label.error input {border-color: #f00;}
.btn {
    text-decoration: none;
    outline: 0;
    padding: 5px 10px 6px;
    margin: 0 0 10px;
    display: inline-block;
    background: none;
    border-radius: 4px;
    border: 1px solid #00f;
    color: #00f;
    transition: background .3s, color .3s;
}
.captcha {display: none;}
.btn:hover {
    color: #fff;
    background: #00f;
}
.infomsgs {
    position: fixed;
    top: 40px;
    left: 0;
    width: 500px;
    max-height: 200px;
    overflow: auto;
}
.infomsgs a {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px;
    color: #00f;
}
#errorsmsg,#successesmsg {
    border-radius: 4px;
    padding: 10px 15px 0;
    margin-top: 10px;
    background: #fff;
}
#errorsmsg p,#successesmsg p {margin: 0 0 10px;}
#errorsmsg {border: 1px solid #f00;}
#successesmsg {border: 1px solid #0f0;}
#errorsmsg p {color: #f00;}
#successesmsg p {color: #0f0;}
#shadow {
    position: fixed;
    outline: none;
    top: 0;
    left: 0;
    display: inline-block;
    background: #000;
    opacity: 0;
    visibility: hidden;
    width: 100%;
    height: 100%;
    transition: opacity .6s, visibility .6s;
}
.navon #shadow {
    opacity: .9;
    visibility: visible;
}
#header {
    position: fixed;
    width: 500px;
    top: 0;
    left: 0;
    background: #fff;
    border-bottom: 1px solid #000;
    max-height: 40px;
    height: 100%;
    transition: max-height .6s;
    overflow: hidden;
}
.navon #header {max-height: 100%;}
#header td {display: block;}
#header ul {
    padding: 0;
    list-style: none;
    margin: 0;
}
#header ul a {
    outline: none;
    text-decoration: none;
    color: #000;
    transition: color .3s;
    display: inline-block;
    width: 100%;
    padding: 5px 0 6px;
}
#header ul a:hover {color: #00f;}
#burger {
    position: absolute;
    text-decoration: none;
    color: #000;
    top: 0;
    right: 0;
    width: 40px;
    line-height: 13px;
    display: inline-block;
}
@media (min-width: 501px) {
    body {min-width: 1000px;}
    .container {
        width: 970px;
        margin: 0 auto;
    }
    form {
        width: 500px;
        margin: 0 auto;
    }
    .infomsgs {width: 970px;}
    #header {width: 100%;}
    #header table.container {padding-top: 0;}
    #header ul a {padding-right: 10px;}
    #header ul li:last-child a {padding-right: 0;}
    #header li {
        display: inline-block;
        float: left;
    }
    #header td {display: table-cell;}
    #header td:last-child ul {float: right;}
    #burger {display: none;}
}