@font-face {
    font-family: 'Rostelecom';
    src: url('/themes/default/fonts/Rostelecom-Medium.woff2') format('woff2'),
    url('/themes/default/fonts/Rostelecom-Medium.woff') format('woff'),
    url('/themes/default/fonts/Rostelecom-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Rostelecom';
    src: url('/themes/default/fonts/Rostelecom-Regular.woff2') format('woff2'),
    url('/themes/default/fonts/Rostelecom-Regular.woff') format('woff'),
    url('/themes/default/fonts/Rostelecom-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Rostelecom';
    src: url('/themes/default/fonts/Rostelecom-Light.woff2') format('woff2'),
    url('/themes/default/fonts/Rostelecom-Light.woff') format('woff'),
    url('/themes/default/fonts/Rostelecom-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Rostelecom';
    src: url('/themes/default/fonts/Rostelecom-Bold.woff2') format('woff2'),
    url('/themes/default/fonts/Rostelecom-Bold.woff') format('woff'),
    url('/themes/default/fonts/Rostelecom-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'RostelecomOffWhite';
    src: url('/themes/default/fonts/Rostelecom-OffWhite.woff2') format('woff2'),
    url('/themes/default/fonts/Rostelecom-OffWhite.woff') format('woff'),
    url('/themes/default/fonts/Rostelecom-OffWhite.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: Rostelecom, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

a {
    color: #101828;
    text-decoration: underline;
}
a:hover, a:active {
    color: #7800ff;
}

.logo {
    height: 4rem;
    width: auto;
}

.noscript {
    background-color: #d91a20;
    color: #fff;
    text-align: center;
    padding: 1vh 5vw;
    font-size: 1rem;
}

.header {
    margin-top: 4vh;
    margin-bottom: 9vh;
}

.subtitle {
    margin-bottom: 2vh;
    font-size: 1rem;
}

.lang-switch {
    font-size: 2rem;
    text-align: right;
    padding-top: .8rem;
}

.lang-switch a {
    color: #cdcdcd;
    text-decoration: none;
}

h1, .pass-idf {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.4;
}

.pass-idf {
    margin-bottom: 6vh;
    padding-right: 2vw;
}

.text-auth {
    text-align: center;
    margin-bottom: 3vh;
}

.user-agree {
    margin-bottom: 3vh;
}

.label-agreement {
    font-size: 1rem;
    line-height: 1.2;
    padding-top: .6rem;
    padding-right: 1rem !important;
}

.idf-option {
    margin-bottom: 3vh;
}

.help-icon {
    cursor: pointer;
    width: auto;
    height: 3rem;
    margin-top: 1.3vh;
    margin-left: 3vw;
}

.default-btn {
    display: block;
    width: 100%;
    border-radius: 5px;
    background-color: #ff4f12;
    background-position: center;
    transition: background 0.8s;
    color: #fff;
    border: 0;
    text-align: center;
    font-size: 1.5rem;
    font-family: inherit;
    padding: 2.5vh 0;
    cursor: pointer;
}

.default-btn.dark {
    background-color: #7700ff;
}

.default-btn:disabled, .default-btn.disabled {
    background-color: #e6e6e6;
    cursor: default;
}

.default-btn:hover {
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.3);
}

.default-btn:hover:disabled, .default-btn:hover.disabled {
    box-shadow: none;
}

.default-btn:focus {
    outline: none;
}

.default-btn:active {
    background: #ff4f12;
    background: radial-gradient(circle at left, #fa8b65 0%, #fa8b65 70%, #ff4f12 70%);
}

.default-btn.dark:active {
    background: #7700ff;
    background: radial-gradient(circle at left, #a04dff 0%, #a04dff 70%, #7700ff 70%);
}

.input-text {
    position:relative;
}

.input-text input {
    font-size: 1.4rem;
    padding:10px 10px 10px 0;
    display:block;
    border:none;
    border-bottom: solid 2px #cdcdcd;
    width: 100%;
    margin-top: 2.5vh;
}

.input-text input:focus {
    outline: none;
    border-bottom: solid 2px #7700ff;
}

.input-text label {
    color: #2f302f;
    opacity: 0.5;
    font-size: 1.4rem;
    font-weight:normal;
    position:absolute;
    pointer-events:none;
    left:0;
    top:1rem;
    transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
}

.input-text input:focus ~ label, .input-text input:valid ~ label {
    top:-1rem;
    font-size:1rem;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    border-radius: 0;
}

.input-checkbox label, .input-radio label {
    font-weight: normal;
    cursor: pointer;
    position: relative;
    margin: 1vh 0;
}

.input-checkbox input[type=checkbox], .input-radio input[type=radio] {
    position: absolute;
    left: -1000em;
}

.input-checkbox input[type=checkbox] + label:before {
    content: "";
    display: inline-block;
    width  : 2rem;
    height : 2rem;
    border: .2rem solid #cdcdcd;
    position: relative;
}

.input-checkbox input[type=checkbox]:checked + label:after {
    opacity: 1;
    content: '';
    position: absolute;
    width: 1rem;
    height: 0.6rem;
    background: transparent;
    top: 0.6rem;
    left: 0.5rem;
    border: .3rem solid #7700ff;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
}

/* Modal */
.blocker {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    overflow: auto;
    z-index: 1;
    padding: 5vh 5vw;
    box-sizing: border-box;
    /*
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.5);
    */
    text-align: center;
}

.blocker:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -0.05em;
}
.blocker.behind {
    background-color: transparent;
}

.modal {
    display: inline-block;
    vertical-align: top;
    position: relative;
    z-index: 2;
    max-width: 500px;
    box-sizing: border-box;
    width: 90%;
    background: #fff;
    padding: 5px 30px 15px;
    /*margin-top: 10vh;*/
    text-align: left;
    max-height: 80vh;
    box-shadow: 0 20px 30px 0 rgba(0,0,0,0.3);
}

.modal-help p  {
    font-size: .8rem;
}

.modal-agreement li {
    font-size: .8rem;
}

.offer h2 { text-align: center; }
.offer .intro { text-align: center; }
.offer ol { counter-reset: item; padding-left: 0; -webkit-padding-start: 0; }
.offer li{ display: block; }
.offer li:before { content: counters(item, ".") ". "; counter-increment: item }
.offer address { font-family: inherit; white-space: pre-line; }

.modal h2 {
    font-size: 1.5rem;
}

.modal .modal-scroll {
    height: calc(80vh - 2rem);
    position: relative;
    overflow: auto;
}

.close-modal {
    display: none;
}

.close-button {
    font-size: 2rem;
    line-height: 1.5rem;
    text-align: right;
    margin-right: -20px;
}

.close-button a {
    text-decoration: none;
}

.close-error {
    margin-top: 4vh;
}

.close-error a.default-btn {
    font-size: 1rem;
    padding: 2vh 0;
    text-decoration: none;
}

.close-error a.default-btn:hover {
    color: #fff;
    text-decoration: none;
}

.error .modal, .help .modal {
    display: none;
}

.back-link {
    margin-bottom: 4vh;
}

.phone-field {
    margin-bottom: 4vh;
}

.back-link img {
    height: 1.5rem;
    width: auto;
    vertical-align: middle;
}

.back-link a, .back-link a:hover {
    text-decoration: none;
    color: #000;
    font-size: 1.5rem;
}

.spinner {
    --main-size: 80px;
    position: relative;
    display: inline-block;
    width: var(--main-size);
}
.spinner.half {
    --main-size: 40px;
}

.outer {
    width: var(--main-size);
    height: var(--main-size);
    border: 2px solid #7700ff;
    border-right-color: transparent;
    border-radius: var(--main-size);
    position: absolute;
    top: 0;
    left: 0;
    animation: cw 1s linear infinite;
}

@keyframes cw {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.inner {
    width: calc(var(--main-size) / 2);
    height: calc(var(--main-size) / 2);
    border: 2px solid #ff4f12;
    border-left-color: transparent;
    border-radius: calc(var(--main-size) / 2);
    position: absolute;
    top: calc(var(--main-size) / 4);
    left: calc(var(--main-size) / 4);
    animation: ccw 1s linear infinite;
}

@keyframes ccw {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@media (max-width: 575.98px) {
    .logo {
        height: 2rem;
    }
    .lang-switch {
        font-size: 1rem;
        padding-top: .5rem;
    }
    h1, .pass-idf {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    .default-btn {
        font-size: 1rem;
        padding: 2vh 0;
    }
    .idf-option {
        margin-bottom: 2vh;
    }
    .help-icon {
        height: 2rem;
        margin-top: 1.3vh;
        margin-left: 4vw;
    }
    .input-checkbox input[type=checkbox] + label:before {
        width  : 1.5rem;
        height : 1.5rem;
        border: .2rem solid #cdcdcd;
    }

    .input-checkbox input[type=checkbox]:checked + label:after {
        width: .8rem;
        height: .5rem;
        top: .4rem;
        left: .4rem;
        border: .25rem solid #7700ff;
        border-top: none;
        border-right: none;
    }

    .back-link img {
        height: 1rem;
    }

    .back-link a, .back-link a:hover {
        font-size: 1rem;
    }

}

