:root {
    --hub-public-background-image: url('../../images/hub/elgis-hub-public-background.webp');
    --hub-public-brand-ink: #ffffff;
    --hub-public-brand-muted: #d9f3ef;
    --hub-public-brand-border: rgba(255, 255, 255, 0.2);
    --hub-public-brand-glass: rgba(255, 255, 255, 0.11);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body.hub-public-body,
body.hub-auth-body,
body.hub-landing-body {
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

body.hub-public-body,
body.hub-auth-body,
body.hub-landing-body {
    font-family: "Segoe UI", "Open Sans", sans-serif;
    color: var(--hub-text);
    background: linear-gradient(145deg, var(--hub-bg-start) 0%, var(--hub-bg-end) 100%);
}

.hub-auth-page,
.hub-landing-page {
    position: relative;
    isolation: isolate;
}

.hub-auth-page::before,
.hub-landing-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(118deg, rgba(247, 249, 252, 0.98) 4%, rgba(238, 242, 247, 0.94) 48%, rgba(231, 245, 242, 0.78) 100%),
        var(--hub-public-background-image) center / cover no-repeat;
}

.hub-auth-page::after,
.hub-landing-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 4%, rgba(var(--hub-accent-rgb), 0.13), transparent 30%),
        radial-gradient(circle at 92% 94%, rgba(255, 255, 255, 0.74), transparent 32%);
}

.hub-auth-page > *,
.hub-landing-page > * {
    position: relative;
    z-index: 1;
}

.hub-public-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.hub-public-brand:hover,
.hub-public-brand:focus {
    color: inherit;
    text-decoration: none;
}

.hub-public-brand-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: block;
    object-fit: contain;
}

.hub-public-brand-copy {
    min-width: 0;
}

.hub-public-brand-label {
    margin: 0;
    color: var(--hub-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hub-public-brand-title {
    margin: 0.28rem 0 0;
    color: var(--hub-text-primary);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
}

@media (max-width: 720px) {
    .hub-public-brand {
        gap: 0.68rem;
    }

    .hub-public-brand-logo {
        width: 42px;
        height: 42px;
    }

    .hub-public-brand-title {
        font-size: 1.22rem;
    }
}
