/****************/
/*   RESET
/****************/
/**
 * Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
 * http://cssreset.com
 */
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, 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,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/****************/
/*   GENERAL
/****************/

html, body {
    min-height: 100%;
}

body {
    background: #202020;
    font-family: 'main-font',sans-serif;
}

.main {
    margin: 0 auto;
    max-width: 640px;
}

p {
    font-size: 11px;
    line-height: 13px;
    color: #fff;
}

/****************/
/*   HEADER
/****************/

.header {
    padding: 20px 10px 10px;
    text-align: center;
}

.header .logo {
    width: 50px;
    height: 50px;
    background: url(../pix/logo_samurai.png) no-repeat;
    background-size: cover;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.header h1 {
    text-align: center;
    color: #fff;
    display: inline-block;
    vertical-align: middle;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}


.content {
    padding: 10px;
}

.content h1.title {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 30px 0 10px;
    color: #fff;
    text-align: center;
}

.content h1.title:first-child {
    margin: 10px 0;
}

.item {
    position: relative;
    overflow: hidden;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.item img.background {
    width: 100%;
    height: auto;
    display: block;
}

.item .overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: -moz-linear-gradient(left, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80000000', endColorstr='#00000000',GradientType=1 ); /* IE6-9 */
}

.item .logo {
    position: absolute;
    left: 15px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
}

.item .arrow {
    width: 31px;
    height: 31px;
    background: url(../pix/arrow.png) no-repeat;
    background-size: cover;
    position: absolute;
    right: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 3;
}

.item .flag {
    width: 22px;
    height: 22px;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.item a {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 10;
}

.login-form {
    text-align: center;
    max-width: 375px;
    margin: 30px auto 0;
    padding: 0 15px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    color: #fff;
    margin: 0 0 5px;
    text-align: left;
    font-size: 14px;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"]{
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border: 1px solid #ccc;
    padding: 10px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
}

.login-form .has-error input[type="email"],
.login-form .has-error input[type="password"],
.login-form .has-error input[type="text"]{
    border: 1px solid #f00;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus,
.login-form input[type="text"]:focus {
    outline: none;
}

.login-form .help-block {
    display: block;
    margin-top: 5px;
    text-align: left;
    color: #f00;
    font-size: 12px;
}

.login-form .custom-checkbox {
    margin-top: 24px;
}

.login-form [type="checkbox"]:not(:checked),
.login-form [type="checkbox"]:checked {
    position: absolute;
    left: -9999px;
}
.login-form [type="checkbox"]:not(:checked) + label,
.login-form [type="checkbox"]:checked + label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    margin: 0;
    font-size: 14px;
}

.login-form [type="checkbox"]:not(:checked) + label:focus,
.login-form [type="checkbox"]:checked + label:focus {
    outline: none;
}

.login-form [type="checkbox"]:not(:checked) + label:before,
.login-form [type="checkbox"]:checked + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: -4px;
    width: 20px;
    height: 20px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 1);
}

.login-form [type="checkbox"]:not(:checked) + label:after,
.login-form [type="checkbox"]:checked + label:after {
    content: '';
    position: absolute;
    left: 0;
    top: -4px;
    width: 20px;
    height: 20px;
    background: url(../pix/icon-checked.png) center no-repeat;
    background-size: 15px 11px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-transition: all .2s linear;
    -moz-transition: all .2s linear;
    -o-transition: all .2s linear;
    transition: all .2s linear;
}

.login-form [type="checkbox"]:not(:checked) + label:after {
    opacity: 0;
}
.login-form [type="checkbox"]:checked + label:after {
    opacity: 1;
}

.btn {
    border: none;
    background: #fff;
    color: #202020;
    padding: 8px 25px;
    font-size: 16px;
    font-weight: 700;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    margin-top: 30px;
}

.btn.btn-logout {
    margin: 0;
}

.btn.btn-logout {
    font-size: 12px;
    padding: 6px 15px;
}

.logos {
    text-align: center;
    padding: 10px 0 0;
    margin: 0;
    list-style: none;
}

.logos a {
    display: block;
    margin: 0 0 10px;
    border: 1px solid #fff;
    padding: 15px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
}

.logos img {
    display: inline-block;
    height: 50px;
}

.footer {
    text-align: center;
    padding: 10px;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer .back-link {
    font-size: 12px;
}


@media (max-height: 450px) {
    .login-form {
        margin: 15px auto 0;
    }
    .login-form .form-group {
        margin-bottom: 15px;
    }
    .btn.btn-login {
        margin-top: 0;
    }
}