body {
    position: relative;
    min-height: 100vh;
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-family: "Segoe UI Webfont",-apple-system,"Helvetica Neue","Lucida Grande","Roboto","Ebrima","Nirmala UI","Gadugi","Segoe Xbox Symbol","Segoe UI Symbol","Meiryo UI","Khmer UI","Tunga","Lao UI","Raavi","Iskoola Pota","Latha","Leelawadee","Microsoft YaHei UI","Microsoft JhengHei UI","Malgun Gothic","Estrangelo Edessa","Microsoft Himalaya","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Yi Baiti","Mongolian Baiti","MV Boli","Myanmar Text","Cambria Math";
    line-height: 1.3;
    color: #000;
    -webkit-text-size-adjust: none;
    -webkit-overflow-scrolling: touch;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
}

.visually-hidden {
    position: absolute;
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
    margin: -1px;
}

.page {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.page::after {
    content: '';
    min-height: inherit;
    font-size: 0;
}

.form-wrap {
    max-width: 350px;
    width: 100%;
    margin: 30px 15px;
    background-color: #fff;
}

.header {
    position: relative;
}

.company-name {
    display: block;
    margin-right: 40px;
    font-size: 1.2rem;
}

.logout-btn {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    font-size: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
    color: #1d66b8;
}

.logout-btn:hover,
.logout-btn:focus {
    outline: none;
    color: #4290df;
}

.logout-btn__icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.form-offset_top {
    margin-top: 2em;
}

.form__title {
    margin-top: 1em;
    margin-bottom: 0;
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: normal;
    color: rgb(38, 38, 38);
}

.form__description {
    margin-top: 1em;
    margin-bottom: 0;
    font-size: 1rem;
}

.form__actions {
    margin-top: 1em;
}

.form__field-wrap {
    position: relative;
    min-height: 54px;
}
.form__field-wrap_with-label {
    min-height: 84px;
}

.form__field-wrap:not(:first-child),
.form__checkbox-wrap:not(:first-child) {
    margin-top: 1em;
}
.form__checkbox-wrap {
    padding-bottom: 20px;
}

.form__field {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 34px;
    margin-top: 0;
    padding: 6px 10px;
    font-size: 1rem;
    line-height: 1.25;
    font-family: inherit;
    text-align: left;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.8);
}

.form__field:focus {
    outline: 1px solid rgb(0, 103, 184);
}

.form__label {
    display: block;
    margin-bottom: 10px;
}

.form__field-error {
    margin-left: 10px;
    font-size: 0.8rem;
    color: #e81123;
}

.form__submit {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 8px 16px;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: normal;
    color: rgb(255, 255, 255);
    background-color: rgb(0, 103, 184);
    cursor: pointer;
    text-align: center;
    border: none;
}

.form__submit:hover,
.form__submit:focus {
    background-color: #4290df;
    outline: none;
}

.form__link {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 7px 16px;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: normal;
    color: rgb(0, 103, 184);
    background-color: #fff;
    text-decoration: none;
    text-align: center;
    border: 1px solid rgb(0, 103, 184);
}

.form__link:hover,
.form__link:focus {
    border-color: #4290df;
    color: #4290df;
    outline: none;
}

.form__action-btn {
    cursor: pointer;
}


.form__field-description {
    margin-bottom: 1em;
    margin-top: 0;
}

.custom-select-wrap {
    position: relative;
}

.custom-select::-ms-expand {
    display: none;
}

.custom-select-options {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style-type: none;
    background-color: #ffffff;
    border: 1px solid #aaa;
    border-top: none;
    cursor: pointer;
}

.custom-select-options li {
    padding: 6px 10px;
    cursor: pointer;
}

.custom-select-options li:hover {
    background-color: #eee;
}

.custom-select-options li:focus {
    background-color: #eee;
    outline: none;
}

.custom-select-options:not(:empty) + .select-arrow-down {
    position: absolute;
    bottom: 13px;
    right: 12px;
    z-index: 12;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #1d66b8;
    cursor: pointer;
}

.custom-select-options:not(:empty) ~ .custom-select-input-btn,
.custom-select-options:not(:empty) ~ .custom-select-input {
    padding-right: 34px;
}

.custom-select-input-btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-options:not(:empty) ~ .custom-select-input-btn {
    cursor: pointer;
}

.hidden {
    display: none;
}

.popup-open {
    height: 100vh;
    overflow: hidden;
}

.body-cover {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    overflow: auto;
}

.body-cover.visible {
    display: block
}

.back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background-color: rgba(0, 0, 0, .5);
}

.pop-up-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    min-height: 100vh;
}

.pop-up-wrapper::after {
    content: '';
    min-height: inherit;
    font-size: 0;
}

.pop-up-content {
    position: relative;
    width: 100%;
    max-width: 370px;
    background-color: #fff;
}

.pop-up__title {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1.7rem;
    line-height: 1.2;
    font-weight: normal;
    color: rgb(38, 38, 38);
}

.notification-wrapper {
    display: none;
    position: fixed;
    padding: 20px 30px;
    top: 40px;
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    z-index: -1;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    background-color: #fff;
    -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.notification-wrapper.visible {
    display: block;
    z-index: 9999;
}


@media (min-width: 600px) {
    .page {
        background-color: #4290df;
        background-image: url(../img/illustration.jpg);
        background-repeat: no-repeat;
        background-size: cover;
    }

    .form-wrap {
        padding: 36px;
        -webkit-box-shadow: 0 2px 3px rgba(0,0,0,0.55);
        box-shadow: 0 2px 3px rgba(0,0,0,0.55);
        border: 1px solid rgba(0,0,0,0.4);
    }

    .form__actions {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .form__action-btn {
        width: calc(50% - 0.5rem);
        flex-grow: 1;
    }

    .form__action-btn:not(:first-child) {
        margin-left: 20px;
    }

    .form__action-btn[hidden] {
        margin-left: 0;
    }

    .form__action-btn_full {
        width: 100%;
    }

    .pop-up-content {
        margin: 48px;
        padding: 36px;
    }
}

@media (max-width: 600px) {
    .page {
        background-color: #fff;
    }

    .form-wrap {
        padding: 15px;
    }

    .pop-up-content {
        margin: 15px;
        padding: 30px 15px;
    }

    .form__submit {
        display: block;
        width: 100%
    }

    .form__action-btn:not([hidden]) {
        display: block;
        width: 100%;
    }

    .form__action-btn{
        margin-top: 1rem;
    }
}

.qr-code-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    width: 290px;
    height: 290px;
    border: none;
}

.footer {
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px 15px;
    background-color: #717171;
    font-size: 0.9rem;
    font-weight: normal;
    text-align: right;
}

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

.footer a:hover,
.footer a:focus {
    text-decoration: underline;
}