﻿@font-face {
    font-family: frederik;
    src: url('/adfs/portal/Frederik-Regular.css');
    font-weight: 400;
}

@font-face {
    font-family: frederik;
    src: url('/adfs/portal/Frederik-Medium.css');
    font-weight: 700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    background-color: #ffffff;
    color: #2A2D33;
    font-weight: normal;
    font-size: 16px;
    line-height: 20px;
    font-family: frederik, "Segoe UI", "Segoe", "SegoeUI-Regular-final", Tahoma, Helvetica, Arial, sans-serif;
    min-width: 360px;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}


a {
    font-size: 16px;
    line-height: 20px;
    color: #1565C0;
    text-decoration: none;
}

a:hover {
    color: #1976D2;
    text-decoration: underline;
}

a:active {
    color: #0D47A1;
}

.title, .bigText {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 20px;
}

#errorMessage {
    margin-bottom: 20px;
}

.description {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 16px;
}


#noScript {
    margin: 16px;
    color: Black;
}

: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;
}

.groupMargin {
    margin-bottom: 20px;
}


/* 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,
#errorText {
    color: #F44336;
}

.fieldMargin {
    margin-bottom: 20px;
}

#authArea #introduction {
    display: none;
}

/* show labels */
label.hidden, label {
    display: inline-block;
    font-size: 12px;
    line-height: 16px;
    margin-bottom: 4px;
}

/* layout styles new */
#fullPage {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    float: left;
}

#brandingWrapper {
    display: none;
}

#branding {
    /* A background image will be added to the #branding element at run-time once the illustration image is configured in the theme.
       Recommended image dimensions: 1420x1200 pixels, JPG or PNG, 200 kB average, 500 kB maximum. */
    height: 100%;
    margin-left: 0;
    background-color: inherit;
    background-size: cover;
    position: relative;
}

#contentWrapper {
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #ffffff;
    position: relative;
    float: left;
    padding: 32px 16px 16px;
    display: flex;
    flex-direction: column;
}

#content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 2;
    width: 100%;
}

#header {
    margin: 32px 0;
}

#workArea {
    margin: auto 0;
}


#header img {
    /* Logo image recommended dimension: 60x60 (square) or 350X35 (elongated), 4 kB average, 10 kB maximum. Transparent PNG strongly recommended. */
    width: 130px;
    height: 40px;
    max-height: 40px;
    object-fit: cover;
}

#footer {
    height: 40px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    margin-top: auto;
}


#loginMessage {
    margin-bottom: 40px;
}

#introduction b {
    margin-bottom: 16px;
}

#introduction p {
    margin-bottom: 8px;
}

input.text {
    background: #FFFFFF;
    border: 1px solid #C0C9D3;
    box-sizing: border-box;
    border-radius: 4px;
    width: 100%;
    font-family: frederic, "Segoe UI", "Segoe", "SegoeUI-Regular-final", Tahoma, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
    padding: 7px 11px !important;
    outline: none;
    margin-bottom: 16px;
     padding-right: 40px !important;
}

input.text:hover {
    border: 1px solid #A2ABB7;
}

input.text:focus {
    border: 2px solid #346614;
    /* padding: 7px 11px !important; */
}

#submitButton,
#idp_SignInButton {
    background: #5FAF2D;
    border-radius: 4px;
    padding: 22px 20px 18px;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    color: #FFFFFF;
    width: 100%;
    display: block;
    cursor: pointer;
    margin-bottom: 28px;
    outline: none;
    border: none;
}

#submitButton:hover {
    background: #73C63F;
}

#submitButton:focus {
    background: #4E9522;
}

#cancelButton {
    border: 1px solid #C0C9D3;
    color: #2A2D33;
    background: transparent;
    border-radius: 4px;
    padding: 21px 20px 17px;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    width: 100%;
    display: block;
    cursor: pointer;
    margin-bottom: 28px;
    outline: none;
}

#cancelButton:hover {
    border: 1px solid #C0C9D3;
    background: #FFFFFF;
}

#cancelButton:focus {
    background: #C0C9D3;
    border: 1px solid #C0C9D3;
}

#passwordArea {
    margin-bottom: 12px;
}

#confirmNewPasswordArea {
    margin-bottom: 24px;
}


#updatePasswordArea #submitButton {
    width: calc(50% - 8px);
    display: inline-block;
    float: left;
}

#updatePasswordArea #cancelButton {
    width: calc(50% - 8px);
    display: inline-block;
    float: right;
}

#updatePasswordArea #introduction {
    display: none;
}

#kmsiArea {
    margin-bottom: 28px;
    display: block !important;
}

#kmsiArea label {
    font: inherit;
    display: inline-block;
}

input[type='checkbox'] {
    background: #FFFFFF;
    border: 1px solid #C0C9D3;
    box-sizing: border-box;
    border-radius: 2px;
    height: 20px;
    width: 20px;
    vertical-align: middle;
    margin-right: 8px;
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type='checkbox']:hover {
    border: 1px solid #A2ABB7;
}

input[type='checkbox']:checked {
    background: #5FAF2D;
    border-color: #5FAF2D;
}

input[type='checkbox']:checked:hover {
    background: #73C63F;
    border-color: #73C63F;
}

input[type='checkbox']:checked::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-image: url("/adfs/portal/images/check.png");
    background-size: 12px 10px;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    z-index: 2;
}

.idp {
    display: block;
    min-height: 132px;
    border-radius: 8px;
    padding: 43px 32px;
    cursor: pointer;
    margin: 0 -32px;
}


.idp:hover {
    background: #F5F8FA;
}

.idp img {
    width: 40px;
    height: 46px;
}

.idpDescription {
    padding: 12px 0;
}

.change-password-title {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 20px;
}

.change-password-list {
    padding-left: 16px;
}

@media only screen and (min-width: 768px) {
    #content {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media only screen and (min-width: 1024px) {
    #brandingWrapper {
        display: block;
        width: 100%;
        height: 100%;
        background-color: #ffffff;
        float: left;
    }

    #branding {
        margin-right: 742px;
    }

    #contentWrapper {
        width: 742px;
        margin-left: -742px;
    }
}

@media only screen and (min-width: 1280px) {
    #branding {
        margin-right: 640px;
    }

    #contentWrapper {
        width: 640px;
        margin-left: -640px;
    }

    #branding-logo {
        display: block;
        width: 393px;
        height: 165px;
        background-size: cover;
        position: absolute;
        top: calc(50% - 80px);
        left: calc(50% - 200px);
    }
}

@media only screen and (min-width: 1920px) {
    #branding {
        margin-right: 960px;
    }

    #contentWrapper {
        width: 960px;
        margin-left: -960px;
    }
}

.password-toggle {
    position: absolute;
    right: 10px;
    bottom: 8px;          
    top: auto;            
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    height: 26px;
    display: flex;
    align-items: center;
    font-size: 16px;
    transform: translateY(-50%);
    margin-left: 5px;
}

input[type="password"],
input[type="text"] {
    box-sizing: border-box;
    padding-right: 40px !important;
}

.password-error-message {
    color: #F44336;
    /* font-size: 14px; */
    font-size: 0.9em;
    margin-bottom: 8px;
    display: none;
}

.input-container {
    position: relative;
    width: 100%;
}

#newPasswordInput {
    margin-top: 0 !important; 
    padding-right: 40px;      
}

#submitButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #cccccc;
}
