/* Bimo ERP sign-in only. Isolated from all other authentication screens. */
html:has(body.bmk-auth-page) { background: #fff; }
body.bmk-auth-page,
html.bmk-vega-dark body.bmk-auth-page {
    margin: 0;
    min-width: 280px;
    min-height: 100vh;
    color: #171717;
    background: #fff;
    font-family: 'Almarai', 'Montserrat', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.bmk-auth-page *, body.bmk-auth-page *::before, body.bmk-auth-page *::after {
    box-sizing: border-box;
}
body.bmk-auth-page .bmk-login-screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 42px 20px 24px;
    background: #fff;
}
body.bmk-auth-page .bmk-login-main {
    width: min(100%, 430px);
    margin-top: auto;
}
body.bmk-auth-page .bmk-login-brand {
    display: inline-flex;
    align-items: flex-start;
    gap: 5px;
    direction: ltr;
    font-family: 'Montserrat', 'Almarai', sans-serif;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -1.25px;
    line-height: 1.2;
    color: #111;
    text-decoration: none;
    margin-bottom: 32px;
}
body.bmk-auth-page .bmk-login-brand sup {
    margin-top: 3px;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1;
}
body.bmk-auth-page .bmk-login-card {
    width: 100%;
    padding: 40px 38px 38px;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 36px rgba(18, 18, 18, .035);
}
body.bmk-auth-page .bmk-login-title {
    margin: 0;
    font-size: 25px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -.65px;
    color: #171717;
}
body.bmk-auth-page .bmk-login-subtitle {
    margin: 8px 0 29px;
    color: #737373;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}
body.bmk-auth-page .bmk-login-form {
    width: 100%;
    margin: 0;
}
body.bmk-auth-page .bmk-login-field { margin: 0 0 19px; }
body.bmk-auth-page .bmk-login-label {
    display: block;
    margin: 0 0 9px;
    color: #202020;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}
body.bmk-auth-page .bmk-login-input {
    display: block;
    width: 100%;
    height: 49px;
    min-height: 49px;
    padding: 0 14px;
    border: 1px solid #dadada;
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
    color: #151515;
    font: inherit;
    font-size: 14px;
    line-height: normal;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}
body.bmk-auth-page .bmk-login-input::placeholder { color: #a0a0a0; opacity: 1; }
body.bmk-auth-page .bmk-login-input:hover { border-color: #a7a7a7; }
body.bmk-auth-page .bmk-login-input:focus,
body.bmk-auth-page .bmk-login-input:focus-visible {
    border-color: #111;
    outline: none;
    box-shadow: 0 0 0 3px rgba(17,17,17,.08);
}
body.bmk-auth-page .bmk-login-field.has-error .bmk-login-input {
    border-color: #c93636;
}
body.bmk-auth-page .bmk-login-field .help-block {
    display: block;
    margin: 7px 0 0;
    color: #c93636;
    font-size: 12px;
    line-height: 1.55;
}
body.bmk-auth-page .bmk-login-password-wrap { position: relative; }
body.bmk-auth-page .bmk-login-password-wrap .bmk-login-input {
    padding-inline-end: 73px;
}
body.bmk-auth-page .bmk-login-password-toggle {
    position: absolute;
    inset-inline-end: 7px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 53px;
    height: 35px;
    padding: 0 7px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #525252;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}
body.bmk-auth-page .bmk-login-password-toggle:hover { color: #111; background: #f4f4f4; }
body.bmk-auth-page .bmk-login-password-toggle:focus-visible {
    outline: 2px solid #111;
    outline-offset: 1px;
}
body.bmk-auth-page .bmk-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 5px 0 26px;
}
body.bmk-auth-page .bmk-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #4b4b4b;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    cursor: pointer;
}
body.bmk-auth-page .bmk-login-remember input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    accent-color: #111;
    cursor: pointer;
}
body.bmk-auth-page .bmk-login-forgot {
    color: #232323;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    text-decoration: none;
    text-underline-offset: 3px;
}
body.bmk-auth-page .bmk-login-forgot:hover,
body.bmk-auth-page .bmk-login-forgot:focus-visible { text-decoration: underline; }
body.bmk-auth-page .bmk-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 49px;
    padding: 12px 16px;
    border: 1px solid #111;
    border-radius: 9px;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease;
}
body.bmk-auth-page .bmk-login-submit:hover { background: #303030; border-color: #303030; }
body.bmk-auth-page .bmk-login-submit:focus-visible {
    outline: 3px solid #a7a7a7;
    outline-offset: 3px;
}
body.bmk-auth-page .bmk-login-footer {
    width: 100%;
    margin-top: auto;
    color: #919191;
    font-size: 11px;
    line-height: 1.9;
    text-align: center;
}
body.bmk-auth-page .bmk-login-footer p { margin: 0; }
body.bmk-auth-page .bmk-login-footer .bmk-login-copyright {
    direction: ltr;
    unicode-bidi: isolate;
}
body.bmk-auth-page .bmk-login-demo {
    margin-top: 24px;
}
@media (max-width: 480px) {
    body.bmk-auth-page .bmk-login-screen { gap: 35px; padding: 30px 16px 20px; }
    body.bmk-auth-page .bmk-login-main { max-width: 400px; }
    body.bmk-auth-page .bmk-login-brand { margin-bottom: 25px; font-size: 24px; }
    body.bmk-auth-page .bmk-login-card { padding: 30px 23px; border-radius: 13px; }
    body.bmk-auth-page .bmk-login-title { font-size: 23px; }
    body.bmk-auth-page .bmk-login-subtitle { margin-bottom: 24px; }
}
@media (max-width: 340px) {
    body.bmk-auth-page .bmk-login-card { padding: 24px 17px; }
    body.bmk-auth-page .bmk-login-options { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    body.bmk-auth-page .bmk-login-input,
    body.bmk-auth-page .bmk-login-submit { transition: none; }
}

/* Form submission confirmation: temporary, visible only while POST navigates. */
body.bmk-auth-page .bmk-login-submit[aria-busy="true"] {
    display:flex;
    gap:10px;
    cursor:progress;
    opacity:1;
}
body.bmk-auth-page .bmk-login-submit:disabled {
    opacity:1;
    color:#fff;
    background:#111;
    border-color:#111;
    cursor:progress;
}
body.bmk-auth-page .bmk-login-submit-spinner {
    width:15px;
    height:15px;
    flex:none;
    border:2px solid rgba(255,255,255,.32);
    border-top-color:#fff;
    border-radius:50%;
    animation:bmk-login-spin .75s linear infinite;
}
body.bmk-auth-page .bmk-login-progress {
    display:block;
    margin:12px 0 0;
    color:#6b6b6b;
    font-size:11px;
    line-height:1.6;
    text-align:center;
}
body.bmk-auth-page .bmk-login-progress[hidden] {display:none !important;}
@keyframes bmk-login-spin {to{transform:rotate(360deg);}}
@media (prefers-reduced-motion:reduce) {
    body.bmk-auth-page .bmk-login-submit-spinner {animation:none;}
}
