html, body {
    height: 100%;
    margin: 0;
    background: white url(/images/patterns/double-bubble-outline.png);
    box-sizing: border-box;
}

.centered-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 100vh;
    position: relative;
    box-sizing: border-box;
}

.centered-cell {
    overflow: hidden;
    transform: translateY(-160px);
}

.rectangle-box {
    width: 80vw;
    max-width: 600px;
    min-width: 400px;
    margin: 0 auto;
    /*border: 1px red solid;*/
}

.loginPage {

}

.form-signin {
    position: relative;
    background-color: #fff;
    padding: 20px 25px 20px 25px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.form-signin input[type="email"],
.form-signin input[type="password"],
.form-signin input[type="text"] {
    /*font-size: 17px;*/
    height: auto;
    padding: 7px 9px;
}

.form-header {
    position: relative;
    padding-bottom: 20px;
    text-align: right;
}

.form-header img {
    display: inline-block;
    height: 35px;
}

.form-header h3 {
    position: relative;
    display: inline-block;
    color: #337ab7;
    font-size: 24px;
    vertical-align: bottom;
    margin-bottom: 0;
    margin-right: -5px;
    z-index: 9;
}

.form-header hr {
    margin-top: 0;
}

.form-signin .form-group {
    margin-left: 20%;
    margin-right: 20%;
}

.button-wrap {
    padding-right: 15%;
    padding-left: 15%;
    margin-top: 5px;
}

#error-message-block {
    display: block;
    color: #b94a48;
    font-size: 12px;
    padding-right: 5px;
    text-align: right;
}

#messageBox {
    display: block;
    color: #337ab7;
    font-size: 12px;
    padding-right: 5px;
    text-align: right;
}

.dontReseveCodeBox {
    /*height: 20px;*/
    text-align: right;
    direction: rtl;
    margin-bottom: 10px;
}

#dontReseveCode {
    display: none;
    color: #999;
    font-size: 12px;
    padding-right: 5px;
    text-align: right;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 12px;
    border: unset;
}

#dontReseveCode[disabled] {
    opacity: unset;
}


/*Pin Code*/
.codeBox {
    z-index: 99;
    margin-bottom: 0;
}

.hidden-pincode {
    visibility: hidden;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.visible-pincode {
    visibility: visible;
    pointer-events: auto;
    height: auto;
}

.forgetBox {
    margin-top: 20px;
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
}

.footer {
    padding: 0;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
    transition: background-color 0s 600000s, color 0s 600000s !important;
}

/*Loader*/
div.dataTables_processing {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    margin: 0;
    text-align: center;
    padding: 76px 0 0 0;
    z-index: 99999;
    background: #ffffffcf !important;
    border: unset;
    border-radius: 5px !important;
    color: #337ab7 !important;
}

.panel {
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

div.dataTables_processing > div:last-child {
    position: relative;
    width: 80px;
    height: 15px;
    margin: 1em auto;
}

div.dataTables_processing > div:last-child > div {
    position: absolute;
    top: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(0, 136, 204, 0.9);
    /*animation-timing-function: cubic-bezier(0, 1, 1, 0);*/
}

div.dataTables_processing > div:last-child > div:nth-child(1) {
    left: 8px;
    animation: datatables-loader-1 .6s infinite;
}

div.dataTables_processing > div:last-child > div:nth-child(2) {
    left: 8px;
    animation: datatables-loader-2 .6s infinite;
}

div.dataTables_processing > div:last-child > div:nth-child(3) {
    left: 32px;
    animation: datatables-loader-2 .6s infinite;
}

div.dataTables_processing > div:last-child > div:nth-child(4) {
    left: 56px;
    animation: datatables-loader-3 .6s infinite;
}

#showPassword {
    position: absolute;
    top: 7px;
    margin-top: 0px;
    font-size: 16px;
    color: #9a9a9a;
    right: 5px;
    width: 30px;
    text-align: center;
    padding: 0;
}

#showPassword:hover {
    text-decoration: none;
}

@keyframes datatables-loader-1 {
    0% {
        transform: scale(0)
    }

    100% {
        transform: scale(1)
    }
}

@keyframes datatables-loader-3 {
    0% {
        transform: scale(1)
    }

    100% {
        transform: scale(0)
    }
}

@keyframes datatables-loader-2 {
    0% {
        transform: translate(0, 0)
    }

    100% {
        transform: translate(24px, 0)
    }
}

.terms {
    color: #999;
}

.terms a {
    color: #999;
    text-decoration: underline;
}

.terms a:hover {
    color: #428bca;
    text-decoration: underline;
}

.terms p {
    font-size: 0.9em;
    text-align: center;
    direction: rtl;
}

.grecaptcha-badge {
    bottom: 0 !important;
}

@media (max-height: 650px) {
    .centered-cell {
        transform: none;
    }
}

@media screen and (max-width: 932px) and (orientation: landscape) {
    html, body {
        background: unset;
    }

    .centered-cell {
        transform: translateY(clamp(0px, 0px, -5vh));
    }

    .form-signin {
        padding: 20px 40px 20px 40px;

        border: unset;
        -webkit-border-radius: unset;
        -moz-border-radius: unset;
        border-radius: unset;
        -webkit-box-shadow: unset;
        -moz-box-shadow: unset;
        box-shadow: unset;
    }

    .footer {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    html, body {
        background: unset;
    }

    .centered-cell {
        transform: translateY(clamp(-100px, -160px, -5vh));
    }

    .form-group {
        margin-left: 0;
        margin-right: 0;
    }

    .button-wrap {
        padding-right: 0;
        padding-left: 0;
    }

    #error-message-block {
        margin-right: 0;
        padding-right: 0;
    }

    #messageBox {
        margin-right: 0;
        padding-right: 0;
    }

    .form-signin {
        padding: 20px 40px 20px 40px;

        border: unset;
        -webkit-border-radius: unset;
        -moz-border-radius: unset;
        border-radius: unset;
        -webkit-box-shadow: unset;
        -moz-box-shadow: unset;
        box-shadow: unset;
    }

    .form-signin .form-group {
        margin-left: 0;
        margin-right: 0;
    }

    .form-header img {
        height: 30px;
    }

    .form-header h3 {
        margin-right: -6px;
        font-size: 18px !important;
    }

    .footer {
        display: none;
    }

    .touch-flex .touch-flex-cell:first-child {
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }

    .touch-flex .touch-flex-cell:last-child {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    #showPassword {
        top: 13px;
        font-size: 19px;
        right: 13px;
        width: 30px;
        text-align: center;
        padding: 0;
    }

    input.form-control[type="text"],
    input.form-control[type="number"],
    input.form-control[type="email"],
    input.form-control[type="password"] {
        font-size: 1.3em;
        height: auto;
        padding: 12px 16px;
    }

    input.form-control[name="password"] {
        padding-right: 50px;
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    textarea:-webkit-autofill,
    textarea:-webkit-autofill:hover,
    textarea:-webkit-autofill:focus {
        font-size: 1.3em !important;
        background-color: white !important;
        -webkit-box-shadow: 0 0 0px 1000px white inset !important;
        transition: background-color 5000s ease-in-out 0s; /* подавить стили Chrome */
        color: #000 !important;
    }
}