
html {
    overflow: hidden;
    overflow-y: auto;
    -ms-overflow-style: -ms-autohiding-scrollbar;;
}

body {
    height: 100%;
    display: grid;
    place-items: center;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    background: #ec2f23 url(../img/_background_1920x1080.jpg) no-repeat fixed center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: LightGray;
}

::-moz-selection {
    background: LightGray;
}

a {
    color: #0c6ec8;
    text-decoration: underline;
}

.form-wrapper {
    margin: 3% 0 !important;
    padding: 20px;
    width: 360px;
    background-color: White;
    border: 1px solid #a9a9a9;
    border-bottom: 3px solid #a9a9a9;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

.logo img {
    width: 200px; /* резиновый размер */
    height: auto;
    max-width: 200px; /* не более оригинального размера (или 100%) */
    vertical-align: middle;
}

.title {
    padding: 15px 0;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;

}

/*
    Индикатор языка
*/
.div4lang {
    position: relative;
    display: block;
}

#langLED {
    position: absolute;
    display: block;
    z-index: 5;
    right: 11px;
    top: 10px;
    color: #6D6E71;
    text-transform: uppercase;
    line-height: 1;
    font-size: 18px;
}

/* -------------------------------------------------
  стиль кнопок
---------------------------------------------------- */
.button {
    display: block;
    margin: 20px 0 0;
    padding: 15px 0 11px;
/ background: #ec2f23;
    background: #FA9401;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 2px solid #c77500;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

a.button {
    text-decoration: none;
    color: White;
}

a.button:hover {
/ background: #fd4032;
    background: #F8B700;

    -webkit-transition: all 0.2s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    -moz-transition: all 0.2s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    -o-transition: all 0.2s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    -ms-transition: all 0.2s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    transition: all 0.2s cubic-bezier(0.000, 0.000, 0.580, 1.000);
}


.captcha {
    font-size: 14px;
    display: grid;
    margin: 12px 0 3px 0;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 8px;
}

.captcha img {
    max-height: 40px;
}

/* -------------------------------------------------
  стили форм, чекбоксов, подписей, ошибок
---------------------------------------------------- */
.label {
    display: inline-block;
    margin: 12px 0 3px 0;
    padding-left: 0px;
    font-size: 14px;
    color: #666666;
    line-height: normal;
    vertical-align: bottom;
}

.label-small {
    display: inline-block;
    margin: 2px 0 3px 0;
    font-size: 12px;
    color: #999999;
    line-height: 12px;
}

.password-error, .login-error {
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 5px;
    margin-bottom: 0px;
    color: #ec2f23;
}

.errorSummary {
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 0px;
    color: #ec2f23;
}

.flash-message {
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 0px;
    color: #639a42;
}

.form select,
.form input[type="email"],
.form input[type="date"],
.form input[type="text"],
.form input[type="password"],
.form input[type="name"],
.form input[type="tel"],
.form input[type="number"],
.form input[type="company"] {
    height: 40px;
    width: 100%;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 400;
    color: #777;
    border: 1px solid rgba(0, 0, 0, .1);
    padding-left: 14px;
    padding-right: 14px;
    background: #f7f7f7;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.2s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    -moz-transition: all 0.2s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    -o-transition: all 0.2s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    -ms-transition: all 0.2s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    transition: all 0.2s cubic-bezier(0.000, 0.000, 0.580, 1.000);
}

.form select:focus,
.form input[type="email"]:focus,
.form input[type="date"]:focus,
.form input[type="text"]:focus,
.form input[type="password"]:focus,
.form input[type="name"]:focus,
.form input[type="code"]:focus,
.form input[type="operator"]:focus,
.form input[type="tel"]:focus,
.form input[type="number"]:focus,
.form input[type="company"]:focus {
    color: #111;
    border-color: rgba(153, 153, 153, 1);
    -webkit-box-shadow: 0 0 6px #aeaeae;
    -moz-box-shadow: 0 0 6px #aeaeae;
    box-shadow: 0 0 6px #aeaeae;
    -moz-outline: none;
    outline: none;
}

.form input[type=checkbox] {
    position: absolute;
    opacity: 0;
    z-index: 100;
    cursor: pointer;
}

.form input[type=checkbox]:not(:checked) + label:before {
    content: " ";
    display: inline-block;
    width: 15px;
    height: 15px;
    vertical-align: bottom;
    position: relative;
    bottom: 2px;
    margin-right: 4px;
    background: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, .1);
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.2s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    -moz-transition: all 0.2s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    -o-transition: all 0.2s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    -ms-transition: all 0.2s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    transition: all 0.2s cubic-bezier(0.000, 0.000, 0.580, 1.000);
}

.form input[type=checkbox]:checked + label:before {
    content: "✓";
    font-size: 14px;
    font-weight: bold;
    background: #f7f7f7;
    color: Red;
    display: inline-block;
    width: 15px;
    height: 15px;
    vertical-align: bottom;
    position: relative;
    bottom: 2px;
    margin-right: 4px;
    border: 1px solid rgba(0, 0, 0, .3);
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    outline: none;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.form input[type=checkbox]:hover + label:before {
    border: 1px solid rgba(0, 0, 0, .3);
}

.form input[type="code"] {
    width: 20%;
    margin-right: 10px;
}

.form input[type="code"]:focus {
    width: 20%;
    margin-right: 10px;
}

.form input[type="operator"] {
    width: 20%;
    margin-right: 10px;
}

.form input[type="operator"]:focus {
    width: 20%;
    margin-right: 10px;
}

.form input[type="tel"] {
    width:100%;
}

.form input[type="tel"]:focus {
    width: 100%;
}

.form input[type="number"] {
    width: 100%;
}

.form input[type="number"]:focus {
    width: 100%;
}

.form select:hover,
.form input[type="date"]:hover,
.form input[type="email"]:hover,
.form input[type="text"]:hover,
.form input[type="password"]:hover,
.form input[type="name"]:hover,
.form input[type="code"]:hover,
.form input[type="operator"]:hover,
.form input[type="number"]:hover,
.form input[type="tel"]:hover,
.form input[type="company"]:hover {
    border-color: rgba(153, 153, 153, 0.8);
    -moz-outline: none;
    outline: none;
}


/* -------------------------------------------------
  custom var
---------------------------------------------------- */

.align-center {
    text-align: center;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.width-100 {
    width: 100%;
}

.width-50 {
    width: 50%;
}

.width-54 {
    width: 54%;
}

.width-55 {
    width: 55%;
}

.width-25 {
    width: 25%;
}

.width-20 {
    width: 20%;
}

.m-right-10 {
    margin-right: 10px;
}

.m-left-10 {
    margin-left: 10px;
}

.p-bottom-10 {
    padding: 0 0 10px 0;
}

.p-top-3 {
    padding: 3px 0 0 0;
}

.p-top-5 {
    padding: 5px 0 0 0;
}

.p-top-10 {
    padding: 10px 0 0 0;
}

.p-top-15 {
    padding: 15px 0 0 0;
}

.p-top-20 {
    padding: 20px 0 0 0;
}


/* -------------------------------------------------
  брекпоинты
---------------------------------------------------- */

@media screen and (max-width: 480px) {
    .form-wrapper {
        margin: 2% 0 !important;
        width: 260px;
    }

    .logo img {
        width: 180px;
    }

    .title {
        font-size: 12px;
    }

    .button {
        font-size: 12px;
    }

    .label {
        font-size: 12px;
    }

    .form select,
    .form input[type="date"],
    .form input[type="email"],
    .form input[type="text"],
    .form input[type="password"],
    .form input[type="name"],
    .form input[type="tel"],
    .form input[type="number"],
    .form input[type="company"] {
        height: 35px;
        font-size: 13px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .form input[type="tel"] {
        width: 52%;
    }

    .form input[type="tel"]:focus {
        width: 52%;
    }

    .form input[type="number"] {
        width: 52%;
    }

    .form input[type="number"]:focus {
        width: 52%;
    }

    .width-55 {
        width: 50%;
    }

    .button {
        padding: 14px 0 11px 0;
    }
}

@media screen and (max-height: 750px) {

    .form-wrapper-big {
        top: 0px;
        margin-top: 20px;
        margin-bottom: 20px;
        -webkit-transform: translate(-50%, 0);
        -moz-transform: translate(-50%, 0);
        -o-transform: translate(-50%, 0);
        -ms-transform: translate(-50%, 0);
        transform: translate(-50%, 0);
    }
}

@media screen and (min-width: 320px) and (max-width: 640px) {
    body {
        background: url(../img/_background_640x480.jpg) no-repeat center center fixed;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        -webkit-font-smoothing: antialiased;
    }
}