/*
 * Level.ru Corporate Style - Login Page
 * Color Palette:
 * Primary Dark: #2d2f33
 * Primary Black: #151618
 * Medium Gray: #55585e
 * Light Gray: #a3a3a5
 * Border Gray: #d5d5d6
 * Background Gray: #e6e6e6
 * Light Background: #f3f3f3
 * Accent Blue: #283c4b
 * Accent Green: #7bad83
 * Accent Red: #d96667
 * Premium Brown: #49393b
 * Premium Tan: #d7ae93
 * Premium Secondary: #32312e
 */

@font-face {
    font-family: 'Stolzl';
    src: local('Stolzl'), local('Stolzl Regular');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Stolzl';
    src: local('Stolzl Medium'), local('Stolzl-Medium');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Stolzl';
    src: local('Stolzl Bold'), local('Stolzl-Bold');
    font-weight: 700;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#mfaGreetingDescription {
    display: none;
}

iframe[src^="https://access.multifactor.ru"] {
    z-index: 1000;
}

html, body {
    height: 100%;
    width: 100%;
    max-width: 100%;
    background-color: #ffffff;
    color: #2d2f33;
    font-weight: 400;
    font-family: 'Stolzl', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-size: 14px;
    line-height: 1.3;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
}

#footer {
    display:none;
}

#noScript {
    margin: 16px;
    color: #2d2f33;
}

:lang(en-GB) {
    quotes: '\2018' '\2019' '\201C' '\201D';
}

:lang(zh) {
    font-family: 微软雅黑;
}

@-ms-viewport {
    width: device-width;
}

@-moz-viewport {
    width: device-width;
}

@-o-viewport {
    width: device-width;
}

@-webkit-viewport {
    width: device-width;
}

@viewport {
    width: device-width;
}

/* Theme layout styles */

#fullPage {
    position: absolute;
    bottom: 28px;
    top: 0px;
    width: 100%;
}

#brandingWrapper {
    background-color: #ffffff;
    height: 100%;
    width: 100%;
    position: relative;
}

#branding {
    background-color: inherit;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    width: 100%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

#contentWrapper {
    background-color: transparent;
    height: 0px;
    width: 100%;
}

#content {
    /* Set content to center */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-color: #ffffff;

    /* Set size margins */
    margin-bottom: 28px;
    margin-left: auto;
    margin-right: auto;
    min-height: 290px;
    min-width: 320px;
    max-width: 460px;
    width: 100%;
    height: auto;
    padding: 48px 40px;

    /* No shadow */
    box-shadow: none;
    border-radius: 4px;
    border: none;

    /* Ensure visibility on all browsers */
    visibility: visible;
    opacity: 1;
    z-index: 10;
}

#header {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Stolzl', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    padding: 0;
    margin: 0 0 24px 0;
    height: auto;
    width: 100%;
    background-color: transparent;
    color: #2d2f33;
    letter-spacing: 0;
    line-height: 1.12;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

    #header h4 {
        font-size: 0;
        color: transparent;
        width: 100%;
        height: 120px;
        background-image: url('../images/idp/logo.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        margin: 0;
    }

    #header img {
        width: auto;
        height: 100%;
        max-height: 48px;
        position: relative;
        top: 0;
    }

#loginMessage {
    box-sizing: border-box;
    color: #2d2f33;
    direction: ltr;
    display: none;
    font-family: 'Stolzl', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: 28px;
    height: auto;
    line-height: 1.12;
    margin-bottom: 24px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 24px;
    padding: 0;
    text-align: left;
    text-size-adjust: 100%;
    width: 100%;
    background-color: transparent;
    letter-spacing: 0;
}

#loginForm {
    width: 100%;
}

#workArea, #header {
    word-wrap: break-word;
}

#workArea {
    margin-bottom: 4%;
    margin-top: 16px;
    background-color: transparent;
}

#footerPlaceholder {
    height: 0px;
}

#footer {
    background-color: rgba(45, 47, 51, 0.9);
    backdrop-filter: blur(10px);
    bottom: 0;
    box-sizing: border-box;
    clear: both;
    color: #ffffff;
    direction: ltr;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    font-weight: normal;
    height: 28px;
    line-height: 28px;
    overflow: visible;
    position: fixed;
    text-align: left;
    text-size-adjust: 100%;
    width: 100%;
}

#footerLinks {
    padding-left: 10px;
    color: #ffffff;
}

.pageLink.footerLink {
    color: #ffffff;
}

#copyright {
    box-sizing: border-box;
    color: #ffffff;
    direction: ltr;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    font-weight: normal;
    height: 28px;
    line-height: 28px;
    margin-left: 8px;
    margin-right: 8px;
    text-align: left;
    text-size-adjust: 100%;
}

#userNameArea, #passwordArea {
    box-sizing: border-box;
    color: #2d2f33;
    direction: ltr;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: normal;
    height: auto;
    min-height: 60px;
    line-height: 1.3;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    text-size-adjust: 100%;
    width: 100%;
}

#introduction {
    font-weight: 500;
    text-align: center;
}

#updatePasswordForm #submitButton, #cancelButton {
    width: 49%;
}

#oldPasswordArea, #newPasswordArea {
    margin-bottom: 7px;
}

#errorMessage{
    margin-top: 5px;
}

#error {
    display: block;
    clear: both;
    position: relative;
    z-index: 1;
}

.pageLink {
    padding-left: 5px;
    padding-right: 5px;
    box-sizing: border-box;
    color: #2d2f33;
    direction: ltr;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    font-weight: normal;
    height: 28px;
    line-height: 28px;
    margin-left: 0px;
    margin-right: 0px;
    text-align: left;
    text-size-adjust: 100%;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.pageLink:hover {
    color: #55585e;
}

/* Common content styles */

.clear {
    clear: both;
}

.float {
    float: left;
}

.floatReverse {
    float: right;
}

.indent {
    margin-left: 16px;
}

.indentNonCollapsible {
    padding-left: 16px;
}

.hidden {
    display: none;
}

.notHidden {
    display: inherit;
}

.error {
    color: #d96667;
    font-weight: 500;
}

.actionLink {
    margin-top: 5px;
    margin-bottom: 8px;
    display: block;
}

a {
    color: #283c4b;
    text-decoration: none;
    background-color: transparent;
    word-wrap: normal;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #55585e;
    text-decoration: underline;
}

ul {
    list-style-type: disc;
}

ul, ol, dd {
    padding: 0 0 0 16px;
}

h1, h2, h3, h4, h5, label {
    margin-bottom: 8px;
}

.submitMargin {
    margin-top: 18px;
    margin-bottom: 18px;
}

.topFieldMargin {
    margin-top: 8px;
}

.fieldMargin {
    margin-bottom: 8px;
}

.groupMargin {
    margin-bottom: 0px;
}

.sectionMargin {
    margin-bottom: 64px;
}

.block {
    display: block;
}

.autoWidth {
    width: auto;
}

.fullWidth {
    width: 100%;
}

.fullWidthIndent {
    width: calc(100% - 16px);
}

.smallTopSpacing {
    margin-top: 15px;
}

.mediumTopSpacing {
    margin-top: 25px;
}

.largeTopSpacing {
    margin-top: 35px;
}

.smallBottomSpacing {
    margin-bottom: 5px;
}

.mediumBottomSpacing {
    margin-bottom: 15px;
}

.largeBottomSpacing {
    margin-bottom: 25px;
}

#openingMessage {
    margin-bottom: 4px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    padding-bottom: 20px;
}

input {
    max-width: 100%;
    font-family: inherit;
    margin-top: 0px;
    margin-bottom: 0px;
}

input[type="radio"], input[type="checkbox"] {
    vertical-align: middle;
    margin-bottom: 0px;
}

.paginatedPageForm {
    min-height: 43px;
    height: auto;
}

.errorUsernamePaginated {
    top: -10px;
}

.errorText {
    display: inline-block;
}

.authOptionsError {
    display: inline-block;
}

.authOptionsErrorText {
    padding-bottom: 20px;
    display: inline-block;
}

.error {
    position: relative;
}

#kmsiArea {
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    margin-top: 12px;
}

    #kmsiArea label {
        margin-bottom: 0;
        margin-left: 8px;
        font-size: 14px;
        color: #55585e;
        cursor: pointer;
        user-select: none;
    }

    #kmsiArea input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: #2d2f33;
    }

    #kmsiArea.kmsiAreaPaginated {
        padding-top: 12px;
        padding-bottom: 0;
    }

.authOptionsTitlePaginated {
    font-weight: 700;
    font-size: 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.3;
}

.buttonAreaPaginated {
    padding: 0px 0px 55px 0px;
    position: relative;
}

.bannerContainer {
    padding-bottom: 20px;
    border-bottom: 1px solid #e6e6e6;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    min-height: 60px;
}

.identityBanner {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    padding-left: 8px;
    color: #2d2f33;
    font-weight: 500;
}

.back {
    float: left;
    border-radius: 4px;
    padding: 8px;
    transition: all 0.3s ease-in-out;
    color: #2d2f33;
    cursor: pointer;
}

.back:hover {
    background: #f3f3f3;
    transform: translateX(-2px);
}

#optionIcon {
    float: left;
}

.optionButtonContainer:hover {
    background: #f3f3f3;
}

.optionButton {
    align-items: flex-start;
    box-sizing: border-box;
    cursor: pointer;
    direction: ltr;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    height: 40px;
    line-height: 1.3;
    margin-bottom: 11px;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    max-width: 100%;
    min-width: 165px;
    overflow: hidden;
    padding: 12px;
    position: relative;
    text-overflow: ellipsis;
    text-size-adjust: 100%;
    touch-action: manipulation;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    border-radius: 4px;
    border: 1px solid #d5d5d6;
    transition: all 0.3s ease-in-out;
}

.optionButton:hover {
    border-color: #a3a3a5;
}

span.next {
    border: 1px solid transparent;
    border-radius: 100px;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Stolzl', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    height: 48px;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    padding: 0 19px;
    position: relative;
    user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
    white-space: nowrap;
    width: 100%;
    min-width: 120px;
    -webkit-appearance: none;
    background-color: #2d2f33;
    color: #ffffff;
    float: none;
    transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, height 0.3s ease-in-out, width 0.3s ease-in-out, max-width 0.3s ease-in-out;
    outline: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

span.next:hover {
    background-color: #55585e;
}

span.next:active {
    background-color: #141517;
}

#nextButtonArea {
    margin-top: 32px;
    text-align: left;
    clear: both;
    position: relative;
    z-index: 0;
}

span.submit.submitPaginated {
    height: 48px;
    line-height: 48px;
    min-width: 120px;
    bottom: 0;
    width: 100%;
    float: none;
}

input[type="submit"].submit.submitPaginated {
    height: 48px;
    line-height: 48px;
    min-width: 120px;
    width: 100%;
    float: none;
}

    span.submit, input[type="submit"] {
        background-color: #2d2f33;
        border: 1px solid transparent;
        border-radius: 100px;
        box-sizing: border-box;
        color: #ffffff;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-family: 'Stolzl', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
        font-size: 14px;
        font-weight: 700;
        height: 48px;
        line-height: 1.3;
        margin: 0;
        max-width: 100%;
        min-width: 120px;
        overflow: hidden;
        padding: 0 19px;
        position: relative;
        touch-action: manipulation;
        user-select: none;
        vertical-align: middle;
        white-space: nowrap;
        width: 100%;
        -webkit-appearance: none;
        transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, height 0.3s ease-in-out, width 0.3s ease-in-out, max-width 0.3s ease-in-out;
        outline: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }

    input[type="submit"]:hover, span.submit:hover {
        background-color: #55585e;
    }

    input[type="submit"]:active, span.submit:active {
        background-color: #141517;
    }

span.rightHalfWidthButton {
    width: auto;
    min-width: 120px;
    float: right;
}

input.text.textPaginated {
    border: 1px solid #d5d5d6;
    border-radius: 100px;
    transition: border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

input.text.textPaginated:focus {
    border: 1px solid #2d2f33;
    outline: none;
}

input.text {
    background-color: #ffffff;
    background-image: none;
    border: 1px solid #d5d5d6;
    border-radius: 100px;
    box-sizing: border-box;
    color: #2d2f33;
    cursor: text;
    direction: ltr;
    display: block;
    font-family: 'Stolzl', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    height: 48px;
    line-height: 1.3;
    margin: 0;
    max-width: 100%;
    outline: none;
    padding: 14px 16px;
    text-align: start;
    text-size-adjust: 100%;
    user-select: text;
    -webkit-appearance: none;
    transition: border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

input.text:focus {
    background-color: #ffffff;
    border-color: #2d2f33;
}

input.text:hover:not(:focus) {
    border-color: #a3a3a5;
}

input.text::placeholder {
    color: #a3a3a5;
    opacity: 1;
}

select {
    height: 40px;
    min-width: 60px;
    max-width: 100%;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: none;
    padding: 8px 12px;
    font-family: inherit;
    border: 1px solid #d5d5d6;
    border-radius: 4px;
    background-color: #ffffff;
    color: #2d2f33;
}

h1, .giantText {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
}

h2, .bigText {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
}

h3, .normalText {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

h4, .smallText {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

h5, .tinyText {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.hint {
    color: #a3a3a5;
}

.emphasis {
    font-weight: 700;
    color: #2d2f33;
}

.smallIcon {
    height: 20px;
    padding-right: 12px;
    vertical-align: middle;
}

.largeIcon {
    height: 48px;
    vertical-align: middle;
}

.largeTextNoWrap {
    height: 48px;
    display: table-cell;
    vertical-align: middle;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 700;
}

.idp {
    height: 48px;
    clear: both;
    padding: 8px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease-in-out;
}

    .idp:hover {
        background-color: #f3f3f3;
        cursor: pointer;
    }

.idpDescription {
    width: 80%;
    cursor: pointer;
}

.submit.nextButton{
    margin-left: 0;
}

.submitMargin.submitModified {
    margin-bottom: 60px;
}

.submit.modifiedSignIn{
    display: block;
    width: auto;
    float: right;
}

#submissionArea{
    margin-top: 8px;
}

/* Tablet and mobile styles */
@media (max-width: 1024px) {
    #content {
        max-width: 90%;
        width: calc(100% - 40px);
        padding: 40px 32px;
    }

    #loginMessage {
        font-size: 24px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow: hidden !important;
        height: 100vh !important;
        position: fixed !important;
        width: 100% !important;
        overscroll-behavior: none !important;
        -webkit-overflow-scrolling: auto !important;
        touch-action: none !important;
    }

    #fullPage {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
        touch-action: pan-y !important;
    }

    #brandingWrapper {
        display: none;
    }

    #branding {
        display: none;
    }

    #contentWrapper {
        float: none;
        width: 100%;
        height: auto;
        overflow: visible !important;
    }

    #content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: calc(100% - 32px);
        width: calc(100% - 32px);
        padding: 32px 24px;
        border-radius: 4px;
        margin: 0 auto;
        overflow-y: auto !important;
        max-height: 90vh !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #loginMessage {
        font-size: 20px;
        margin-top: 16px;
        margin-bottom: 20px;
    }

    span.submit, input[type="submit"], span.next {
        width: 100%;
        min-width: auto;
    }
}

/* Fix for screens 425px and below */
@media (max-width: 425px) {
    html, body {
        overflow: hidden !important;
        height: 100vh !important;
        width: 100% !important;
        position: fixed !important;
        overscroll-behavior: none !important;
        touch-action: none !important;
    }

    #fullPage {
        position: fixed !important;
        bottom: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    #brandingWrapper {
        display: none;
    }

    #branding {
        display: none;
    }

    #contentWrapper {
        height: auto;
        width: 100%;
        overflow: visible;
        float: none;
    }

    #content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        background-color: #ffffff;
        margin: 0 auto;
        min-height: auto;
        min-width: 0;
        max-width: calc(100% - 32px);
        width: calc(100% - 32px);
        height: auto;
        max-height: 90vh;
        padding: 24px 20px;
        box-shadow: none;
        border-radius: 4px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #loginMessage {
        font-size: 18px;
    }
}

@media (max-width: 600px), (max-height: 392px) {
    html, body {
        font-size: 14px;
        overflow: hidden !important;
        height: 100vh !important;
        position: fixed !important;
        overscroll-behavior: none !important;
        touch-action: none !important;
    }

    #fullPage {
        position: fixed !important;
        bottom: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    #brandingWrapper {
        display: none;
    }

    #branding {
        display: none;
    }

    #contentWrapper {
        float: none;
        width: 100%;
        height: auto;
    }

    #content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        background-color: #ffffff;
        margin: 0 auto;
        min-height: auto;
        min-width: 0;
        max-width: calc(100% - 32px);
        width: calc(100% - 32px);
        height: auto;
        padding: 24px 20px;
        box-shadow: none;
        border-radius: 4px;
    }

    #header {
        font-size: 18px;
        margin-bottom: 12px;
    }

    #loginMessage {
        font-size: 18px;
        margin-top: 12px;
        margin-bottom: 16px;
    }

    #footer {
        background-color: rgba(45, 47, 51, 0.9);
        bottom: 0;
        box-sizing: border-box;
        clear: both;
        color: #ffffff;
        display: none;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
        font-size: 12px;
        font-weight: normal;
        height: 28px;
        line-height: 28px;
        position: fixed;
        text-align: left;
        width: 100%;
        padding: 0 10px;
    }

    #brandingWrapper {
        display: none;
    }

    #branding {
        display: none;
    }

    #contentWrapper {
        float: none;
        width: 100%;
    }

    input.text, input.text.textPaginated {
        background-color: #ffffff;
        border: 1px solid #d5d5d6;
        border-radius: 4px;
        box-sizing: border-box;
        color: #2d2f33;
        display: block;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
        font-size: 14px;
        font-weight: 400;
        height: 48px;
        line-height: 1.3;
        margin: 0;
        max-width: 100%;
        outline: none;
        padding: 12px 16px;
        text-align: start;
        width: 100%;
        transition: all 0.3s ease-in-out;
    }

    input.text:focus, input.text.textPaginated:focus {
        background-color: #ffffff;
        border-color: #2d2f33;
    }

    .identityBanner {
        margin: 16px 0;
        padding: 0 40px 0 8px;
        font-size: 14px;
    }

    .identityBannerImage {
        left: -50px;
    }

    span.submit, input[type="submit"], span.next {
        width: 100%;
        min-width: auto;
        margin-top: 8px;
    }

    #nextButtonArea {
        margin-top: 20px;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    html, body {
        overflow: hidden;
        height: 100vh;
        position: fixed;
    }

    #fullPage {
        position: fixed;
        bottom: 0;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        overflow: hidden;
    }

    #brandingWrapper {
        display: none;
    }

    #branding {
        display: none;
    }

    #contentWrapper {
        float: none;
        width: 100%;
        height: auto;
    }

    #content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 20px 16px;
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        margin: 0 auto;
        min-width: 0;

        
        overflow-x: hidden;
    }

    #loginMessage {
        font-size: 16px;
    }

    input.text, input.text.textPaginated {
        font-size: 16px; /* Prevents zoom on iOS */
        height: 44px;
        padding: 10px 14px;
        border-radius: 100px;
    }

    span.submit, input[type="submit"], span.next {
        height: 44px;
        line-height: 44px;
        font-size: 14px;
        padding: 0 16px;
    }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
    html, body {
        overflow: hidden;
        height: 100vh;
        position: fixed;
    }

    #fullPage {
        position: fixed;
        bottom: 0;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        overflow: hidden;
    }

    #brandingWrapper {
        display: none;
    }

    #branding {
        display: none;
    }

    #contentWrapper {
        float: none;
        width: 100%;
        height: auto;
    }

    #content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 16px 12px;
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        margin: 0 auto;
        min-width: 0;

        overflow-x: hidden;
    }

    #header h4 {
        height: 50px;
    }

    #loginMessage {
        font-size: 14px;
    }
}

/* Large desktop screens */
@media (min-width: 1280px) {
    #content {
        max-width: 480px;
        padding: 56px 48px;
    }

    #loginMessage {
        font-size: 32px;
    }
}

/* Landscape orientation for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    html, body {
        overflow: hidden;
        height: 100vh;
        position: fixed;
    }

    #fullPage {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        overflow: hidden;
    }

    #brandingWrapper {
        display: none;
    }

    #branding {
        display: none;
    }

    #contentWrapper {
        float: none;
        width: 100%;
        height: auto;
    }

    #content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
        padding: 20px;
        max-width: calc(100% - 40px);
        width: calc(100% - 40px);

        
        overflow-x: hidden;
    }

    #loginMessage {
        font-size: 18px;
        margin-top: 8px;
        margin-bottom: 12px;
    }

    #nextButtonArea {
        margin-top: 16px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #2d2f33;
    outline-offset: 2px;
}

/* Loading animation for buttons */
span.submit:active, input[type="submit"]:active, span.next:active {
    transform: translateY(0);
}

/* Custom scrollbar for modern browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f3f3;
}

::-webkit-scrollbar-thumb {
    background: #a3a3a5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #55585e;
}

/* Targets displays using any of Windows' High Contrast Mode themes: */
@media screen and (-ms-high-contrast: active) {
    textarea::-webkit-input-placeholder {
        color: #00FF00;
    }

    textarea:-moz-placeholder {
        color: #00FF00;
    }

    textarea::-moz-placeholder {
        color: #00FF00;
    }

    textarea:-ms-input-placeholder {
        color: #00FF00;
    }
}

/* Targets displays using the Windows' "High Contrast Black" theme: */
@media screen and (-ms-high-contrast: white-on-black) {
    #contentWrapper {
        background-color: #000000;
        color: #ffffff;
    }
    .idp:hover {
        background-color: #ffffff;
        color: #000000;
    }
    #brandingWrapper {
        background-color: #000000;
        color: #ffffff;
    }
    html, body {
        background-color: #000000;
        color: #ffffff;
    }

    textarea::-webkit-input-placeholder {
        color: #ffffff;
    }

    textarea:-moz-placeholder {
        color: #ffffff;
    }

    textarea::-moz-placeholder {
        color: #ffffff;
    }

    textarea:-ms-input-placeholder {
        color: #ffffff;
    }
}

/* Targets displays using the Windows' "High Contrast White" theme: */
@media screen and (-ms-high-contrast: black-on-white) {
    #contentWrapper {
        background-color: #ffffff;
        color: #000000;
    }

    .idp:hover {
        background-color: #000000;
        color: #ffffff;
    }

    #brandingWrapper {
        background-color: #ffffff;
        color: #000000;
    }

    html, body {
        background-color: #ffffff;
        color: #000000;
    }

    textarea::-webkit-input-placeholder {
        color: #000000;
    }

    textarea:-moz-placeholder {
        color: #000000;
    }

    textarea::-moz-placeholder {
        color: #000000;
    }

    textarea:-ms-input-placeholder {
        color: #000000;
    }
}

/* iOS-specific fixes for horizontal scroll and content positioning */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        html, body {
            overflow: hidden !important;
            width: 100% !important;
            max-width: 100% !important;
            height: 100vh !important;
            position: fixed !important;
        }

        #fullPage {
            overflow: hidden !important;
            max-width: 100% !important;
            position: fixed !important;
            bottom: 0 !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            height: 100vh !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 0 !important;
        }

        #brandingWrapper,
        #branding {
            display: none !important;
        }

        #contentWrapper {
            overflow-x: hidden !important;
            max-width: 100% !important;
            float: none !important;
            width: 100% !important;
            height: auto !important;
        }

        #content {
            position: relative !important;
            top: auto !important;
            left: auto !important;
            transform: none !important;
            max-width: calc(100% - 32px) !important;
            width: calc(100% - 32px) !important;
            margin: 0 auto !important;
            background-color: #ffffff !important;
            visibility: visible !important;
            opacity: 1 !important;
            display: block !important;
        }

        input, select, textarea, button {
            max-width: 100%;
        }
    }

    /* Fix for iPhone specifically */
    @media (max-width: 425px) {
        html, body {
            -webkit-overflow-scrolling: touch !important;
        }

        #content {
            position: static !important;
            transform: none !important;
        }
    }
}

/* Chrome on iOS specific fixes (Chrome iOS doesn't support -webkit-touch-callout) */
@supports not (-webkit-touch-callout: none) {
    @media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
        html, body {
            height: 100vh !important;
            overflow: hidden !important;
            position: fixed !important;
            width: 100% !important;
        }

        #fullPage {
            position: fixed !important;
            height: 100vh !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 0 !important;
            bottom: 0 !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            width: 100% !important;
            overflow: hidden !important;
        }

        #brandingWrapper,
        #branding {
            display: none !important;
        }

        #contentWrapper {
            height: auto !important;
            width: 100% !important;
            float: none !important;
            overflow: visible !important;
        }

        #content {
            position: relative !important;
            top: auto !important;
            left: auto !important;
            transform: none !important;
            margin: 0 auto !important;
            visibility: visible !important;
            opacity: 1 !important;
            display: block !important;
            max-width: calc(100% - 32px) !important;
            width: calc(100% - 32px) !important;
        }
    }
}

/* Universal mobile fix for all iOS browsers including Chrome */
@media screen and (max-width: 768px) and (max-device-width: 768px) {
    html {
        height: 100vh;
        overflow: hidden;
    }

    body {
        height: 100vh;
        position: fixed;
        overflow: hidden;
        width: 100%;
    }

    #fullPage {
        position: fixed;
        height: 100vh;
        bottom: 0;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        overflow: hidden;
    }

    #brandingWrapper,
    #branding {
        display: none;
    }

    #contentWrapper {
        float: none;
        width: 100%;
        height: auto;
    }

    #content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
        visibility: visible;
        opacity: 1;
    }
}

/* Additional Chrome iOS fix with CriOS detection (if possible through CSS) */
@media screen and (max-width: 600px) {
    html {
        overflow: hidden !important;
        -webkit-text-size-adjust: 100%;
        height: 100vh !important;
    }

    body {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100vh !important;
    }

    #fullPage {
        max-width: 100%;
        overflow: hidden;
        position: fixed;
        height: 100vh;
        bottom: 0;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    #contentWrapper {
        max-width: 100%;
        overflow-x: hidden;
    }

    #brandingWrapper,
    #branding {
        display: none;
    }

    #contentWrapper {
        float: none;
        width: 100% !important;
    }

    #content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
}

/* Prevent vertical scroll and bounce effect on mobile devices */
@media (max-width: 768px) {
    * {
        overscroll-behavior: none !important;
    }

    html {
        overscroll-behavior-y: none !important;
        -webkit-overflow-scrolling: auto !important;
    }

    body {
        overscroll-behavior-y: none !important;
        -webkit-overflow-scrolling: auto !important;
    }

    #fullPage,
    #contentWrapper {
        overscroll-behavior: none !important;
    }

    /* Allow scroll only inside content block if needed */
    #content {
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* Specific anti-scroll rules for iOS devices */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        html {
            position: fixed !important;
            overflow: hidden !important;
            width: 100% !important;
            height: 100vh !important;
        }

        body {
            position: fixed !important;
            overflow: hidden !important;
            width: 100% !important;
            height: 100vh !important;
            touch-action: none !important;
        }

        #fullPage {
            touch-action: pan-y !important;
        }
    }
}


/* Фикс зума на iOS для инпутов */
@media screen and (max-width: 768px) {
    input,
    input.text,
    input.text.textPaginated,
    select,
    textarea,
    button {
        font-size: 16px !important; /* предотвращает увеличение */
    }

    html, body {
        overflow-x: hidden !important; /* запретить горизонтальный скролл */
    }

    #content {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}
