:root {
    --bg: #f4f6f9;
    --card: #ffffff;
    --pbi-yellow: #F2C811;
    --pbi-yellow-dark: #D9B300;
    --text: #121317;
    --muted: #667085;
    --azure: #0f62fe;
    --panel-w: 360px;
    --footer-h: 34px;
    --max-w: 980px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

html, body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

body {
    padding-bottom: calc(var(--footer-h) + 8px);
}

.page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.center-wrapper {
    width: 100%;
    max-width: var(--max-w);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.portal-card {
    width: auto;
    background: var(--card);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(20,24,40,0.08);
    display: flex;
    gap: 14px;
}

.logo-tile {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(180deg,var(--pbi-yellow),var(--pbi-yellow-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.product-title {
    font-weight: 800;
    font-size: 15px
}

.product-sub {
    font-size: 12px;
    color: var(--muted)
}

.lead-compact {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.right-panel {
    min-width: 260px;
    max-width: var(--panel-w);
    background: linear-gradient(180deg,#fbfcfe,#fff);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 6px 18px rgba(20,20,20,0.03);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-azure {
    background: linear-gradient(90deg,var(--azure),#0057b7);
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(3,102,214,0.10);
}

.btn-secondary-compact {
    background: #fff;
    color: var(--azure);
    border: 1px solid rgba(3,102,214,0.20);
    font-weight: 700;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    line-height: 1;
    white-space: nowrap;
}

.input-compact {
    border-radius: 10px;
    border: 1px solid #e6e9ee;
    padding: 10px 12px;
}

.input-group .form-control.input-compact {
    height: 44px;
}

.input-group .btn-secondary-compact {
    height: 44px;
    padding: 0 12px;
}

.panel-footer a {
    color: var(--muted);
    font-size: 13px;
    margin-right: 10px;
    text-decoration: none;
}

.management-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(6px);
    font-weight: 600;
    font-size: 13px;
    color: #444;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all .15s ease;
}

    .management-btn svg {
        opacity: 0.55;
    }

    .management-btn:hover {
        background: rgba(255,255,255,0.85);
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
        transform: translateY(-1px);
    }

.fixed-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--footer-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 11px;
    color: var(--muted);
    background: rgba(255,255,255,0.94);
    border-top: 1px solid rgba(0,0,0,0.06);
    backdrop-filter: blur(4px);
}

@media (max-width:768px) {
    .portal-card {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
        max-height: calc(100vh - 110px);
        overflow: auto;
    }

    .right-panel {
        width: 100%;
    }

    .management-btn {
        width: 100%;
        justify-content: center;
    }

    .input-group .form-control.input-compact {
        height: 44px;
    }

    .input-group .btn-secondary-compact {
        height: 44px;
    }
}

.env-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

/* COLORS */
.env-dev {
    background: #6C63FF;
}
/* Purple - development  */
.env-test {
    background: #F4A41C;
}
/* Orange  - QA / Testing */
.env-prod {
    background: #28A745;
}
/* Green - Production */