@import url('https://cdn.ahi.apps.yokogawa.com/assets/fonts/Open+Sans.css');

:root {
    --black-color: #000000;
    --white-color: #ffffff;
    --primary-blue: #004F9B;
    --secondary-blue: #3399FF;
    --error-color: #FD4141;
    --primary-text-color: #2D4650;
    --border-color: #DFE4E8;
    --base-font-size: 12px;
    --base-font-size_login_form: 18px;
    --label-font-size: 12px;
    --link-color: #3399FF;
    --border-radius: 4px;
    --message-font-size: 16px;
    --label-color: #BBBBC1;
    --yellow-color: #FFEE00;
    --max-time-duration: 2147483647s;
}

html {
    font-size: 14px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--white-color);
    font-size: var(--base-font-size);
    letter-spacing: -0.02em;
}

input, button, select, optgroup, textarea {
    font-family: 'Open Sans';
}

.form-check .form-check-input {
    background-color: transparent !important;
    border-color: var(--white-color) !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--white-color);
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    transition: background-color var(--max-time-duration) ease-in-out 0s;
    caret-color: var(--white-color);
    background-color: transparent !important;
    font-size: 18px;
}

.title-form-error {
    height: unset !important;
}

.verify-confirm {
    margin-top: 220px !important;
}

.left-content {
    height: 100%;
    width: 70%;
    display: flex;
    flex-direction: column;
}

.cancelBtn {
    background-color: transparent !important;
    color: var(--yellow-color) !important;
}

.acceptBtn {
    color: rgba(0, 49, 108, 1);
    background-color: var(--yellow-color);
}

.remember-password {
    display: flex;
    flex-direction: row;
    font-size: 16px;
}

.footer-form {
    flex-grow: 1;
    justify-content: center;
    display: flex;
    flex-direction: column;
    margin-top: 65px;
}

input::-webkit-input-placeholder {
    font-size: 18px !important;
    line-height: 24.52px !important;
}

.main {
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center
}

.page-login {
    display: flex;
    /*    height: 100%;*/
    flex-direction: column;
    width: 100%;
    font-size: 18px;
    line-height: 24.52px;
}

.header-logo {
    background-image: url(../img/YokogawaLogo.png);
    background-repeat: no-repeat;
    height: 83px;
    margin: 64px 0 0 64px;
    background-size: contain;
}

.slogan-side {
    position: relative;
    flex-grow: 1;
}

.slogan-image {
    position: absolute;
    top: 432px;
    right: 3px;
    transform: translate(-50%, -50%);
    background-image: url(../img/HeaderLogin.png);
    background-repeat: no-repeat;
    width: 815px;
    height: 192px;
    background-size: contain;
}

.main-2 {
    padding: 40px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*    min-height: 655px;*/
    width: 454px;
    height: fit-content;
    background-color: rgba(0, 49, 108, 0.75);
    right: 133px;
    z-index: 1;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
}

.header-form {
    display: flex;
    flex-direction: column;
}

.icp-footer {
    width: 474px;
    display: flex;
    justify-content: space-evenly;
    margin-top: 10px;
}

.icp-logo {
    margin-right: 5px;
}

.disabled {
    pointer-events: none;
    cursor: default;
    opacity: .65;
}

.footer-verify {
    padding-top: 45px;
}

.error-message {
    min-height: 65px;
}

::-webkit-input-placeholder {
    font-size: 18px !important;
    line-height: 24.52px !important;
}

@media (max-width: 1024px) {
    #user_email {
        padding-right: 21px !important;
    }

    .password {
        padding-right: 21px !important;
    }

    .toggle-arrow {
        margin-top: -4px !important;
        margin-left: -10px !important;
    }

    .select2-results__options li {
        font-size: 12px !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow b {
        background-image: url(../img/arrow_back_ios_new.svg) !important;
    }

    .form-floating {
        padding-top: 10px;
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    select:-webkit-autofill,
    select:-webkit-autofill:hover,
    select:-webkit-autofill:focus {
        font-size: 12px !important;
    }

    .first-child {
        padding-top: 0px !important;
    }

    .last-child {
        padding: 0 0 !important;
    }

    .last-child-padding-bottom {
        padding-top: 0 !important;
        padding-bottom: 20px !important;
    }

    ol {
        padding-left: 1.2rem !important;
    }

    #qrCode img {
        width: 110px !important;
    }

    .form-error-floating {
        padding-bottom: 33px !important;
    }

    .padding-form {
        padding-top: 13px !important;
    }

    .mfa-content {
        padding-top: 28px !important;
        font-size: 12px !important;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .form-label-tenant {
        font-size: 12px !important;
        line-height: 16.34px !important;
        margin-bottom: 0px !important;
    }

    .select2-selection__placeholder {
        font-size: 12px !important;
        line-height: 16.34px !important;
    }

    .password-reveal {
        right: 0;
        top: 6px !important;
        font-size: 12px !important;
    }

    .form-control.val-error {
        padding-right: 2.8rem !important;
        background-position: right 8px !important;
        background-image: url(../img/IconSmallErorr.svg) !important;
    }

    .remember-password {
        padding-top: 13px;
        font-size: 12px !important;
    }

    input,
    input::-webkit-input-placeholder {
        font-size: 12px !important;
        line-height: 16.34px !important;
    }

    .verification {
        padding-top: 26px;
    }

    .footer-verify {
        padding-top: 13px;
    }

    .access-denied {
        width: 100%;
    }

    .access-denied-login {
        width: 100%;
    }

    .error-title {
        font-size: 12px !important;
        line-height: 16.34px !important;
    }

    .btn-bar {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .page-login {
        line-height: 16.34px !important;
    }

    .error-message-block {
        min-height: 18px !important;
    }

    .val-error-message {
        font-size: 12px !important;
        line-height: 16.34px !important;
    }

    .error-message {
        font-size: 12px !important;
        line-height: 16.34px !important;
        min-height: 28px;
    }

    .model-error-message {
        font-size: 12px !important;
        line-height: 16.34px !important;
        min-height: 28px;
        margin-bottom: 1rem;
    }

    .form-control {
        font-size: 12px !important;
        line-height: 16.34px !important;
    }

    .btn {
        height: 26px !important;
        min-width: 80px !important;
        padding: 4px 8px !important;
    }

    .header-form {
        position: relative;
        text-align: center;
        justify-content: center;
    }

    .form-content {
        flex-grow: 1;
    }

    .header-logo {
        background-image: url(../img/YokogawaLogoTablet.png);
        background-repeat: no-repeat;
        height: 56px;
        margin: 63px 0 0 64px;
        background-size: contain;
    }

    .main-2 {
        width: 270px;
        padding: 26px 30px;
        right: 66px;
    }

    .tenant {
        height: unset;
    }

    .tenant-name {
        font-size: 18px !important;
        line-height: 24.51px !important;
    }

    .page-break {
        padding: 2px 0px 2px 0px !important;
        font-size: 12px !important;
    }

    .tenant-logo {
        width: 32px;
        height: 32px;
        margin-left: 5px;
    }

    .sub-title {
        font-size: 12px !important;
        line-height: 16.34px !important;
    }

    .slogan-image {
        position: absolute;
        top: 300px;
        left: 312px;
        transform: translate(-50%, -50%);
        background-image: url(../img/HeaderTablet.png);
        background-repeat: no-repeat;
        width: 518px;
        background-size: contain;
    }

    #mainForm {
        font-size: 12px !important;
    }

    .text-uppercase {
        font-size: 12px !important;
        line-height: 16.34px !important;
        border-radius: 5px !important;
    }

    .text-end {
        font-size: 12px !important;
    }

    .container {
        max-width: 1024px;
        height: 768px;
        background-image: url('../img/AHIloginpagetablet.svg') !important;
        background-repeat: no-repeat;
    }

    p {
        margin-block-start: 0em;
        margin-block-end: 0em;
    }

    .text-uppercase {
        line-height: 12.34px !important;
    }

    .form-check-input {
        width: 10px;
        height: 10px;
        border-radius: 2.5px !important;
        margin-left: -18px !important;
        margin-top: 3px;
        background-color: transparent !important;
        border-color: var(--white-color) !important;
    }

    .btn {
        height: 20px !important;
        min-width: 78px !important;
        padding: 4px 8px !important;
    }

    .verify-confirm {
        margin: 26% 0 !important;
    }

    .footer-form {
        margin-top: 28px;
    }
}

@media (max-width: 375px) {
    #user_email {
        padding-right: 21px !important;
    }

    .password {
        padding-right: 21px !important;
    }

    .select2-results__options li {
        font-size: 12px !important;
    }

    .toggle-arrow {
        margin-top: -4px !important;
        margin-left: -10px !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow b {
        background-image: url(../img/arrow_back_ios_new.svg) !important;
    }

    .form-floating {
        padding-top: 10px;
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    select:-webkit-autofill,
    select:-webkit-autofill:hover,
    select:-webkit-autofill:focus {
        font-size: 12px !important;
    }

    .first-child {
        padding-top: 0px !important;
    }

    .last-child {
        padding: 0 0 !important;
    }

    .last-child-padding-bottom {
        padding-top: 0 !important;
        padding-bottom: 20px !important;
    }

    ol {
        padding-left: 1.2rem !important;
    }

    #qrCode img {
        width: 110px !important;
    }

    .form-error-floating {
        padding-bottom: 33px !important;
    }

    .padding-form {
        padding-top: 13px !important;
    }

    .footer-form {
        margin-top: 28px;
    }

    .mfa-content {
        padding-top: 28px !important;
        font-size: 12px !important;
        max-height: 332px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .form-label-tenant {
        font-size: 12px !important;
        line-height: 16.34px !important;
        margin-bottom: 0px !important;
    }

    .select2-selection__placeholder {
        font-size: 12px !important;
        line-height: 16.34px !important;
    }

    .form-control.val-error {
        padding-right: 2.8rem !important;
        background-position: right 8px !important;
        background-image: url(../img/IconSmallErorr.svg) !important;
    }

    .password-reveal {
        right: 0;
        top: 6px !important;
        font-size: 12px !important;
    }

    .remember-password {
        padding-top: 13px;
        font-size: 12px !important;
    }

    .footer-verify {
        padding-top: 13px;
    }

    .error-title {
        font-size: 12px !important;
        line-height: 16.34px !important;
    }

    .unform {
        margin: calc((100vh - 74vh) / 2) 0;
    }

    .main-form-login {
        margin-top: unset !important;
    }

    .verification {
        padding: 18px 26px 26px 26px;
    }

    .access-denied-login {
        width: 100%;
        padding: 21px 30px 26px 30px;
        background-color: rgba(0, 49, 108, 0.75);
    }

    .access-denied {
        width: 100%;
        padding: 26px;
        background-color: rgba(0, 49, 108, 0.75);
    }

    .no-title-form {
        padding: 37px 0 0 0 !important;
    }

    .btn-bar {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .verify-confirm {
        margin: 26% 0 !important;
    }

    .error-message-block {
        min-height: 18px !important;
    }

    .text-uppercase {
        font-weight: 700 !important;
        line-height: 12.34px !important;
    }

    .slogan-side {
        flex-grow: 7;
        width: 100%;
    }

    .header-container {
        flex-grow: 3;
    }

    .btn {
        height: 20px !important;
        min-width: 78px !important;
        padding: 4px 8px !important;
    }

    .form-check-input {
        width: 10px;
        height: 10px;
        border-radius: 2.5px !important;
        margin-left: -18px !important;
        background-color: transparent !important;
        border-color: var(--white-color) !important;
    }

    .header-logo {
        margin: 40px 10px;
    }

    .main {
        flex-direction: column-reverse !important;
        align-items: center;
        justify-content: center;
    }

    .main-2 {
        width: 270px;
        padding: 0px 0px;
        box-shadow: none;
        background-color: unset;
        flex-grow: 1;
        right: auto;
    }

    .container {
        max-width: 375px;
        height: 667px;
    }

    .slogan-image {
        background-image: url(../img/HeaderPhone.png);
        width: 270px;
        height: 64px;
        top: 300px;
        left: 124px;
        background-size: contain;
    }

    .page-login {
        line-height: 16.34px !important;
    }
}

.tenant {
    text-align: center;
}

.validate-password {
    position: absolute;
    width: 331px;
    padding: 15px 19px; 
    background-color: #ffffff;
    left: -376px;
    top: -148px;
    border-radius: 6px;
    color: #2D4650;
    display: none;
}
.validate-password div div .validate-password-item-sub:last-child {
    padding-bottom: 16px !important;
}

.validate-password-arrow {
    position: absolute;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 21.5px solid #ffffff;
    top: 6px;
    left: -45px;
    display: none;
}
.validate-password-item-dot{
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #000000;
    margin-right: 10px;
}
.validate-password-item-title{
    font-size: 12px;
    font-weight: 600;
    padding-left: 10px;
    line-height: 16px;
}
.validate-password-item-last{
    padding-top: 16px !important;
}
.validate-password-item-sub{
    font-size: 12px;
    line-height: 16px;
    padding-top: 12px;
    font-weight: 400;
    margin-left: 35px;
}
.validate-password-icon{
    width: 15px;
    height: 15px;
    flex: none;
}
.validate-password-flex-center{
    display: flex;
    align-items: center;
}
.validate-password-icon-error{
    background-image: url(../img/PPIconError.svg);
}
.validate-password-icon-approve{
    background-image: url(../img/PPIconApprove.svg);
}
.tenant-name {
    color: var(--yellow-color);
    font-size: 30px;
    font-weight: 700;
    line-height: 41px;
    text-align: center;
}

.tenant-logo {
    width: 32px;
    height: 32px;
    margin-left: 5px;
}

.sub-title {
    margin-top: 10px;
    font-size: 25px;
    font-weight: 400;
    line-height: 34px;
    text-align: center;
    color: var(--white-color);
}

.error-title {
    font-size: 18px;
    margin-top: 12px;
    text-align: center;
    color: var(--error-color);
}

.error-message {
    width: 100%;
    color: var(--error-color);
    background-color: transparent;
    text-align: center;
    font-size: var(--base-font-size_login_form);
}

.error-text {
    color: var(--error-color);
}

.error-message > ul {
    list-style-type: none;
    padding-left: 0px;
}

.val-error-message {
    color: var(--error-color);
    font-size: 16px;
    line-height: 24.52px;
}

.model-error-message {
    width: 100%;
    text-align: center;
    color: var(--error-color);
    background-color: transparent;
    font-size: var(--base-font-size_login_form);
    line-height: 24.52px;
    white-space: pre-line;
}

.form-control.val-error {
    border-bottom-color: var(--error-color) !important;
    background-image: url(../img/IconsErorr.svg);
    background-repeat: no-repeat;
    background-position: right 9px;
    padding-right: 3.6rem;
    background-color: transparent;
    font-size: 18px;
    line-height: 24.52px;
}

.form-label.val-error {
    color: var(--error-color);
}

a {
    color: var(--yellow-color);
}

.btn {
    height: 36px;
    min-width: 64px;
    padding: 8px 16px;
    line-height: 1;
    border-radius: var(--border-radius);
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
    color: rgba(0, 49, 108, 1);
    background-color: var(--yellow-color);
    border-color: var(--yellow-color);
}

    .btn-primary:disabled {
        color: rgba(0, 49, 108, 1);
        background-color: var(--yellow-color);
        border-color: var(--yellow-color);
    }

    .btn-primary:hover,
    .btn-primary:focus {
        box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.16);
    }

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--yellow-color);
    border-color: var(--yellow-color);
    color: rgba(0, 49, 108, 1);
}

    .btn-secondary:hover,
    .btn-secondary:focus {
        border-color: var(--yellow-color);
        color: var(--yellow-color);
        background-color: #e4ecf4;
        opacity: .9;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    }


.btn-primary,
.btn-secondary {
    min-width: 146px;
    margin-right: 10px;
    margin-left: 10px;
}

.form-floating > label {
    font-size: var(--label-font-size);
    border: none;
    padding: 1rem 0rem;
    text-align: center;
}

.center-text {
    text-align: center;
    font-size: var(--message-font-size);
}

.form-label.required:after {
    content: " *";
    color: var(--error-color);
}

.form-control:focus {
    color: var(--label-color);
    background-color: transparent;
    box-shadow: none;
    border-color: var(--secondary-blue);
}

.form-control {
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding-left: 0px;
    color: var(--white-color);
    background-color: transparent;
    font-size: 18px;
    line-height: 24.52px;
}

    .form-control,
    .form-control:focus {
        background-color: transparent;
    }

        .form-control:disabled,
        .form-control[readonly] {
            background-color: transparent;
        }

.form-label {
    color: var(--white-color);
    margin-bottom: 0px;
}

::placeholder {
    color: var(--label-color) !important;
    font-size: 12px !important;
}

.form-group:focus-within .form-label:not(.val-error) {
    color: var(--secondary-blue);
}

.form-group {
    padding: 20px 0;
}

.form-check-input:checked {
    background-color: transparent !important;
    border-color: var(--white-color) !important;
}

.form-check-input:focus {
    box-shadow: none;
}

.token-input {
    text-transform: uppercase
}

.page-break {
    padding: 7px 0;
    text-transform: uppercase;
    font-size: 16px;
    color: var(--white-color);
}

::-webkit-input-placeholder {
    text-transform: initial;
}

:-moz-placeholder {
    text-transform: initial;
}

::-moz-placeholder {
    text-transform: initial;
}

:-ms-input-placeholder {
    text-transform: initial;
}

::-ms-reveal {
    display: none;
}

.input-passwoform-control.val-errorrd-group {
    position: relative;
}

form i.password-reveal {
    position: absolute;
    right: 0;
    cursor: pointer;
    font-size: 16px;
    top: 6px;
    color: var(--white-color);
}

.language-form-wapper {
    width: 100%;
    display: flex;
    justify-content: end;
}

.select-language {
    padding-top: 1rem;
}

.country-flag {
    width: 36px;
    max-height: 24px;
    object-fit: cover;
    margin-right: 10px;
    border: 1px solid #DDDDDD;
}

.select2-selection,
.select2-dropdown {
    border-color: var(--border-color) !important;
}

.select2-container {
    min-width: 130px;
}

.select2-language-selection {
    min-height: 32px !important;
}

.select2-tenant-selection {
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
}

    .select2-tenant-selection.val-error {
        border-bottom-color: var(--error-color) !important;
    }

.select2-results__option--highlighted {
    color: var(--primary-text-color) !important;
    background-color: #DFE4E8 !important;
    background-image: none;
}

#selectTenantForm .form-group {
    display: flex;
    flex-direction: column;
}

#selectTenantForm .select2-container {
    width: 100% !important;
}

.container {
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    background-image: url('../img/AHIloginpagedesktop.svg');
    background-repeat: no-repeat;
    overflow: hidden;
}

video {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

.form-check-label {
    color: var(--white-color);
}

.text-uppercase {
    font-size: 20px;
    font-weight: 700;
    line-height: 22.24px;
    text-align: center;
}

.error-message-block {
    min-height: 35px;
    margin-top: 10px;
}

.header-container {
    z-index: 1;
}

.input-password-group {
    position: relative;
}

.btn-primary:disabled, .btn-primary.disabled {
    color: rgba(0, 49, 108, 1);
    background-color: var(--yellow-color);
    border-color: var(--yellow-color);
}

.input-padding-right {
    padding-right: 50px;
}

ul {
    list-style-type: none;
    padding-left: 0rem;
}

.padding-right-input {
    padding-right: 24px;
}

.padding-form {
    padding-top: 45px;
}

.access-denied-login {
    width: 100%;
}

.access-denied {
    width: 100%;
}

.password {
    padding-right: 24px;
}

li p {
    padding-bottom: 0px;
}

.mfa-content {
    padding-top: 65px;
    font-size: 16px;
}

    .mfa-content p {
        margin-bottom: 20px;
    }

.select2-container--default .select2-selection--single {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.form-label-tenant {
    margin-bottom: 20px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0px !important;
}

.select2-container--default .select2-results > .select2-results__options {
    background-color: rgba(0, 39, 88, 1) !important;
}

.select2-container--open .select2-dropdown--below {
    background-color: transparent !important;
    border: none !important;
}

#qrCode {
    margin-bottom: 20px;
    background: white;
    width: fit-content;
    height: fit-content;
    padding: 1px;
}

.form-check {
    margin-bottom: 0px !important;
}

.form-floating {
    padding-bottom: 20px;
    padding-top: 10px;
}

.padding-title {
    padding-top: 10px;
}

.form-error-floating {
    padding-bottom: 63px;
    position: relative;
}

#user_email {
    padding-right: 2rem;
}

ol {
    margin-bottom: 0rem !important;
}

.unmargin-top {
    margin-top: 0 !important;
}

.unmargin-bottom {
    margin-bottom: 0 !important;
}

.select2-results__options li:hover {
    background-color: rgba(0, 39, 72, 1) !important;
}

.select2-results__options li {
    cursor: pointer;
    font-size: 18px;
    padding-top: 9px;
}

select2-dropdown select2-tenant-dropdown select2-dropdown--below {
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.16);
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: unset !important;
    background-image: url(../img/Arrow.svg);
    background-repeat: no-repeat;
    height: 13px !important;
    width: 16px !important;
    border-style: unset !important;
    border-width: unset !important;
    margin-left: -8px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: unset !important;
    top: 14px !important;
}

.toggle-arrow {
    transform: rotate(180deg);
    margin-top: -10px !important;
}

/***************************** Add Css Media for Mobile ******************************************/
.container {
  background-size: cover;
  height: 100vh;
}

@media (max-width: 1800px){
.slogan-image {
    left: 40%;
  }
}

@media (max-width: 1400px){
.slogan-image {
    left: 60%;
  }
}

@media (max-width: 475px) {
  .slogan-image {
    width: 270px;
    height: 64px;
    top: 30vh;
    left: 50vw;
  }

  .header-container {
    flex-grow: 4;
  }

  .slogan-side {
    flex-grow: 6;
  }

  .validate-password {
    display: none !important;
  }

  .validate-password-arrow {
    display: none !important;
  }
}
