:host {
    display: block;
    min-height: 100dvh;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.bc-login-page {
    min-height: 100dvh;
    padding: 22px;
    display: grid;
    place-items: center;
    overflow: auto;
    background: #eef2f6;
    color: #172033;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.bc-login-shell {
    width: min(1180px, 100%);
    min-height: 690px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #c9d1dc;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .13);
}

.bc-brand-panel {
    min-width: 0;
    padding: 34px 28px 26px;
    display: flex;
    flex-direction: column;
    background: #10233f;
    color: #fff;
}

.bc-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bc-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 1px solid #3c506c;
    border-radius: 4px;
    background: #0b766e;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.bc-product-name {
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: .3px;
}

.bc-product-edition {
    margin-top: 3px;
    color: #aebbd0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.bc-divider {
    height: 1px;
    margin: 28px 0 22px;
    background: #31445f;
}

.bc-context-label,
.bc-section-kicker,
.bc-page-eyebrow {
    color: #0b766e;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.35px;
}

.bc-context-label {
    color: #aebbd0;
}

.bc-status-list {
    margin-top: 18px;
    display: grid;
    gap: 17px;
}

.bc-status-row {
    display: grid;
    grid-template-columns: 10px minmax(0,1fr);
    gap: 11px;
    align-items: start;
}

.bc-status-dot {
    width: 8px;
    height: 8px;
    margin-top: 4px;
    border: 1px solid #72809a;
    border-radius: 50%;
    background: #667085;
}

    .bc-status-dot.ok {
        border-color: #12b76a;
        background: #12b76a;
    }

    .bc-status-dot.off {
        border-color: #f04438;
        background: #f04438;
    }

    .bc-status-dot.neutral {
        border-color: #98a2b3;
        background: #98a2b3;
    }

.bc-status-row strong {
    display: block;
    color: #fff;
    font-size: 11px;
    font-weight: 750;
}

.bc-status-row small {
    display: block;
    margin-top: 3px;
    color: #aebbd0;
    font-size: 9px;
    line-height: 1.35;
}

.bc-brand-footer {
    margin-top: auto;
    padding-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-top: 1px solid #31445f;
}

    .bc-brand-footer span,
    .bc-brand-footer strong {
        display: block;
    }

    .bc-brand-footer span {
        color: #8fa0b9;
        font-size: 8px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .8px;
    }

    .bc-brand-footer strong {
        margin-top: 4px;
        color: #fff;
        font-size: 10px;
        font-weight: 800;
    }

.bc-login-content {
    position: relative;
    min-width: 0;
    padding: 38px 48px 24px;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.bc-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e4e7ec;
}

    .bc-page-header h1 {
        margin: 7px 0 0;
        color: #172033;
        font-size: 29px;
        line-height: 1.15;
        font-weight: 850;
        letter-spacing: -.5px;
    }

    .bc-page-header p {
        margin: 8px 0 0;
        color: #667085;
        font-size: 12px;
        line-height: 1.45;
    }

.bc-online-badge {
    height: 29px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #d0d5dd;
    border-radius: 3px;
    background: #f9fafb;
    color: #344054;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .6px;
}

    .bc-online-badge span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #98a2b3;
    }

    .bc-online-badge.online span {
        background: #12b76a;
    }

    .bc-online-badge.offline span {
        background: #f04438;
    }

.bc-workspace-section,
.bc-credentials-section {
    padding-top: 22px;
}

.bc-section-heading {
    margin-bottom: 11px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

    .bc-section-heading.compact {
        margin-bottom: 10px;
    }

    .bc-section-heading h2 {
        margin: 4px 0 0;
        color: #344054;
        font-size: 14px;
        font-weight: 850;
    }

.bc-section-hint {
    color: #98a2b3;
    font-size: 9px;
}

.bc-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    border-top: 1px solid #d0d5dd;
    border-left: 1px solid #d0d5dd;
}

.bc-module {
    min-width: 0;
    min-height: 60px;
    padding: 10px 11px;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    border: 0;
    border-right: 1px solid #d0d5dd;
    border-bottom: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
    text-align: left;
    cursor: pointer;
}

    .bc-module:hover:not(:disabled) {
        background: #f8fafc;
    }

    .bc-module.active {
        background: #eef8f7;
        box-shadow: inset 3px 0 0 #0b766e;
    }

.bc-module-code {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid #d0d5dd;
    border-radius: 3px;
    background: #f2f4f7;
    color: #475467;
    font-size: 9px;
    font-weight: 900;
}

.bc-module.active .bc-module-code {
    border-color: #0b766e;
    background: #0b766e;
    color: #fff;
}

.bc-module-copy {
    min-width: 0;
}

    .bc-module-copy strong,
    .bc-module-copy small {
        display: block;
    }

    .bc-module-copy strong {
        color: #172033;
        font-size: 12px;
        font-weight: 800;
    }

    .bc-module-copy small {
        margin-top: 3px;
        color: #667085;
        font-size: 9px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.bc-module-state {
    color: #98a2b3;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .6px;
}

.bc-module.active .bc-module-state {
    color: #0b766e;
}

.bc-error {
    margin-top: 16px;
    padding: 10px 12px;
    display: grid;
    gap: 3px;
    border: 1px solid #fecdca;
    border-radius: 3px;
    background: #fef3f2;
    color: #b42318;
}

    .bc-error strong {
        font-size: 10px;
    }

    .bc-error span {
        font-size: 10px;
    }

.bc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bc-field {
    display: block;
}

.bc-field > span {
    display: block;
    margin-bottom: 5px;
    color: #344054;
    font-size: 10px;
    font-weight: 800;
}

.bc-input {
    min-height: 45px;
    display: grid;
    grid-template-columns: 44px minmax(0,1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid #d0d5dd;
    border-radius: 3px;
    background: #fff;
}

    .bc-input:focus-within {
        border-color: #0b766e;
        box-shadow: 0 0 0 2px rgba(11,118,110,.08);
    }

    .bc-input b {
        height: 100%;
        display: grid;
        place-items: center;
        border-right: 1px solid #e4e7ec;
        background: #f9fafb;
        color: #667085;
        font-size: 8px;
        font-weight: 900;
    }

    .bc-input input {
        width: 100%;
        min-width: 0;
        height: 43px;
        padding: 0 12px;
        border: 0;
        outline: 0;
        background: transparent;
        color: #172033;
        font-size: 12px;
        font-weight: 750;
    }

        .bc-input input::placeholder {
            color: #98a2b3;
        }

.bc-login-actions {
    margin-top: 18px;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid #e4e7ec;
}

.bc-security-note {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #667085;
    font-size: 9px;
}

    .bc-security-note > span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #12b76a;
    }

.bc-primary-action {
    min-width: 220px;
    height: 46px;
    padding: 0 10px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #0b766e;
    border-radius: 3px;
    background: #0b766e;
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

    .bc-primary-action:hover:not(:disabled) {
        background: #08665f;
    }

    .bc-primary-action b {
        min-width: 48px;
        height: 25px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(255,255,255,.28);
        border-radius: 2px;
        background: rgba(255,255,255,.10);
        font-size: 8px;
    }

    .bc-primary-action:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.bc-content-footer {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    color: #98a2b3;
    font-size: 8px;
    border-top: 1px solid #f2f4f7;
}

@media (max-width: 900px) {
    .bc-login-shell {
        grid-template-columns: 250px minmax(0,1fr);
    }

    .bc-login-content {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 720px) {
    .bc-login-page {
        padding: 10px;
    }

    .bc-login-shell {
        min-height: calc(100dvh - 20px);
        grid-template-columns: 1fr;
    }

    .bc-brand-panel {
        display: none;
    }

    .bc-login-content {
        padding: 28px 18px 20px;
    }

    .bc-page-header {
        padding-top: 35px;
    }

    .bc-online-badge {
        position: absolute;
        top: 18px;
        right: 18px;
    }
}

@media (max-width: 540px) {
    .bc-module-grid,
    .bc-form-grid {
        grid-template-columns: 1fr;
    }

    .bc-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .bc-field-password {
        grid-column: 1;
        max-width: 380px;
    }

    .bc-login-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bc-primary-action {
        width: 100%;
        min-width: 0;
    }

    .bc-section-hint {
        display: none;
    }
}
@media (max-width: 540px) {
    .bc-field-password {
        grid-column: auto;
        max-width: none;
    }
}

/* MOB365 Retail Enterprise login */
.bc-login-page {
    background:
        linear-gradient(rgba(16, 35, 63, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 35, 63, .025) 1px, transparent 1px),
        #eef2f6;
    background-size: 28px 28px;
}

.bc-login-shell {
    border: 1px solid rgba(16, 35, 63, .14);
    border-radius: 16px;
    box-shadow: 0 28px 70px rgba(16, 30, 50, .16);
}

.bc-brand-panel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(22, 164, 151, .20), transparent 31%),
        linear-gradient(155deg, #17304f, #0d1d34 70%);
}

.bc-brand-panel::after {
    content: "";
    position: absolute;
    right: -105px;
    bottom: 52px;
    width: 245px;
    height: 245px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 76px rgba(255,255,255,.018);
    pointer-events: none;
}

.bc-brand-header,
.bc-status-list,
.bc-brand-footer,
.bc-context-label {
    position: relative;
    z-index: 1;
}

.bc-logo {
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 11px;
    background: linear-gradient(145deg, #0a9388, #08746c);
    box-shadow: 0 8px 18px rgba(4, 90, 83, .3);
}

.bc-product-name {
    font-size: 17px;
    letter-spacing: .2px;
}

.bc-product-edition {
    color: #a9bad0;
    letter-spacing: 1.7px;
}

.bc-login-content {
    padding-top: 42px;
}

.bc-page-header h1 {
    font-size: 32px;
    letter-spacing: -.8px;
}

.bc-online-badge {
    border-radius: 18px;
}

.bc-retail-workspace {
    min-height: 66px;
    padding: 11px 13px;
    display: grid;
    grid-template-columns: 40px minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #cee5e2;
    border-radius: 9px;
    background: linear-gradient(135deg, #f4fbfa, #f8fbfc);
    box-shadow: inset 3px 0 0 #0b766e;
}

.bc-retail-workspace-code {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #0b766e;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.bc-retail-workspace-copy strong,
.bc-retail-workspace-copy small {
    display: block;
}

.bc-retail-workspace-copy strong {
    color: #193736;
    font-size: 12px;
    font-weight: 850;
}

.bc-retail-workspace-copy small {
    margin-top: 4px;
    color: #687c7b;
    font-size: 9px;
}

.bc-retail-workspace-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #08736b;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .7px;
}

.bc-retail-workspace-state i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #12a36d;
    box-shadow: 0 0 0 3px rgba(18,163,109,.11);
}

.bc-input,
.bc-error,
.bc-primary-action {
    border-radius: 8px;
}

.bc-primary-action {
    background: linear-gradient(135deg, #09887e, #087169);
    box-shadow: 0 8px 18px rgba(8, 127, 118, .18);
}

.bc-primary-action:hover:not(:disabled) {
    background: linear-gradient(135deg, #087b73, #06645e);
    box-shadow: 0 11px 23px rgba(8, 127, 118, .24);
}

@media (max-width: 720px) {
    .bc-login-shell {
        border-radius: 10px;
    }

    .bc-login-content {
        padding-top: 32px;
    }
}
/* MOB365 Enterprise operator PIN */
.pin-mode-switch{display:flex;gap:8px;margin:0 0 18px;padding:5px;background:#eef2f6;border-radius:10px}
.pin-mode-switch button{flex:1;border:0;background:transparent;padding:11px 14px;border-radius:8px;color:#536273;font-weight:700;cursor:pointer}
.pin-mode-switch button.active{background:#fff;color:#102a43;box-shadow:0 2px 10px rgba(15,35,55,.09)}
.pin-mode-switch button:disabled{opacity:.45;cursor:not-allowed}
.pin-operator-card{display:flex;flex-direction:column;padding:18px 20px;margin-bottom:16px;border:1px solid #d9e3ec;border-left:4px solid #159a9c;border-radius:10px;background:#fff}
.pin-operator-card span{font-size:11px;letter-spacing:.12em;color:#718096;font-weight:800}
.pin-operator-card strong{font-size:22px;color:#102a43;margin:4px 0}
.pin-operator-card small{color:#718096}
.pin-only-grid{grid-template-columns:1fr!important}
.pin-setup-backdrop{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px;background:rgba(8,25,42,.72);backdrop-filter:blur(5px)}
.pin-setup-dialog{width:min(460px,100%);padding:30px;border-radius:16px;background:#fff;box-shadow:0 30px 80px rgba(0,0,0,.3)}
.pin-setup-dialog h2{margin:7px 0;color:#102a43}
.pin-setup-dialog p{margin:0 0 20px;color:#617184}
.pin-setup-dialog .bc-field{display:block;margin:14px 0}
.pin-setup-dialog .bc-primary-action{width:100%;margin-top:20px}
