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

/* CSS Reset */
* {
    box-sizing: border-box;
}

    /* Custom Scrollbar Styling */
    *::-webkit-scrollbar {
        width: 3px !important;
        border-radius: 5px !important;
        background-color: #dfe4e8;
    }

    *::-webkit-scrollbar-thumb {
        background-color: #00000085;
    }

    *::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px #DFE4E8;
    }

body {
    margin: 0;
    font-family: Inter;
    font-size: 17px;
}

h1 {
    font-weight: 300;
    font-size: 32px;
    letter-spacing: 1px;
}

p {
    font-weight: 200;
}

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

/* Debugging */
main {
    display: none;
}

#vdo0,
#opening {
    opacity: 1;
}

/* Video Setting */
video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

/* Navigation Button */
button.navigation {
    width: 46px;
    background: none;
    border: none;
    opacity: 0.5;
}

    button.navigation:hover {
        opacity: 1;
        transition: 0.3s;
        cursor: pointer;
    }

    button.navigation img {
        width: 100%;
    }

.flexgap {
    display: flex;
    gap: 16px;
    position: relative;
}

.spacer {
    margin-top: 20px;
}

/* Container */
.container {
    max-width: 1800px;
    margin: auto;
    position: relative;
    padding: 0px 20px;
}

.slidergroup {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.slider {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.list {
    font-size: 14px;
    margin-bottom: 0;
}

/* Content */
.content {
    position: relative;
    height: 150px;
}

    .content img {
        height: 46px;
        margin-top: 20px;
    }

.contentblock {
    display: flex;
    max-width: 850px;
    width: 100%;
    align-items: start;
    margin-bottom: 30px;
    padding: 10px;
    justify-content: space-between;
}

/* Wrapper */
.wrapper {
    position: fixed;
    bottom: 0;
    background: #000000;
    background: linear-gradient(1deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    color: #f1f1f1;
    width: 100%;
    padding: 20px;
    padding-bottom: 100px;
    padding-top: 500px;
}

    .wrapper p {
        max-width: 600px;
        font-size: 14px;
    }

/* Intro */
#landing {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
}

#logo {
    position: relative;
    z-index: 10;
    margin: auto;
    width: 80%;
    max-width: 800px;
    animation-name: LogofadeIn;
    animation-duration: 4s;
}

/* Main */
#headerlogo {
    position: absolute;
    z-index: 10;
    width: 270px;
    top: 100px;
    left: 30px;
}

/* Animation */
.swipeout {
    animation-name: swipeOut;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

.swipein {
    animation-name: swipeIn;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

/* The dots/bullets/indicators */
.dotslide {
    text-align: center;
    position: absolute;
    bottom: 0px;
    margin-left: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

    .dot.active {
        height: 14px;
        width: 14px;
    }

/* Form */
input::placeholder {
    color: #72B0E8 !important;
    font-family: Inter;
    font-size: 14px;
}

form {
    background: rgba(255, 255, 255, 0.9);
    max-width: 540px;
    width: 100%;
    padding: 10px;
    margin-right: 20px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #1E2D4D;
    flex-direction: column;
    height: 84vh;
    position: relative;
    top: 20px;
}

    form.left-align {
        padding: 10px;
    }

    form h2 {
        font-size: 34px;
        font-weight: 500;
        margin: 0px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 25%);
        text-align: center;
    }

    form p {
        font-weight: 400;
        font-size: 16px;
        margin: 0px;
        margin-bottom: 20px;
        text-align: center;
    }

    form.left-align p {
        margin-bottom: 10px;
        text-align: left;
    }

    form span {
        color: #72B0E8;
        font-size: 14px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 25%);
        text-align: center;
        display: block;
    }

    form.left-align span {
        text-align: left;
    }

    form bdi {
        color: #2D4E97;
        font-size: 12px;
        display: block;
        margin-bottom: 16px;
    }

    form input {
        line-height: initial;
    }

.form-container {
    width: 100%;
    text-align: left;
    padding: 5px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    margin: 5px;
}

    .form-container.password-validation {
        overflow-y: visible;
    }

    .form-container .inner-container {
        width: 350px;
        margin: 15px auto 0 auto;
    }

        .form-container .inner-container.middle-align {
            margin: auto;
        }

    .form-container h4 {
        text-align: center;
    }

    .form-container label {
        font-weight: 500;
        margin-bottom: 0;
        margin-top: 10px;
    }

    .form-container button {
        margin-top: 10px;
    }

    .form-container .forgetpassword {
        text-align: right;
    }

    .form-container input {
        width: 100%;
        background-color: #DFEDFA !important;
        border: none;
        font-size: 12px;
        padding: 14px;
        border-radius: 6px;
        margin: 10px 0px;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 25%);
    }

        /* Override autofill styles - normal inputs */
        .form-container input:not(.val-error):-webkit-autofill,
        .form-container input:not(.val-error):-webkit-autofill:hover,
        .form-container input:not(.val-error):-webkit-autofill:focus,
        .form-container input:not(.val-error):-webkit-autofill:active,
        .form-container input:not(.val-error):-internal-autofill-selected {
            /* Keep original outer shadow while painting autofill background */
            box-shadow: 0px 4px 4px rgba(0, 0, 0, 25%) !important;
            -webkit-box-shadow: 0 0 0 30px #DFEDFA inset, 0px 4px 4px rgba(0, 0, 0, 25%) !important;
            -webkit-text-fill-color: inherit !important;
            background-color: #DFEDFA !important;
            background-image: none !important;
            color: inherit !important;
            transition: background-color 5000s ease-in-out 0s !important;
        }

        /* Override autofill styles - error inputs */
        .form-container input.val-error:-webkit-autofill,
        .form-container input.val-error:-webkit-autofill:hover,
        .form-container input.val-error:-webkit-autofill:focus,
        .form-container input.val-error:-webkit-autofill:active,
        .form-container input.val-error:-internal-autofill-selected {
            /* Keep error styling while overriding autofill */
            box-shadow: 0px 4px 4px rgba(0, 0, 0, 25%) !important;
            -webkit-box-shadow: 0 0 0 30px #DFEDFA inset, 0px 4px 4px rgba(0, 0, 0, 25%) !important;
            -webkit-text-fill-color: inherit !important;
            background-color: #DFEDFA !important;
            background-image: url(../img/IconsErorr.svg) !important;
            background-repeat: no-repeat !important;
            background-position: right 5px center !important;
            color: inherit !important;
            border-bottom: 1px solid #FD4141 !important;
            padding-right: 3.6rem !important;
            transition: background-color 5000s ease-in-out 0s !important;
        }

    .form-container a {
        display: inline-block;
        text-decoration: none;
        font-size: 13px;
        color: #2D4E97;
        font-weight: 500;
        margin-bottom: 30px;
    }

    .form-container.left-align a {
        margin-bottom: 0;
    }

    .form-container button.back {
        display: inline-block;
        text-decoration: none;
        font-size: 13px;
        color: #2D4E97;
        font-weight: 500;
        margin-bottom: 30px;
        background: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        cursor: pointer;
        padding: 0;
        width: auto;
    }

    .form-container .error-title {
        margin-bottom: 12px;
        text-align: center;
        color: #FD4141;
    }

    .form-container .model-error-message {
        width: 100%;
        text-align: center;
        color: #FD4141;
        background-color: transparent;
        font-size: 14px;
        line-height: 24.52px;
        white-space: pre-line;
    }

    .form-container .mt-3 {
        margin-top: 3px;
    }

    .form-container .mt-10 {
        margin-top: 10px;
    }

.divider {
    display: flex;
    align-items: center;
    margin: 10px 0px;
}

    .divider .divider-or {
        margin: 0px 20px;
        color: #72B0E8;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 25%);
        font-size: 14px;
        text-align: center;
    }

hr {
    height: 1px;
    width: 100%;
    border-top: 1px solid #72B0E8;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 25%);
    margin: 0;
    opacity: initial;
}

#signin {
    background: #3363C2;
    background: linear-gradient(180deg, rgba(51, 99, 194, 1) 100%, rgba(60, 120, 212, 0) 100%);
    color: white;
    border-radius: 6px;
    width: 100%;
    padding: 14px;
    border: 1px solid white;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 25%);
    font-size: 18px;
    line-height: initial;
}

#azure {
    line-height: initial;
}

.bluebtn {
    background: #3363C2;
    background: linear-gradient(180deg, rgba(51, 99, 194, 1) 100%, rgba(60, 120, 212, 0) 100%);
    color: white;
    border-radius: 6px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 25%);
    font-size: 18px;
    cursor: pointer;
}

    .bluebtn:disabled {
        background: #A0AEC0 !important;
        color: #FFFFFF !important;
        cursor: not-allowed;
        opacity: 0.7;
    }

.whitebtn {
    cursor: pointer;
    text-align: center;
}

#azure {
    padding: 14px;
    background: white;
    border-radius: 6px;
    width: 100%;
    border: 1px solid #D2D6E9;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 25%);
    font-size: 18px;
    color: #2D4E97;
}

.copyright {
    text-align: center !important;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.copyright-bottom {
    margin-top: auto;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

    .copyright-bottom .copyright {
        margin-top: 0;
        color: #72B0E8;
        font-size: 14px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 25%);
    }

/* Set Password*/
.input-password-group {
    position: relative;
}

.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);
}

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

form i.password-reveal {
    position: absolute;
    right: 0;
    cursor: pointer;
    font-size: 16px;
    top: 10px;
    color: #000000;
    margin-right: 12px;
}

.form-control.val-error {
    border-bottom: 1px solid #FD4141 !important;
    background-image: url(../img/IconsErorr.svg);
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 3.6rem;
}

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

.error-title {
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    color: #FD4141;
}

.error-message {
    width: 100%;
    color: #FD4141;
    background-color: transparent;
    text-align: center;
    font-size: 14px;
}

.error-text {
    color: #FD4141;
}

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

.val-error-message {
    color: #FD4141;
    text-align: left;
}

    .val-error-message ul {
        font-size: 14px;
        margin-bottom: 0;
    }

.form-label.val-error {
    color: #FD4141;
}

.model-error-message {
    width: 100%;
    text-align: center;
    color: #FD4141;
    background-color: transparent;
    font-size: 14px;
    line-height: 24.52px;
    white-space: pre-line;
}

/* The animation code */
@keyframes LogofadeIn {
    0% {
        opacity: 0;
        bottom: -100px
    }

    25% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        bottom: 0px
    }
}

@keyframes swipeOut {
    0% {
        opacity: 1;
        right: 0px
    }

    100% {
        opacity: 0;
        right: -100px
    }
}

@keyframes swipeIn {
    0% {
        opacity: 0;
        right: -100px;
    }

    100% {
        opacity: 1;
        right: 0px
    }
}

/* Responsive*/
@media only screen and (max-width: 1366px) {
    form {
        position: absolute;
        right: -100px;
        top: auto;
        bottom: -40px;
        padding-right: 100px;
    }

    .contentblock {
        max-width: 540px;
    }

    .content img {
        height: 30px;
    }

    .content h1 {
        font-size: 22px;
    }

    .divider {
        margin: 0px 0px;
    }

    .dotslide {
        margin-left: 44px;
    }

    #signin,
    #azure {
        padding: 10px;
        margin: 12px 0px;
    }
}

@media only screen and (max-width: 1080px) {
    .container {
        padding: 0px;
    }

    #headerlogo,
    .content p,
    .slider {
        display: none;
    }

    .contentblock {
        max-width: none;
    }

    .content {
        margin: auto;
        bottom: -170px;
    }

        .content h1 {
            margin-top: 24px;
        }

    .dotslide {
        justify-content: center;
        margin-left: 0px;
        width: 100%;
        bottom: -60px;
    }

    form {
        position: absolute;
        bottom: 30px;
        padding: 25px;
        padding-top: 20px;
        height: 80vh;
        top: auto;
        left: 50%;
        transform: translate(-50%);
        max-width: 540px;
    }

        form i.password-reveal {
            top: 8px;
        }

        form p {
            margin: 10px 0px;
            margin-bottom: 0px;
        }

    .form-container {
        padding-bottom: 0px;
    }

        .form-container a {
            margin-bottom: 30px;
        }

        .form-container input {
            padding: 12px;
        }
}

@media only screen and (max-width: 930px) {
    video {
        height: 100%;
    }

    form {
        padding-top: initial;
    }
}


@media only screen and (max-width: 576px) {
    #headerlogo {
        position: relative;
        left: -20%;
        transform: translateX(50%);
        top: 40px;
        display: block;
        text-align: center;
    }

    .wrapper {
        padding: 0px
    }

    form {
        bottom: -50px;
        padding-bottom: 70px;
        padding-top: 0px;
        height: 70vh;
    }

    .form-container a {
        margin-bottom: 0px;
    }

    .form-container #welcomeback h2 {
        display: none;
    }

    .form-container #accessdenied h2 {
        margin-top: 30px;
    }

    .form-container .inner-container {
        width: 300px;
        margin: auto;
    }

    .spacer {
        margin-top: 15px;
    }

    .contentblock {
        bottom: 63vh;
        position: relative;
    }

    .content {
        margin: auto;
        bottom: 0px;
    }

        .content p,
        .slider {
            display: block;
        }

        .content img {
            width: 30px;
            height: 30px;
            margin: 10px 0px 0px 0px;
        }

        .content h1 {
            font-size: 20px;
            letter-spacing: 0px;
            margin-top: 0px;
        }
}

@media only screen and (max-width: 576px) {
    #dotslide {
        display: none;
    }

    .contentblock {
        height: 200px;
        background: linear-gradient(1deg, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 90%);
        padding-top: 30px;
    }
}

@media only screen and (max-width: 576px) and (max-height: 800px) {
    .contentblock {
        display: none;
    }

    form {
        height: 90vh;
    }
}

@media only screen and (max-width: 500px) {

    .content p,
    .slider,
    #dotslide {
        display: none;
    }

    .content img {
        margin: 0px;
    }

    .content h1 {
        margin-top: 3px;
    }
}

@media only screen and (max-width: 375px) {
    .contentblock {
        display: none;
    }
}

@media only screen and (max-height: 800px) {
    form p {
        margin: 10px 0px;
        margin-bottom: 0px;
    }

    .form-container {
        padding-bottom: 0px;
    }

        .form-container a {
            margin-bottom: 15px;
        }

        .form-container input {
            padding: 12px;
        }

    #signin,
    #azure {
        padding: 10px;
        margin: 5px 0px;
    }

    .divider {
        margin: 0;
    }
}

@media only screen and (max-height: 550px) {
    form.password-validation-form {
        height: 100vh;
        bottom: -105px;
    }
}
