/* CSP hardening styles for login */

/* Prevent first-paint FOUC for nodes that should start hidden.
   login.js applies data-inline-style on DOMContentLoaded, so we need a CSS fallback earlier. */
#loginbody[data-inline-style*="display:none"],
#loginbody[data-inline-style*="display: none"],
#loginbody [data-inline-style*="display:none"],
#loginbody [data-inline-style*="display: none"] {
    display: none !important;
}

/* Center the div within the table cell */
            #showQr {
                display: inline-block;
                margin: 0 auto;
            }

            /* Center the table within its parent container */
            #qrDisplay {
                /*display: flex;*/
                text-align: center;
            }

            /* Styling for the QR code div */
            #showQr {
                width: 220px;
                height: 220px;
                /*background-color: #a30000;*/
                background-color: red;
                display: flex;
                border-radius: 10px 10px 10px 10px;
                justify-content: center;
                align-items: center;
            }

            /* Styling for the white container around the QR code */
            #qrContainer {
                width: 192px;
                height: 192px;
                background-color: white;
                display: flex;
                justify-content: center;
                align-items: center;
            }

            /* Styling for the QR code */
            #qrCode {
                width: 190px;
                height: 190px;
                border: 2px solid white;
                justify-content: center;
                align-items: center;
            }

            /* Styling for the text Login Header QR */
            #loginHeaderQr {
                position:absolute;
                width: 100%;
                display:none;
                font-size:14px;
                color: #bbb;
                font-family:Arial, Helvetica, sans-serif;
                font-family: Muli, Tahoma, Verdana, Segoe, sans-serif;
            }

            /* Styling for the text Login Header QR */
            #loginHeaderOtp {
                position:absolute;
                width: 100%;
                display:none;
                font-size:14px;
                color: #bbb;
                font-family: Arial, Helvetica, sans-serif;
                font-family: Muli, Tahoma, Verdana, Segoe, sans-serif;
            }

            /* Styling for the text Login OTP count QR */
            #loginHeaderOtpCount {
                position:absolute;
                display:none;
                font-size:14px;
                color: #bbb;
                font-family: Arial, Helvetica, sans-serif;
                font-family: Muli, Tahoma, Verdana, Segoe, sans-serif;
                text-align: center;
            }

            /* Styling for the hyperlink div */
            .hyperlinkScanQr {
                position:absolute;
                display:none;
                padding: 5px 10px;
                text-align: center;
                /*background-color: #007bff;  Warna latar hyperlink */
                color: white; /* Warna teks hyperlink */
                text-decoration: none; /* Menghilangkan garis bawah pada hyperlink */
                /*border-radius: 5px;  Sudut bulat */
            }

            /* Hover state untuk memberikan efek saat kursor diarahkan ke hyperlink */
            .hyperlinkScanQr:hover {
                /*background-color: #0056b3;  Warna latar hyperlink saat dihover */
                background-color: white;
            }

            /* Styling for the input box */
            #boxInput {
                width:60px;
                height:60px;
                font-size:24px;
                text-align: center;
                line-height: 60px;
                color:#fff;
                background: #222;
            }
            #boxInput:hover {
                background: #C9270B;
                cursor: pointer;
            }

#loginmessage .login-db-version-local-message {
    color: #fff;
    font-size: 12px;
}

#barcode {
    background: transparent;
}

@keyframes login-auth-error-bounce {
    0%, 20%, 50%, 80%, 100% {
        margin-top: 0;
    }
    40% {
        margin-top: -18px;
    }
    60% {
        margin-top: -8px;
    }
}

#login.login-auth-error-bounce {
    animation: login-auth-error-bounce 500ms ease;
}

html body .ui-dialog.ui-front {
    position: fixed !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    min-width: 360px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
}

/* The legacy jQuery UI theme references optional texture images that are not
   shipped in this deployment. Keep its existing fallback colors without
   issuing broken image requests when the duplicate-session dialog opens. */
html body .ui-dialog .ui-widget-header {
    background-image: none !important;
}

html body .ui-dialog .ui-state-default,
html body .ui-dialog .ui-state-hover,
html body .ui-dialog .ui-state-focus {
    background-image: none !important;
}

html body .ui-widget-overlay {
    background-image: none !important;
}

html body .ui-dialog .ui-dialog-content.dialog.confirm {
    width: auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 8px 14px !important;
    line-height: 18px;
    overflow: visible !important;
    box-sizing: border-box;
}

html body .ui-dialog .ui-dialog-content.dialog.confirm + .ui-dialog-buttonpane {
    margin-top: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* LOGIN-CONFIRM-DIALOG-CLOSE-20260624
   Keep native jQuery UI close text semantics while making the close icon visible. */
html body .ui-dialog .ui-dialog-titlebar-close {
    background: #f2f2f2 !important;
    border: 1px solid #ff3300 !important;
    box-sizing: border-box !important;
    color: #c9270b !important;
    cursor: pointer !important;
    display: block !important;
    font-family: Arial, Helvetica, sans-serif !important;
    height: 20px !important;
    margin: -10px 0 0 0 !important;
    padding: 1px !important;
    text-align: center !important;
    width: 20px !important;
}

html body .ui-dialog .ui-dialog-titlebar-close .ui-button-text {
    display: block !important;
    line-height: normal !important;
    padding: .4em !important;
    text-indent: -9999999px !important;
}

html body .ui-dialog .ui-dialog-titlebar-close .ui-icon {
    background-image: none !important;
    display: block !important;
    height: 16px !important;
    left: 50% !important;
    margin-left: -8px !important;
    margin-top: -8px !important;
    position: absolute !important;
    text-indent: 0 !important;
    top: 50% !important;
    width: 16px !important;
}

html body .ui-dialog .ui-dialog-titlebar-close .ui-icon::before {
    color: #c9270b !important;
    content: "x";
    display: block;
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 16px !important;
    text-align: center !important;
}

html body .ui-dialog .ui-dialog-titlebar-close:hover,
html body .ui-dialog .ui-dialog-titlebar-close:focus {
    background: #ffffff !important;
    border-color: #ff3300 !important;
    color: #d90000 !important;
    outline: none !important;
}

html body .ui-dialog .ui-dialog-titlebar-close:hover .ui-icon::before,
html body .ui-dialog .ui-dialog-titlebar-close:focus .ui-icon::before {
    color: #d90000 !important;
}

.login-notif-icon-cell {
    padding-right: 20px;
    text-align: center;
    vertical-align: middle;
}

.login-notif-action {
    cursor: pointer;
}

.login-notif-close-footer {
    bottom: 10px;
    font-size: 11px;
    position: absolute;
    text-decoration: underline;
}

.login-eod-close {
    bottom: 10px;
    font-size: 11px;
    position: absolute;
    right: 20px;
    text-decoration: underline;
}

.login-register-error {
    color: red;
}

.login-register-prompt,
.login-register-link {
    color: white;
}
