:root {
    /* set main vars */
    /* --gsk-theme-icon-font: 'GSK-Icons'; */
    --gsk-theme-font-icon: 'GSK-Icons';
    --gsk-theme-primary: #15717D;
    --gsk-theme-on-primary: #FFFFFF;
    --gsk-theme-secondary: rgba(0, 0, 0, 0.6);
    --gsk-theme-on-secondary: #FFFFFF;
    /* others */
    --gsk-theme-accent: #F36633;
    --gsk-theme-on-accent: #FFFFFF;
    --gsk-theme-surface: #EFEFED;
    --gsk-theme-on-surface: #544F40;
    --gsk-theme-error: #ED003C;
    --gsk-theme-on-error: #FFFFFF;
    /* grid vars */
    --gsk-layout-grid-margin-desktop: 42px;
    --gsk-layout-grid-gutter-desktop: 24px;
    --gsk-layout-grid-column-width-desktop: 10px;
    --gsk-layout-grid-margin-tablet: 36px;
    --gsk-layout-grid-gutter-tablet: 16px;
    --gsk-layout-grid-column-width-tablet: 32px;
    --gsk-layout-grid-margin-phone: 16px;
    --gsk-layout-grid-gutter-phone: 16px;
    --gsk-layout-grid-column-width-phone: 72px;
    /* buttons */
    /* --gsk-button-border-radius: 20px;
    --gsk-button-width: 200px;
    --gsk-button-font-size: 12px;
    --gsk-theme-border-radius-lg-base: 40px; */
    /*dialog*/
    --gsk-dialog-max-height: calc(93vh - 48px);
    --gsk-dialog-max-width: 856px;
    --gsk-dialog-min-width: 320px;
}

/* components */

gsk-formfield {
    width: 100%;
    display: inline-block;
    text-align: left;
}

html,
body {
    height: 100%;
}

/* use flex in body to better handle footer disposition */

body,
.container {
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    color: rgba(0, 0, 0, 0.6);
    color: var(--gsk-theme-secondary);
}

body.high-contrast * {
    background-color: black !important;
    color: white !important;
}

.high-contrast .mdc-text-field {
    border: 1px solid white !important;
}

:host(.high-contrast .mdc-label) {
    color: white !important;
}

.high-contrast .columns-separator:before {
    border-top: 1px solid white !important;
}

#user_login.high-contrast::placeholder {
    color: rgb(22, 221, 22) !important;
    opacity: 1 !important;
}


#user_login.high-contrast::-ms-input-placeholder {
    /* Edge 12 -18 */
    color: rgb(22, 221, 22) !important;
}

#user_pass.high-contrast::placeholder {
    color: rgb(22, 221, 22) !important;
    opacity: 1 !important;
}

.high-contrast #windowsHelloPng {
    background-color: transparent !important;
}

.high-contrast #windows-hello-img {
    background-color: transparent !important;
}

.high-contrast #fido-img {
    background-color: transparent !important;
}

#user_pass.high-contrast::-ms-input-placeholder {
    /* Edge 12 -18 */
    color: rgb(22, 221, 22) !important;
}

.toggle-high-contrast-row {
    display: flex;
    justify-content: center;
}

.high-contrast a {
    color: yellow !important;
}

.container {
    flex: 1 1 auto;
}

.content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    align-items: center;
}

.center-text {
    text-align: center;
}

gsk-top-app-bar {
    flex: none;
    display: block;
    height: 72px;
    z-index: 7;
}

.filter-invert-color {
    filter: contrast(100) invert(1);
}

.high-contrast .filter-invert-color {
    filter: contrast(100) invert(0);
}

section>* {
    margin-top: 20px;
}

section>div {
    margin-top: 10px;
}

section>section {
    margin-top: 0px;
}

section>form>* {
    margin-top: 20px;
}

section>form>div {
    margin-top: 10px;
}

section>form {
    margin-top: 0px;
}

/* apply text style to panel links */

a {
    color: #15717D;
    color: var(--gsk-theme-primary);
    text-decoration: none;
    cursor: pointer;
}

/* footer */

.footer {
    /* width: 100%; */
    background: #ffffff;
}

.bordered {
    border-top: 1px solid #EFEFED;
    border-top: 1px solid var(--gsk-theme-surface);
}

.footer .footer-content {
    color: rgba(84, 79, 64, .6);
}

.separator::after {
    display: block;
    border-top: 1px solid #EFEFED;
    border-top: 1px solid var(--gsk-theme-surface);
    content: "";
}

.links a {
    color: rgba(0, 0, 0, 0.6);
    color: var(--gsk-theme-secondary);
    text-decoration: none;
}

#high-contrast-checkbox-label {
    color: rgba(0, 0, 0, 0.6) !important;
    text-decoration: none;
    cursor: pointer;
}

#high-contrast-checkbox {
    cursor: pointer;
    accent-color: var(--gsk-theme-primary);
}

.high-contrast #high-contrast-checkbox-label {
    color: #fff !important
}

@supports (display: var(--prop)) {
    .content>div {
        width: 100%;
    }
}

/* .panel {
    box-sizing: border-box;
    max-width: 400px;
} */

@media screen and (min-width:0\0) and (min-width: 665px) {
    .panel {
        width: 384px;
        min-width: 384px;
        max-width: 384px;
    }
}

@media (min-width: 665px) {
    .panel {
        /* border: 2px solid rgba(0, 0, 0, 0.18); */
        box-shadow: 3px 3px 20px rgba(0, 0, 0, 0.18);
        padding: 30px;
        border-radius: 4px;
        /* margin: 50px auto; */
    }

    .high-contrast .panel {
        border: 1px solid white !important;
    }

    .content {
        margin-top: 20px;
    }

    .content .language {
        display: none;
    }

    .container {
        overflow-y: auto;
        height: 100%;
    }

    footer {
        position: relative;
        bottom: 0;
        z-index: 6;
        flex: 1 0 auto;
    }

    .footer .footer-content .inner-footer .links>* {
        margin-left: 20px;
        margin-bottom: 15px;
    }

    .footer .footer-content .separator {
        padding: 0 30px;
    }

    .footer .footer-content .legal-text {
        padding: 20px 30px;
    }

    .footer .footer-content .legal-text>#legalText {
        height: auto;
        display: block;
        word-wrap: break-word;
        /* max-width: 90vw; */
    }

    .footer .footer-content .legal-text .links {
        display: none;
    }

    .footer .footer-content .inner-footer {
        display: flex;
        flex-direction: row;
        padding: 15px 30px 0 30px;
    }

    .footer .footer-content .inner-footer>* {
        display: flex;
        flex-direction: row;
    }

    .footer .footer-content .inner-footer .copyright {
        margin-right: auto;
    }

    .footer .footer-content .inner-footer .links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 664px) {
    .container {
        flex: 1 0 auto;
    }

    .panel {
        margin-bottom: 20px;
    }

    /* footer {
        position: relative;
        bottom: 0;
    } */
    .footer .footer-content .legal-text {
        padding: 10px 30px;
        text-align: center;
    }

    .footer .footer-content .legal-text>#legalText {
        display: none;
    }

    .footer .footer-content .inner-footer {
        display: flex;
        flex-direction: column-reverse;
        padding: 10px 30px;
    }

    .footer .footer-content .inner-footer>* {
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;
    }

    .footer .footer-content .separator {
        padding: 0 80px;
    }

    .footer .footer-content .inner-footer .copyright,
    .footer .footer-content .links span {
        margin-top: 7px;
        text-align: center;
        width: 100%;
        display: inline-block;
    }

    .footer .footer-content .inner-footer .links .language {
        display: none;
    }
}

/* apply margin after header */

section h4 {
    margin-bottom: 15px;
}

section h5 {
    margin-bottom: 15px;
}

section h6 {
    margin-bottom: 15px;
}

/* error message alert */

.alert {
    box-sizing: border-box;
    padding: 12px;
    border: 2px solid;
    border-color: rgba(0, 0, 0, 0.6);
    border-color: var(--gsk-theme-secondary, rgba(0, 0, 0, 0.6));
    border-radius: 4px;
    color: rgba(0, 0, 0, 0.6);
    color: var(--gsk-theme-secondary, rgba(0, 0, 0, 0.6));
    margin-top: 10px;
    margin-bottom: 10px;
}

.alert.error-alert {
    border-color: #e40030;
    border-color: var(--gsk-theme-error, #e40030);
    color: #e40030;
    color: var(--gsk-theme-error, #e40030);
}

.alert .alert-message {
    text-align: left;
    display: flex;
    flex-direction: column;
    padding-top: 3px;
    padding-right: 3px;
}

.alert .alert-message gsk-icon {
    vertical-align: sub;
    padding-right: 12px;
    font-size: 20px;
    padding-left: 2px;
}

.columns-separator {
    position: relative;
    width: 100%;
    text-align: center;
    background-color: #fff;
    display: inline-block;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 0em;
    transition: all 0.2s linear;
    z-index: 2;
}

.columns-separator:before {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    content: "";
    position: relative;
    width: 100%;
    z-index: -2;
    display: inline-block;
    margin-top: 20px;
}

.columns-separator span {
    background: #fff;
    padding: 10px;
}

.loading {
    display: none;
}

.wrap {
    word-wrap: break-word;
}

.messages>*:not(:last-child):not(:first-child) {
    margin: 12px 0;
}

.cell-padding {
    padding: 40px;
}

.reference {
    color: rgba(0, 0, 0, 0.6);
    color: var(--gsk-theme-secondary);
    text-transform: none;
    font-weight: bold;
}

.message-item {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    font-size: 0.85rem;
}

.message-item:not(:last-child) {
    padding-bottom: 5px;
}

.message-item:not(:first-child) {
    padding-top: 5px;
    border-top: 1px solid rgba(255, 0, 0, 0.1);
}

.password-requirements {
    border-top: 1px solid #e4e5e5;
    padding-top: 12px;
}

.password-requirements a:hover {
    text-decoration: none;
    cursor: pointer;
}

.password-requirements .requirements-message {
    padding-top: 10px;
    display: none;
    width: 100%;
    transition: top 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
    overflow: hidden;
    box-sizing: border-box;
    text-align: left;
}

.password-requirements a gsk-icon {
    font-size: 20px;
    vertical-align: bottom;
    margin-bottom: 2px;
}

.error-title {
    margin: 0;
}

.error-title img {
    margin-top: -10px;
    margin-left: -10px;
}

.title {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 0;
    text-align: left;
    margin-bottom: 10px;
}

.title h4,
.title h5,
.title h6 {
    margin: 5px 0 0 15px;
}

iframe {
    display: block;
}

iframe.ping-hidden {
    height: 0;
    width: 0;
    visibility: hidden;
}

iframe.ping-visible {
    width: 100%;
    height: 140px;
}

.error {
    color: #e40030;
    color: var(--gsk-theme-error, #e40030);
}

.language-modal-body {
    height: 50vh;
    display: block;
    max-height: 50vh;
    margin-top: 0;
}

.capitalize {
    text-transform: capitalize;
}

/* disable anchor highlight for actions */

a:not([href]) {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.translations-info {
    font-size: 12px;
    display: flex;
    margin: 10px 12px -6px 12px;
    color: rgba(84, 79, 64, .6);
}

.translations-info gsk-icon {
    cursor: default;
    font-size: 20px;
}

.translations-info span {
    text-align: center;
}

gsk-dialog h6 {
    margin: 0;
}

gsk-dialog .separator {
    padding-top: 12px;
    margin: 0 5px;
}

.terms-subtitle {
    color: #15717D;
}

.modal-content {
    word-break: break-word;
}

/* Fixes popup width in IE (small viewport) */
@media screen and (min-width:0\0) and (max-width: 900px) {
    .modal-content {
        max-width: calc(100vw - 65px);
    }
}