.hub-auth-page {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2.5rem);
    margin: 0;
    overflow: hidden;
}

.hub-auth-shell {
    width: min(1060px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    gap: 0;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: calc(var(--hub-radius-lg) + 8px);
    box-shadow:
        0 30px 72px rgba(15, 72, 68, 0.18),
        0 8px 24px rgba(31, 41, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    overflow: hidden;
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    backdrop-filter: blur(18px) saturate(125%);
}

.hub-auth-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hub-auth-brand {
    padding: clamp(2rem, 4vw, 3rem);
    background:
        linear-gradient(145deg, rgba(3, 48, 47, 0.94) 0%, rgba(6, 72, 69, 0.88) 48%, rgba(15, 118, 110, 0.72) 100%),
        var(--hub-public-background-image, url('../../images/hub/elgis-hub-public-background.webp')) 69% center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    position: relative;
    overflow: hidden;
}

.hub-auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 13% 10%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%);
}

.hub-auth-brand::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(217, 243, 239, 0.13);
    border-radius: var(--hub-radius-pill);
    pointer-events: none;
}

.hub-auth-brand > * {
    position: relative;
    z-index: 1;
}

.hub-auth-brand-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: fit-content;
}

.hub-auth-brand-home {
    margin: -0.45rem;
    padding: 0.45rem;
    border-radius: var(--hub-radius-md);
    color: var(--hub-public-brand-ink, #ffffff);
    text-decoration: none;
    transition: background-color .18s ease, box-shadow .18s ease;
}

.hub-auth-brand-home:hover,
.hub-auth-brand-home:focus {
    color: var(--hub-public-brand-ink, #ffffff);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.hub-auth-brand-home:focus-visible {
    box-shadow: 0 0 0 3px rgba(217, 243, 239, 0.34);
}

.hub-auth-logo {
    width: 60px;
    height: 60px;
    padding: 8px;
    border-radius: var(--hub-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(2, 44, 43, 0.2);
    object-fit: contain;
}

.hub-auth-brand-label {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(217, 243, 239, 0.76);
    font-weight: 700;
}

.hub-auth-brand-title {
    margin: 0.5rem 0 0 0;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--hub-public-brand-ink, #ffffff);
}

.hub-auth-brand-subtitle {
    margin: 0.9rem 0 0 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--hub-public-brand-muted, #d9f3ef);
    max-width: 34ch;
}

.hub-auth-brand-features {
    display: grid;
    gap: 0;
    margin-top: 1.3rem;
    border: 1px solid var(--hub-public-brand-border, rgba(255, 255, 255, 0.2));
    border-radius: var(--hub-radius-lg);
    overflow: hidden;
    background: var(--hub-public-brand-glass, rgba(255, 255, 255, 0.11));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 30px rgba(2, 44, 43, 0.12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hub-auth-brand-feature {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.95rem;
    align-items: center;
    padding: 1rem 1.15rem;
}

.hub-auth-brand-feature + .hub-auth-brand-feature {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hub-auth-brand-feature-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--hub-radius-pill);
    background: rgba(217, 243, 239, 0.14);
    color: #bdece4;
    border: 1px solid rgba(217, 243, 239, 0.16);
}

.hub-auth-brand-feature-icon i {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

.hub-auth-brand-feature-copy strong {
    display: block;
    margin: 0 0 0.2rem 0;
    color: var(--hub-public-brand-ink, #ffffff);
    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1.3;
}

.hub-auth-brand-feature-copy span {
    display: block;
    color: rgba(231, 247, 244, 0.76);
    font-size: 0.95rem;
    line-height: 1.55;
}

.hub-auth-brand-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: #d9f3ef;
    font-weight: 600;
    padding: 0.56rem 0.85rem;
    border: 1px solid rgba(217, 243, 239, 0.2);
    border-radius: var(--hub-radius-pill);
    background: rgba(255, 255, 255, 0.1);
    width: fit-content;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hub-auth-brand-meta-icon,
.hub-auth-foot-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.hub-auth-brand-meta-icon i,
.hub-auth-foot-link-icon i {
    display: block;
    font-size: 1.28rem;
    line-height: 1;
}

.hub-auth-card {
    min-width: 0;
    padding: clamp(1.9rem, 4vw, 2.75rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
}

.hub-auth-title {
    margin: 0;
    color: var(--hub-text-primary);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hub-auth-subtitle {
    margin: 0.5rem 0 1.5rem 0;
    color: var(--hub-muted);
    line-height: 1.5;
}

.hub-auth-alert {
    margin: 0 0 1rem 0;
    padding: 0.78rem 0.95rem;
    border-radius: var(--hub-radius-sm);
    border: 1px solid rgba(180, 35, 24, 0.22);
    background: var(--hub-alert-bg);
    color: var(--hub-alert-text);
    font-size: 0.92rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hub-auth-alert.fade {
    opacity: 0;
    transition: opacity .18s ease;
}

.hub-auth-alert.fade.in {
    opacity: 1;
}

.hub-auth-alert-line {
    margin: 0;
    line-height: 1.45;
}

.hub-auth-alert > * {
    margin: 0;
}

.hub-auth-alert p,
.hub-auth-alert ul,
.hub-auth-alert li {
    margin: 0;
    padding: 0;
}

.hub-auth-form .form-group {
    margin-bottom: 0.95rem;
}

.hub-auth-form label {
    display: block;
    margin-bottom: 0.42rem;
    font-size: 0.89rem;
    font-weight: 600;
    color: var(--hub-text-secondary);
}

.hub-auth-input-wrap {
    position: relative;
}

.hub-auth-input-icon {
    position: absolute;
    top: 50%;
    left: 0.88rem;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hub-muted);
    pointer-events: none;
    z-index: 1;
}

.hub-auth-input-icon i {
    display: block;
    font-size: 1rem;
    line-height: 0;
}

.hub-auth-form .form-control {
    width: 100%;
    height: 46px;
    padding: 0.58rem 0.86rem;
    font-size: 0.95rem;
}

.hub-auth-input-wrap .form-control {
    padding-left: 2.7rem;
}

.hub-auth-input-wrap .form-control[type="password"],
.hub-auth-input-wrap .form-control[type="text"] {
    padding-right: 2.8rem;
}

.hub-auth-input-toggle {
    position: absolute;
    top: 50%;
    right: 0.88rem;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hub-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

.hub-auth-input-toggle i {
    display: block;
    font-size: 1rem;
    line-height: 1;
}

.hub-auth-input-toggle:hover,
.hub-auth-input-toggle:focus {
    color: var(--hub-text-secondary);
    outline: none;
}

.hub-auth-submit {
    margin-top: 1.15rem;
    width: 100%;
    height: 46px;
    font-size: 0.97rem;
}

.hub-auth-foot {
    margin-top: 1.25rem;
    padding-top: 1.05rem;
    border-top: 1px solid var(--hub-border);
    text-align: center;
    font-size: 0.94rem;
}

.hub-auth-foot a {
    color: var(--hub-accent-hover);
    text-decoration: none;
    font-weight: 600;
}

.hub-auth-foot a:hover,
.hub-auth-foot a:focus {
    text-decoration: underline;
}

.hub-auth-alert.is-success {
    border-color: rgba(30, 77, 41, 0.25);
    background: var(--hub-bg-success-soft);
    color: var(--hub-success-text);
}

.hub-auth-alert.is-info {
    border-color: rgba(var(--hub-accent-rgb), 0.25);
    background: var(--hub-accent-soft);
    color: var(--hub-accent-hover);
}

.hub-auth-alert a {
    color: inherit;
    text-decoration: underline;
}

.hub-auth-inline-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.35rem;
}

.hub-auth-inline-link {
    color: var(--hub-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
}

.hub-auth-inline-link:hover,
.hub-auth-inline-link:focus {
    text-decoration: underline;
}

.hub-auth-foot-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hub-auth-foot-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
}

@media (max-width: 900px) {
    .hub-auth-page {
        align-items: flex-start;
        padding: 1.2rem;
    }

    .hub-auth-shell {
        grid-template-columns: minmax(0, 1fr);
        width: min(680px, 100%);
    }

    .hub-auth-brand {
        padding: 1.5rem;
        gap: 1rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
        background-position: 58% center;
    }

    .hub-auth-brand-title {
        margin-top: 0.35rem;
        font-size: 1.55rem;
    }

    .hub-auth-brand-subtitle {
        margin-top: 0.65rem;
        max-width: 50ch;
        font-size: 0.94rem;
    }

    .hub-auth-brand-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 1rem;
    }

    .hub-auth-brand-feature {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 0.6rem;
        padding: 0.72rem;
    }

    .hub-auth-brand-feature + .hub-auth-brand-feature {
        border-top: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.14);
    }

    .hub-auth-brand-feature-icon {
        width: 36px;
        height: 36px;
    }

    .hub-auth-brand-feature-icon i {
        font-size: 1.1rem;
    }

    .hub-auth-brand-feature-copy strong {
        margin: 0;
        font-size: 0.88rem;
    }

    .hub-auth-brand-feature-copy span {
        display: none;
    }

    .hub-auth-brand-meta {
        font-size: 0.86rem;
    }

    .hub-auth-card {
        padding: 2rem;
    }
}

@media (max-width: 560px) {
    .hub-auth-page {
        padding: 0.65rem;
    }

    .hub-auth-shell {
        border-radius: var(--hub-radius-lg);
    }

    .hub-auth-brand {
        display: flex;
        min-height: 94px;
        padding: 1rem 1.1rem;
        background-position: 68% center;
    }

    .hub-auth-brand-subtitle,
    .hub-auth-brand-features,
    .hub-auth-brand-meta {
        display: none;
    }

    .hub-auth-brand-top {
        gap: 0.7rem;
    }

    .hub-auth-logo {
        width: 48px;
        height: 48px;
        padding: 6px;
        border-radius: var(--hub-radius-md);
    }

    .hub-auth-brand-label {
        font-size: 0.68rem;
    }

    .hub-auth-brand-title {
        margin-top: 0.24rem;
        font-size: 1.32rem;
    }

    .hub-auth-card {
        padding: 1.35rem 1.1rem;
    }

    .hub-auth-title {
        font-size: 1.4rem;
    }

    .hub-auth-subtitle {
        margin-bottom: 1.2rem;
        font-size: 0.94rem;
    }

}
