html.login-b1-html,
html.login-b1-html html {
    background-image: url("../img/login-bg.png") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-color: #0b2a3a !important;
}

body.login-b1-page {
    background: transparent !important;
}

.login-b1-page .auth-brand-block,
.login-b1-page .auth-register-block {
    display: none !important;
}

.login-b1-page .auth-top-chrome {
    min-height: 3.25rem !important;
    height: auto;
}

.login-b1-page .right-col {
    padding-top: 12px !important;
}

.login-b1-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 5.5rem);
    padding: 12px 0 28px;
}

.login-b1-demo {
    width: 720px;
    max-width: calc(100vw - 24px);
    margin-bottom: 18px;
}

.b1-window {
    width: 720px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid #7d7d7d;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.32),
        inset 0 0 0 1px #efefef;
    font-family: "Segoe UI", Tahoma, Arial, Helvetica, sans-serif;
    color: #1a1a1a;
}

.b1-titlebar {
    height: 36px;
    background: #ff007b !important;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    user-select: none;
}

.b1-titlebar-text {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
}

.b1-win-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

.b1-win-btn {
    width: 28px;
    height: 20px;
    border: 0;
    background: transparent;
    color: #f3f3f3;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.b1-win-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
}

.b1-win-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.b1-win-btn-close:hover {
    background: #c75050;
    color: #fff;
}

.b1-body {
    display: flex;
    min-height: 338px;
    background: #fff;
}

.b1-photo {
    width: 228px;
    flex-shrink: 0;
    overflow: hidden;
    background: #e8e8e8;
}

.b1-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.b1-form-pane {
    flex: 1;
    min-width: 0;
    padding: 20px 22px 14px;
    display: flex;
    flex-direction: column;
}

.b1-logo {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 24px;
    line-height: 0.9;
    text-align: center;
}

.b1-logo-main {
    font-size: 38px;
    font-weight: 700;
    color: #6d6d6d;
    letter-spacing: -0.6px;
}

.b1-logo-amp {
    font-size: 30px;
    font-weight: 700;
    color: #8a8a8a;
    padding-bottom: 3px;
}

.b1-logo-accent {
    font-size: 38px;
    font-weight: 700;
    color: #ff0500;
    letter-spacing: -0.5px;
    padding-bottom: 1px;
}

.b1-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.b1-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    margin-bottom: 11px;
}

.b1-label {
    margin: 0;
    text-align: right;
    font-size: 13px;
    font-weight: 400;
    color: #222;
    line-height: 1.2;
}

.b1-req {
    color: #d0021b;
    font-weight: 700;
}

.b1-field,
.b1-select {
    height: 26px;
    width: 100%;
    border: 1px solid #7d8b98;
    padding: 0 7px;
    font-size: 13px;
    color: #111;
    background: #fff;
    border-radius: 0;
    box-shadow: inset 1px 1px 0 #fff;
}

.b1-field-readonly,
.b1-select {
    background: #dce6f0;
}

.b1-window .b1-field:focus,
.b1-window .b1-select:focus,
.b1-window .b1-field:focus-visible,
.b1-window .b1-select:focus-visible {
    outline: none !important;
    background: #fff9c4 !important;
    border-color: #c9a227 !important;
}

.b1-password-wrap {
    position: relative;
}

.b1-password-wrap .b1-field {
    padding-right: 28px;
}

.b1-eye {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0 4px;
    line-height: 1;
    color: #444;
}

.b1-eye svg {
    width: 16px;
    height: 16px;
    display: block;
}

.b1-check-row {
    margin-top: 2px;
    margin-bottom: 8px;
}

.b1-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: #222;
    cursor: pointer;
}

.b1-check input {
    margin: 0;
}

.b1-error {
    grid-column: 2;
    color: #a94442;
    font-size: 12px;
    margin-top: -6px;
    margin-bottom: 8px;
}

.b1-recaptcha {
    margin: 4px 0 8px 142px;
}

.b1-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.b1-btn {
    min-width: 92px;
    height: 28px;
    padding: 0 12px;
    border-radius: 4px;
    border: 1px solid #8d8d8d;
    background: linear-gradient(180deg, #fbfbfb 0%, #d8d8d8 100%);
    font-size: 13px;
    font-weight: 700;
    color: #111;
    box-shadow: inset 0 1px 0 #fff;
}

.b1-btn-wide {
    min-width: 128px;
}

.b1-btn-company {
    background: #ff0500;
    border-color: #cc0400;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.b1-btn-ok {
    background: #ff007b;
    border-color: #cc0062;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.b1-btn-forgot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    background: #ff007b;
    border-color: #cc0062;
    color: #fff;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.b1-btn-forgot:hover,
.b1-btn-forgot:focus {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.06);
}

.b1-btn:hover {
    filter: brightness(1.04);
}

.b1-btn:active {
    filter: brightness(0.96);
}

.b1-links {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 10px;
    font-size: 12px;
}

.b1-links a {
    color: #3b6ea5;
}

.b1-links a:hover {
    color: #24548a;
    text-decoration: underline;
}

@media (max-width: 760px) {
    .b1-titlebar-text {
        font-size: 12px;
    }

    .b1-photo {
        width: 168px;
    }

    .b1-logo-main,
    .b1-logo-accent {
        font-size: 28px;
    }

    .b1-logo-amp {
        font-size: 22px;
    }

    .b1-row {
        grid-template-columns: 118px minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .b1-titlebar-text {
        font-size: 10px;
    }

    .b1-body {
        flex-direction: column;
        min-height: 0;
    }

    .b1-photo {
        width: 100%;
        height: 148px;
    }

    .b1-photo img {
        object-position: center;
    }

    .b1-logo-main,
    .b1-logo-accent {
        font-size: 30px;
    }

    .b1-logo-amp {
        font-size: 22px;
    }

    .b1-row,
    .b1-recaptcha {
        display: block;
        margin-left: 0;
    }

    .b1-label {
        text-align: left;
        display: block;
        margin-bottom: 4px;
    }

    .b1-actions {
        justify-content: stretch;
    }

    .b1-btn,
    .b1-btn-wide {
        flex: 1;
        min-width: 0;
    }
}
