@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --portal-bg: #05050a;
    --portal-surface: rgba(10, 12, 22, .9);
    --portal-surface-soft: rgba(12, 16, 29, .72);
    --portal-border: rgba(151, 82, 255, .28);
    --portal-purple: #a83cff;
    --portal-magenta: #ed3cff;
    --portal-cyan: #39d9ff;
    --portal-gold: #ffc857;
    --portal-text: #f7f4ff;
    --portal-muted: #a9adc0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--portal-bg) !important;
    color: var(--portal-text) !important;
    font-family: 'Inter', sans-serif !important;
}

#wrapper,
#content-wrapper,
#content {
    min-width: 0;
    width: 100%;
    background: transparent !important;
}

#wrapper {
    display: block !important;
}

.portal-header {
    position: sticky;
    top: 0;
    z-index: 1035;
    height: 76px;
    border-bottom: 1px solid rgba(125, 70, 255, .2);
    background: rgba(4, 5, 10, .91);
    backdrop-filter: blur(16px);
}

.portal-header-inner {
    width: min(1180px, calc(100% - 28px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.portal-brand {
    width: 64px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    color: #fff !important;
    text-decoration: none !important;
}

.portal-brand img {
    width: 160px;
    height: 160px;
    max-width: none;
    flex: 0 0 160px;
    object-fit: cover;
    object-position: center;
    transform: translateY(20px);
    filter: drop-shadow(0 0 14px rgba(168, 60, 255, .3));
}

.portal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-account,
.portal-menu-toggle {
    height: 44px;
    border: 1px solid rgba(132, 76, 255, .52) !important;
    background: rgba(15, 12, 28, .82) !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.portal-account:hover,
.portal-menu-toggle:hover {
    border-color: var(--portal-cyan) !important;
    background: rgba(34, 20, 58, .95) !important;
    transform: translateY(-1px);
}

.portal-account {
    max-width: 210px;
    gap: 9px;
    padding: 0 14px;
    border-radius: 6px !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .92rem;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-account img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
}

.portal-account i {
    color: var(--portal-purple);
}

.portal-menu-toggle {
    width: 46px;
    padding: 0;
    border-radius: 6px !important;
    font-size: 1.22rem;
}

.portal-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, .68);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.portal-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1045;
    width: min(360px, 92vw);
    height: 100vh;
    padding: 18px;
    overflow-y: auto;
    border-left: 1px solid rgba(115, 223, 255, .28);
    background: linear-gradient(180deg, #080a13, #080713 55%, #0e0716);
    box-shadow: -28px 0 80px rgba(0, 0, 0, .5);
    transform: translateX(100%);
    transition: transform .28s ease;
}

body.portal-menu-open {
    overflow: hidden;
}

body.portal-menu-open .portal-drawer-overlay {
    opacity: 1;
    visibility: visible;
}

body.portal-menu-open .portal-drawer {
    transform: translateX(0);
}

.portal-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.portal-drawer-head strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.35rem;
    text-transform: uppercase;
}

.portal-drawer-close {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 5px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.portal-search {
    display: flex;
    margin-bottom: 20px;
}

.portal-search input {
    min-width: 0;
    flex: 1;
    height: 43px;
    padding: 0 13px;
    border: 1px solid rgba(115, 223, 255, .25);
    border-right: 0;
    border-radius: 5px 0 0 5px;
    background: #090d18;
    color: #fff;
    outline: none;
}

.portal-search button {
    width: 46px;
    border: 1px solid rgba(115, 223, 255, .4);
    border-radius: 0 5px 5px 0;
    background: rgba(57, 217, 255, .13);
    color: var(--portal-cyan);
}

.portal-nav-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 18px 0 9px;
    color: var(--portal-gold);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.portal-nav-label:after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 200, 87, .5), transparent);
}

.portal-nav-list {
    display: grid;
    gap: 7px;
}

.portal-nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 11px;
    border: 1px solid rgba(128, 156, 210, .16);
    border-radius: 6px;
    background: rgba(11, 18, 34, .72);
    color: #eef3ff !important;
    text-decoration: none !important;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.portal-nav-link:hover {
    border-color: rgba(57, 217, 255, .48);
    background: rgba(14, 27, 47, .92);
    transform: translateX(-3px);
}

.portal-nav-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: rgba(168, 60, 255, .14);
    color: var(--portal-purple);
}

.portal-nav-link:nth-child(3n + 2) .portal-nav-icon {
    background: rgba(57, 217, 255, .12);
    color: var(--portal-cyan);
}

.portal-nav-link:nth-child(3n) .portal-nav-icon {
    background: rgba(255, 200, 87, .12);
    color: var(--portal-gold);
}

.portal-nav-copy {
    min-width: 0;
    flex: 1;
}

.portal-nav-copy strong,
.portal-nav-copy small {
    display: block;
}

.portal-nav-copy strong {
    font-size: .88rem;
}

.portal-nav-copy small {
    margin-top: 2px;
    color: #8993aa;
    font-size: .7rem;
}

.portal-nav-link > .fa-chevron-right {
    color: #78839b;
    font-size: .7rem;
}

.portal-user-summary {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 11px;
    align-items: center;
    margin: 14px 0 4px;
    padding: 12px;
    border: 1px solid var(--portal-border);
    border-radius: 6px;
    background: rgba(168, 60, 255, .07);
}

.portal-user-summary img {
    width: 48px;
    height: 48px;
    border-radius: 5px;
    object-fit: cover;
    object-position: top center;
}

.portal-user-summary strong,
.portal-user-summary small {
    display: block;
}

.portal-user-summary small {
    margin-top: 3px;
    color: var(--portal-muted);
}

.portal-home {
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 22%, rgba(168, 60, 255, .1), transparent 26%),
        radial-gradient(circle at 88% 72%, rgba(57, 217, 255, .08), transparent 26%),
        #05050a;
}

.portal-home-container {
    width: min(1160px, calc(100% - 28px));
    margin: 0 auto;
}

.portal-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(3, 3, 8, .96) 0%, rgba(6, 5, 13, .72) 48%, rgba(4, 4, 9, .86) 100%),
        linear-gradient(0deg, #05050a 0%, transparent 24%),
        url('../img/background2.png') center / cover no-repeat;
}

.portal-hero:after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(168, 60, 255, .12), transparent 42%, rgba(57, 217, 255, .08));
}

.portal-hero-content {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    padding: 78px 0 150px;
}

.portal-hero-logo {
    width: min(470px, 86vw);
    max-height: 145px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 18px;
    filter: drop-shadow(0 0 24px rgba(168, 60, 255, .25));
}

.portal-eyebrow {
    margin-bottom: 12px;
    color: var(--portal-cyan);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.portal-hero h1,
.portal-section-title {
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .7) !important;
}

.portal-hero h1 {
    max-width: 650px;
    margin: 0 0 14px;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: .87;
}

.portal-gradient-text {
    color: var(--portal-purple);
    background: linear-gradient(90deg, var(--portal-purple), var(--portal-magenta), var(--portal-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portal-hero-copy {
    max-width: 590px;
    margin: 0 0 24px;
    color: #c4c5d1;
    font-size: .98rem;
    line-height: 1.75;
}

.portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.portal-action {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 0 19px;
    border: 1px solid rgba(168, 60, 255, .56) !important;
    border-radius: 6px !important;
    background: rgba(12, 9, 23, .74) !important;
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-decoration: none !important;
    text-transform: uppercase;
}

.portal-action-primary {
    border-color: transparent !important;
    background: linear-gradient(120deg, #7f2cff, #d43aff) !important;
    box-shadow: 0 12px 28px rgba(168, 60, 255, .25);
}

.portal-action i:last-child {
    margin-left: 8px;
    opacity: .72;
}

.portal-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: -94px;
    padding-bottom: 72px;
}

.portal-stat {
    min-height: 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 1px solid rgba(143, 98, 220, .26);
    border-radius: 7px;
    background: rgba(7, 8, 15, .9);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .36);
    text-align: center;
}

.portal-stat i {
    margin-bottom: 14px;
    color: var(--portal-purple);
    font-size: 2.15rem;
    filter: drop-shadow(0 0 12px rgba(168, 60, 255, .45));
}

.portal-stat strong,
.portal-stat small {
    display: block;
}

.portal-stat strong {
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
}

.portal-stat small {
    margin-top: 4px;
    color: #7e8292;
    font-size: .64rem;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.portal-section {
    padding: 76px 0;
}

.portal-section-dark {
    background: rgba(0, 0, 0, .2);
}

.portal-section-head {
    margin: 0 auto 34px;
    text-align: center;
}

.portal-section-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--portal-gold);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.portal-section-title {
    margin: 0;
    font-size: clamp(2.35rem, 6vw, 4.7rem);
    line-height: .92;
}

.portal-section-subtitle {
    max-width: 650px;
    margin: 14px auto 0;
    color: var(--portal-muted);
    line-height: 1.7;
}

.portal-feature-grid,
.portal-community-grid,
.portal-member-grid {
    display: grid;
    gap: 14px;
}

.portal-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-feature,
.portal-community,
.portal-member-panel,
.portal-alert {
    border: 1px solid rgba(125, 157, 213, .18) !important;
    border-radius: 7px !important;
    background: rgba(8, 12, 22, .78) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .28) !important;
    overflow: hidden;
}

.portal-feature {
    position: relative;
    min-height: 330px;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    background-position: center !important;
    background-size: cover !important;
}

.portal-feature:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 6, 11, .98), rgba(5, 6, 11, .1) 72%);
}

.portal-feature-content {
    position: relative;
    z-index: 1;
}

.portal-feature-number {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 1px solid var(--portal-gold);
    border-radius: 6px;
    color: var(--portal-gold);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
}

.portal-feature h3,
.portal-community h3,
.portal-member-panel h3 {
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
}

.portal-feature h3 {
    margin-bottom: 5px;
    font-size: 1.35rem;
}

.portal-feature p {
    margin: 0;
    color: #b4b8c7;
    font-size: .82rem;
}

.portal-community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-community {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.portal-community-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 1px solid rgba(57, 217, 255, .42);
    border-radius: 50%;
    color: var(--portal-cyan);
    font-size: 1.8rem;
    box-shadow: 0 0 24px rgba(57, 217, 255, .12);
}

.portal-community p {
    max-width: 430px;
    color: var(--portal-muted);
}

.portal-community .portal-action {
    margin-top: 9px;
}

.portal-video-carousel {
    width: min(100%, 980px);
    margin: 0 auto;
}

.portal-video-stage {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(137, 82, 255, .35);
    border-radius: 8px;
    background: #030407;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .48);
    isolation: isolate;
}

.portal-video-stage:before {
    content: '';
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--portal-cyan), var(--portal-purple), var(--portal-gold));
    pointer-events: none;
}

.portal-video-track {
    display: flex;
    transform: translate3d(0, 0, 0);
    transition: transform .62s cubic-bezier(.22, .78, .22, 1);
    will-change: transform;
}

.portal-video-slide {
    min-width: 0;
    flex: 0 0 100%;
}

.portal-video-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #030407;
}

.portal-video-media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.portal-video-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(4, 7, 13, .86);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .34);
    transform: translateY(-50%);
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.portal-video-control:hover,
.portal-video-control:focus-visible {
    border-color: var(--portal-cyan);
    background: rgba(5, 13, 24, .96);
    color: var(--portal-cyan);
    outline: none;
}

.portal-video-prev {
    left: 16px;
}

.portal-video-next {
    right: 16px;
}

.portal-video-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 2px 0;
}

.portal-video-caption {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 17px;
}

.portal-video-count {
    flex: 0 0 auto;
    color: #697189;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .82rem;
    font-weight: 800;
}

.portal-video-count b {
    color: var(--portal-cyan);
    font-size: 1.65rem;
}

.portal-video-label {
    display: block;
    margin-bottom: 2px;
    color: var(--portal-gold);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.portal-video-caption h3 {
    margin: 0;
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0 !important;
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.portal-video-dots {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-video-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #555e73;
    transition: width .25s ease, border-radius .25s ease, background-color .25s ease;
}

.portal-video-dots button.is-active {
    width: 30px;
    border-radius: 5px;
    background: var(--portal-cyan);
}

.portal-member-grid {
    grid-template-columns: 1.2fr .8fr;
    margin-top: -44px;
    padding-bottom: 42px;
}

.portal-member-panel {
    padding: 19px;
}

.portal-member-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.portal-member-profile img {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
    object-position: top center;
}

.portal-member-profile h3 {
    margin: 0 0 4px;
    font-size: 1.55rem;
}

.portal-member-profile p {
    margin: 0;
    color: var(--portal-muted);
}

.portal-wallets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.portal-wallet {
    padding: 11px;
    border-left: 2px solid var(--portal-purple);
    background: rgba(168, 60, 255, .07);
}

.portal-wallet:nth-child(2) {
    border-color: var(--portal-cyan);
}

.portal-wallet:nth-child(3) {
    border-color: var(--portal-gold);
}

.portal-wallet small,
.portal-wallet strong {
    display: block;
}

.portal-wallet small {
    color: #81889c;
    font-size: .65rem;
    text-transform: uppercase;
}

.portal-wallet strong {
    margin-top: 3px;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
}

.portal-alerts {
    display: grid;
    gap: 10px;
    padding-bottom: 26px;
}

.portal-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
}

.portal-alert > i {
    margin-top: 3px;
    color: var(--portal-gold);
    font-size: 1.35rem;
}

.portal-alert h3 {
    margin: 0 0 4px;
    color: #fff !important;
    font-size: 1rem;
}

.portal-alert p {
    margin: 0;
    color: var(--portal-muted);
    font-size: .82rem;
}

@media (max-width: 900px) {
    .portal-hero {
        min-height: 590px;
    }

    .portal-feature-grid {
        grid-template-columns: 1fr;
    }

    .portal-feature {
        min-height: 280px;
    }

    .portal-member-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .portal-header {
        height: 66px;
    }

    .portal-header-inner,
    .portal-home-container {
        width: min(100% - 20px, 1160px);
    }

    .portal-brand img {
        width: 150px;
        height: 150px;
        flex-basis: 150px;
        transform: translateY(18px);
    }

    .portal-account {
        max-width: 138px;
        height: 40px;
        padding: 0 10px;
        font-size: .78rem;
    }

    .portal-account img {
        width: 24px;
        height: 24px;
    }

    .portal-menu-toggle {
        width: 42px;
        height: 40px;
    }

    .portal-hero {
        min-height: 620px;
        align-items: flex-end;
        background-position: 64% center;
    }

    .portal-hero-content {
        padding: 82px 0 142px;
        text-align: center;
    }

    .portal-hero-logo {
        width: min(240px, 72vw);
        height: 110px;
        object-position: center;
        margin: 0 auto 14px;
    }

    .portal-hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.2rem);
    }

    .portal-hero-copy {
        font-size: .88rem;
        line-height: 1.65;
    }

    .portal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .portal-action {
        min-width: 0;
        justify-content: center;
        padding: 0 12px;
        font-size: .78rem;
    }

    .portal-stats {
        gap: 6px;
        margin-top: -108px;
        padding-bottom: 55px;
    }

    .portal-stat {
        min-height: 142px;
        padding: 10px 5px;
    }

    .portal-stat i {
        margin-bottom: 10px;
        font-size: 1.7rem;
    }

    .portal-stat strong {
        font-size: 1.3rem;
    }

    .portal-stat small {
        font-size: .53rem;
        letter-spacing: .05em;
    }

    .portal-section {
        padding: 58px 0;
    }

    .portal-section-head {
        margin-bottom: 25px;
    }

    .portal-section-title {
        font-size: clamp(2.3rem, 12vw, 3.5rem);
    }

    .portal-community-grid {
        grid-template-columns: 1fr;
    }

    .portal-video-control {
        width: 38px;
        height: 38px;
    }

    .portal-video-prev {
        left: 9px;
    }

    .portal-video-next {
        right: 9px;
    }

    .portal-video-toolbar {
        gap: 12px;
        padding-top: 14px;
    }

    .portal-video-caption {
        gap: 10px;
    }

    .portal-video-count b {
        font-size: 1.35rem;
    }

    .portal-video-caption h3 {
        font-size: 1.05rem;
    }

    .portal-community {
        min-height: 210px;
        padding: 24px 18px;
    }

    .portal-member-grid {
        margin-top: -26px;
    }

    .portal-wallets {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-video-track {
        transition-duration: .01ms;
    }
}

@media (max-width: 390px) {
    .portal-account span {
        max-width: 82px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .portal-actions {
        grid-template-columns: 1fr;
    }
}

.portal-auth-page {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(90deg, rgba(4, 5, 11, .98), rgba(4, 5, 11, .66) 56%, rgba(4, 5, 11, .9)),
        url('../img/background.png') center / cover fixed no-repeat !important;
}

.portal-auth-page *,
.portal-auth-page *:before,
.portal-auth-page *:after {
    box-sizing: border-box;
}

.portal-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 480px);
    gap: 64px;
    align-items: center;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 44px 0;
}

.portal-auth-intro {
    max-width: 610px;
}

.portal-auth-logo {
    width: min(430px, 82vw);
    max-height: 150px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 18px;
}

.portal-auth-intro h1 {
    margin: 0 0 15px;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(3.2rem, 7vw, 6rem);
    font-weight: 900;
    line-height: .88;
    letter-spacing: 0;
    text-transform: uppercase;
}

.portal-auth-intro p {
    max-width: 520px;
    color: #b7bbc9;
    line-height: 1.75;
}

.portal-auth-card {
    padding: 30px;
    border: 1px solid rgba(137, 82, 255, .35);
    border-radius: 8px;
    background: rgba(7, 9, 17, .9);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .5);
    backdrop-filter: blur(14px);
}

.portal-auth-card-head {
    margin-bottom: 23px;
}

.portal-auth-card-head h2 {
    margin: 0 0 6px;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.portal-auth-card-head p {
    margin: 0;
    color: var(--portal-muted);
    font-size: .84rem;
}

.portal-auth-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -7px 0 18px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 91, 117, .34);
    border-radius: 6px;
    background: rgba(112, 20, 39, .22);
    color: #ffd6dd;
    font-size: .8rem;
    line-height: 1.5;
}

.portal-auth-error i {
    margin-top: 3px;
    color: #ff6d86;
}

.portal-auth-field {
    margin-bottom: 14px;
}

.portal-auth-field label {
    display: block;
    margin-bottom: 7px;
    color: #dfe3ef;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.portal-auth-input {
    position: relative;
}

.portal-auth-input > i {
    position: absolute;
    top: 50%;
    left: 15px;
    color: var(--portal-purple);
    transform: translateY(-50%);
}

.portal-auth-input input {
    width: 100%;
    height: 50px;
    padding: 0 45px;
    border: 1px solid rgba(132, 156, 201, .22);
    border-radius: 6px;
    background: rgba(8, 13, 24, .95);
    color: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.portal-auth-input input:focus {
    border-color: rgba(57, 217, 255, .58);
    box-shadow: 0 0 0 3px rgba(57, 217, 255, .08);
}

.portal-password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #838ba0;
    transform: translateY(-50%);
}

.portal-auth-submit {
    width: 100%;
    height: 50px;
    margin-top: 7px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(120deg, #7f2cff, #d43aff);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(168, 60, 255, .24);
}

.portal-auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    font-size: .78rem;
}

.portal-auth-links a {
    color: #bfc5d5;
}

.portal-auth-links a:hover {
    color: var(--portal-cyan);
}

.portal-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: #c9cedd;
    font-size: .8rem;
    text-decoration: none;
}

@media (max-width: 850px) {
    .portal-auth-shell {
        grid-template-columns: 1fr;
        gap: 24px;
        align-content: center;
        padding: 28px 0;
    }

    .portal-auth-intro {
        text-align: center;
    }

    .portal-auth-logo {
        height: 92px;
        margin: 0 auto 10px;
        object-position: center;
    }

    .portal-auth-intro h1 {
        font-size: clamp(2.6rem, 13vw, 4rem);
    }

    .portal-auth-intro p {
        display: none;
    }

    .portal-auth-card {
        width: min(100%, 470px);
        margin: 0 auto;
        padding: 23px 18px;
    }
}
