/* =========================================================
   CNCTASPHR PUBLIC BRAND-ONLY HEADER
   Used by index.php through layout/header.php.
========================================================= */

/* =========================================================
   DESKTOP
========================================================= */

body.cnctasphr-public-brand-header
> header.header.cnctasphr-login-site-header {
    width: 100%;
    min-height: 110px;
    margin: 0;
    padding: 0;
    background: #000000;
    border: 0;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.18);
}

body.cnctasphr-public-brand-header
.cnctasphr-login-header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    min-height: 110px;
    margin: 0;
    padding: 20px;
    background: #000000;
    box-sizing: border-box;
}

body.cnctasphr-public-brand-header
.cnctasphr-login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: fit-content;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    text-decoration: none;
}

body.cnctasphr-public-brand-header
.cnctasphr-header-logo-icon {
    display: block;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.cnctasphr-public-brand-header
.cnctasphr-login-logo
.logo-text {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
}

body.cnctasphr-public-brand-header
.cnctasphr-login-logo
.logo-wordmark {
    display: block;
    margin: 0;
    color: #29a9eb;
    font-size: 1.95rem;
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

body.cnctasphr-public-brand-header
.cnctasphr-login-logo
.logo-title {
    display: block;
    margin: 4px 0 0;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

body.cnctasphr-public-brand-header
.cnctasphr-login-logo
.logo-subtitle {
    display: block;
    margin: 3px 0 0;
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* =========================================================
   MOBILE — MATCHES THE OTHER SITE PAGES
========================================================= */

@media (max-width: 768px) {
    body.cnctasphr-public-brand-header
    > header.header.cnctasphr-login-site-header {
        position: sticky;
        top: 0;
        z-index: 10000;
        width: 100%;
        min-height: 94px;
        margin: 0;
        padding: 0;
        background: #000000;
        border: 0;
        box-shadow: none;
    }

    body.cnctasphr-public-brand-header
    .cnctasphr-login-header-container {
        position: relative;
        display: block;
        width: 100%;
        max-width: none;
        min-height: 94px;
        margin: 0;
        padding: 0 12px;
        background: #000000;
        border: 0;
        box-sizing: border-box;
    }

    body.cnctasphr-public-brand-header
    .cnctasphr-login-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        width: max-content;
        max-width: calc(100% - 24px);
        min-height: 0;
        margin: 0;
        padding: 0;
        color: inherit;
        background: transparent;
        border: 0;
        border-radius: 0;
        outline: 0;
        box-shadow: none;
        text-align: left;
        text-decoration: none;
        transform: translate(-50%, -50%);
    }

    body.cnctasphr-public-brand-header
    .cnctasphr-header-logo-icon {
        display: block;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        margin: 0;
        padding: 0;
        object-fit: contain;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.cnctasphr-public-brand-header
    .cnctasphr-login-logo
    .logo-text {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        min-width: 0;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    body.cnctasphr-public-brand-header
    .cnctasphr-login-logo
    .logo-wordmark {
        display: block;
        margin: 0;
        color: #29a9eb;
        font-size: 1.65rem;
        font-weight: 500;
        line-height: 0.95;
        letter-spacing: -0.04em;
        white-space: nowrap;
    }

    body.cnctasphr-public-brand-header
    .cnctasphr-login-logo
    .logo-title {
        display: block;
        margin: 4px 0 0;
        color: #ffffff;
        font-size: 0.92rem;
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
    }

    body.cnctasphr-public-brand-header
    .cnctasphr-login-logo
    .logo-subtitle {
        display: block;
        margin: 3px 0 0;
        color: #9ca3af;
        font-size: 0.62rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.045em;
        text-transform: uppercase;
        white-space: nowrap;
    }
}

@media (max-width: 420px) {
    body.cnctasphr-public-brand-header
    .cnctasphr-login-logo {
        gap: 8px;
        max-width: calc(100% - 18px);
    }

    body.cnctasphr-public-brand-header
    .cnctasphr-header-logo-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    body.cnctasphr-public-brand-header
    .cnctasphr-login-logo
    .logo-wordmark {
        font-size: 1.48rem;
    }

    body.cnctasphr-public-brand-header
    .cnctasphr-login-logo
    .logo-title {
        font-size: 0.84rem;
    }

    body.cnctasphr-public-brand-header
    .cnctasphr-login-logo
    .logo-subtitle {
        font-size: 0.56rem;
    }
}