/* ZABDesk-inspired login presentation. Authentication controls and behavior are unchanged. */
body.erp-login-page {
    min-height: 100vh;
    margin: 0;
    background: #eef2f6 !important;
    color: #34495e;
    font-family: Arial, Helvetica, sans-serif;
}

.erp-login-header {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 34px;
    background: #fff;
}

.erp-login-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.erp-login-brand img {
    width: 235px;
    height: 50px;
    object-fit: contain;
}

.erp-login-brand strong,
.erp-login-brand span {
    display: block;
}

.erp-login-brand strong {
    color: #155fa7;
    font-size: 18px;
    letter-spacing: .01em;
}

.erp-login-brand span {
    margin-top: 3px;
    color: #65798a;
    font-size: 13px;
}

.erp-login-marker {
    border-radius: 4px;
    padding: 8px 12px;
    background: #e58a1f;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
}

.erp-login-bluebar {
    height: 34px;
    background: #155fa7;
    box-shadow: 0 2px 6px rgba(20, 61, 96, .18);
}

.erp-login-page .page-lock {
    width: 410px;
    max-width: calc(100% - 30px);
    margin: 28px auto 12px;
}

.erp-login-page .page-lock .page-body {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d5dee6;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(30, 69, 102, .13);
}

.erp-login-page .page-lock .lock-head {
    min-height: 46px;
    padding: 11px 20px;
    background: #155fa7;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    text-align: left;
}

.erp-login-page .page-lock .lock-body {
    min-height: 0;
    margin: 0;
    overflow: hidden;
    padding: 20px 26px 8px;
    background: #fff;
}

.erp-login-page .lock-avatar-block {
    display: none;
}

.erp-login-page .lock-avatar {
    width: 92px;
    height: 84px;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}

.erp-login-page .erp-login-field,
.erp-login-page .erp-login-action {
    float: none !important;
    width: 100% !important;
    margin: 0 0 15px !important;
}

.erp-login-page .erp-connection-selector {
    display: none !important;
}

.erp-login-page .form-control,
.erp-login-page .select2-container {
    width: 100% !important;
    height: 42px;
}

.erp-login-page .select2-container .select2-choice {
    height: 42px;
    padding-top: 7px;
    border-color: #cbd7e1;
}

.erp-login-page .form-control:focus,
.erp-login-page .select2-container-active .select2-choice {
    border-color: #4384bb;
    box-shadow: 0 0 0 2px rgba(21, 95, 167, .12);
}

.erp-login-page .erp-login-action .btn {
    width: 100%;
    min-height: 42px;
    border-color: #155fa7;
    background: #155fa7;
    color: #fff;
    font-weight: 600;
}

.erp-login-page .erp-login-action .btn:hover,
.erp-login-page .erp-login-action .btn:focus {
    border-color: #0d4e88;
    background: #0d4e88;
}

.erp-login-page .page-lock .lock-bottom {
    display: none;
}

.erp-login-page .erp-login-footer-logo {
    width: 58px !important;
    height: 54px;
    object-fit: contain;
}

.erp-login-page .page-footer-custom {
    margin-top: 10px;
    color: #617588 !important;
    font-size: 12px;
    text-align: center;
}

.erp-login-page [id$="pnl_cap"] {
    clear: both;
    text-align: center;
}

.erp-login-page [id$="pnl_cap"] input[type="text"] {
    width: 100%;
    height: 40px;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid #cbd7e1;
}

.erp-login-page .erp-show-password {
    display: inline-block;
    margin-top: 8px;
    color: #526b80;
    font-size: 12px;
}

@media (max-width: 600px) {
    .erp-login-header {
        min-height: 64px;
        padding: 8px 16px;
    }

    .erp-login-brand img {
        width: 185px;
        height: 44px;
    }

    .erp-login-brand strong {
        font-size: 18px;
    }

    .erp-login-brand span {
        display: none;
    }

    .erp-login-bluebar {
        height: 26px;
    }

    .erp-login-page .page-lock {
        margin-top: 18px;
    }
}
