/* Fonts style guide - start*/
html, body, button, input, select, textarea {
    font-size: 14px;
    font-family: Arial, sans-serif;
}
/* Fonts style guide - end*/

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.root-container {
    background-color: white;
}

.main-container {
    margin-top: 150px;
    margin-bottom: 150px;
    width: auto;
    flex: 1 0 auto;
}

.main-container > .columns > .column {
    flex: 1 0 auto;
}

.gray-bg-block {
    height: 319px;
    background-color: #f6f6f6;
    border-radius: 4px;
}

.credentials-panel, .forgot-password-panel, .reset-password-panel {
    position: relative;
    width: 390px;
    background-color: white;
    margin-left: 80px;
    margin-right: 40px;
    margin-top: -48px;
    border-radius: 4px;
    box-shadow: 0 0 15px 0 #cccccc;
    -webkit-box-shadow: 0 0 15px 0 #cccccc;
    -moz-box-shadow: 0 0 15px 0 #f6f6f6;
    padding: 40px 30px;
}

.authorization-panel {
    position: relative;
    height: 415px;
    background-color: white;
    margin-left: 80px;
    margin-top: -48px;
    border-radius: 4px;
    box-shadow: 0 0 15px 0 #cccccc;
    -webkit-box-shadow: 0 0 15px 0 #cccccc;
    -moz-box-shadow: 0 0 15px 0 #f6f6f6;
}

.authorization-panel > .columns, .authorization-panel > .columns > .column {
    height: 100%;
}

.authorization-panel > .columns > .column:first-child {
    border-right: 1px solid #f6f6f6;
}

.authorization-panel > .columns > .column {
    max-width: 500px;
}

.authorization-buttons-panel {
    padding: 30px 20px 30px 40px;
}

.authorization-rights-panel {
    padding: 20px 20px 20px 20px;
    overflow-y: auto;
    height: 385px;
    margin-right: 10px;
}

.access-right {
    padding-bottom: 20px;
}

.access-right .title {
    color: #CCCCCC;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 0;
}

/* scrollbar customization */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-button {
    width: 0px;
    height: 0px;
}
::-webkit-scrollbar-thumb {
    background: #555555;
    border: 0px none #ffffff;
    border-radius: 50px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555555;
}
::-webkit-scrollbar-thumb:active {
    background: #555555;
}
::-webkit-scrollbar-track {
    background: #CCCCCC;
    border: 0px none #ffffff;
    border-radius: 50px;
}
::-webkit-scrollbar-track:hover {
    background: #CCCCCC;
}
::-webkit-scrollbar-track:active {
    background: #CCCCCC;
}
::-webkit-scrollbar-corner {
    background: transparent;
}

.shadow {
    box-shadow: 0 0 15px 0 #cccccc;
    -webkit-box-shadow: 0 0 15px 0 #cccccc;
    -moz-box-shadow: 0 0 15px 0 #cccccc;
}

.grey-bg-color {
    background-color: #cccccc!important;
}

.grey-color {
    color: #cccccc!important;
}

.light-grey-bg-color {
    background-color: #f6f6f6!important;
}

.light-grey-color {
    color: #f6f6f6!important;
}

.whitelabel-logo {
    margin-top: 5px;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input.is-active.is-error, .input.is-focused.is-error, .input:active.is-error,
.input:focus.is-error, .textarea.is-active.is-error, .textarea.is-focused.is-error,
.textarea:active.is-error, .textarea:focus.is-error {
    border-color: #d43536!important;
}

.input, .textarea {
    height: 48px;
    border-radius: 4px;
    border: 1px solid #CCCCCC;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-size: 14px;
}

.control.has-icons-right .input, .control.has-icons-right .select select {
    padding-right: 3em;
}

.control.has-icons-left .input, .control.has-icons-left .select select {
    padding-left: 3em;
}

.control.has-icons-left .icon, .control.has-icons-right .icon {
    top: 8px;
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: #CCCCCC;
}
::-moz-placeholder { /* Firefox 19+ */
    color: #CCCCCC;
}
:-ms-input-placeholder { /* IE 10+ */
    color: #CCCCCC;
}
:-moz-placeholder { /* Firefox 18- */
    color: #CCCCCC;
}

.button {
    border-radius: 4px;
    height: 48px;
    padding-left: 25px;
    padding-right: 25px;
}

.button.is-link {
    height: auto;
    padding: 8px 10px;
}

.button.is-link, .button.is-link.is-active, .button.is-link.is-focused, .button.is-link.is-hovered, .button.is-link:active, .button.is-link:focus, .button.is-link:hover {
    font-weight: bold!important;
}

.button.is-link.is-active, .button.is-link.is-focused, .button.is-link.is-hovered, .button.is-link:active, .button.is-link:focus, .button.is-link:hover,
a.navbar-item:active, a.navbar-item:focus, a.navbar-item:hover{
    background-color: transparent;
}

.login-button-block, .send-button-block, .to-login-button-block {
    margin-top: 30px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.login-button-block input, .login-button-block button, .send-button-block input, .to-login-button-block input {
    margin-left: auto;
}

.authorization-buttons-block {
    margin-top: 100px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.authorization-buttons-block a.is-primary {
    margin-left: auto;
}

.authorization-buttons-block a.is-light {
    margin-right: auto;
}

.forgot-password-button-block, .back-to-login-button-block {
    display: flex;
    justify-content: center;
}

.application-name {
    display: flex;
    justify-content: center;
    margin-top: -20px;
    font-size: 16px;
}

.links-panel {
    background-color: white;
    margin: 20px 40px 20px 0px;
    border-radius: 4px;
    box-shadow: 0 0 15px 0 #f6f6f6;
    -webkit-box-shadow: 0 0 15px 0 #f6f6f6;
    -moz-box-shadow: 0 0 15px 0 #f6f6f6;
    padding: 20px;
    text-align: center;
}

.title-block {
    font-size: 20px;
    font-weight: bold;
}

hr {
    margin-top: 10px;
    margin-bottom: 15px;
}

.is-error {
    background-color: #fae3e3;
}

.error-message {
    color: #d43536;
}

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

.is-fullwidth {
    width: 100%;
}

.forgot-password-panel .title-block, .reset-password-panel .title-block {
    margin-bottom: 10px;
}

.forgot-password-panel p.description, .reset-password-panel p.description {
    margin-bottom: 20px;
}

.forgot-password-panel .send-button-block {
    margin-top: 100px;
}

.forgot-password-panel .reset-password-email {
    margin: 100px 0;
    text-align: center;
}

.reset-password-panel p.info-message {
    margin: 130px 0;
    text-align: center;
}

.navbar-item img {
    max-height: 45px;
}

footer {
    background-color: #6a6a6a;
    color: #CCCCCC;
}

footer .button.is-link {
    color: #CCCCCC;
    text-decoration: none;
    font-weight: normal!important;
}

footer .button.is-link.is-active {
    background-color: transparent;
    color: #24aef5;
    font-weight: normal!important;
}

p.copyright {
    height: 100%;
    padding-top: 10px;
    padding-right: 5px;
}

.trust-device {
    font-size: 0.9rem;
    color: #6a6a6a;
    padding: 5px;
}

.loader {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;

    position: absolute;

    transform: translateY(-50%);
    display: none; /* hidden by default */
}

@media (max-width: 992px) {
    .root-container {
        height: 800px;
        width: auto;
    }

    .main-container {
        width: auto;
    }

    .gray-bg-block {
        height: 319px;
        background-color: #f6f6f6;
        border-radius: 4px;
    }

    p.copyright {
        padding: 10px 0;
    }
}

@media (max-width: 768px) {

    .gray-bg-block {
        height: 720px;
    }

    .reset-password .gray-bg-block {
        height: 370px;
    }

    .credentials-panel, .forgot-password-panel, .reset-password-panel {
        position: relative;
        width: auto;
        margin-left: 30px;
        margin-right: 30px;
    }

    .main-container {
        margin-top: 80px;
        margin-bottom: 100px;
        width: auto;
    }

    .navbar-brand a.navbar-item {
        margin-left: auto;
        margin-right: auto;
    }

    footer .column {
        padding: 0;
        text-align: center;
    }

    footer .column:not(:first-child) .button.is-link {
        padding: 0px 10px;
    }

    footer .column:first-child .button.is-link {
        padding-bottom: 15px;
    }

    .authorization-panel {
        width: auto;
        height: auto;
        margin-left: 30px;
        margin-right: 30px;
    }

    .authorization-rights-panel {
        background-color: #f6f6f6;
        border-radius: 4px;
        margin-top: 20px;
    }

    .authorization-buttons-block {
        margin-top: 30px;
    }

    .authorization-buttons-panel .whitelabel-logo {
        margin-bottom: 30px;
    }

    .authorization-buttons-panel {
        padding: 30px 20px 30px 20px;
    }
}

@media (max-width: 350px) {
    .authorization-buttons-block .button {
        padding: 15px;
    }

}
