:root {
    --brand: #087d70;
    --brand2: #0d9488;
    --brand3: #55b6ac;
    --deep: #123f3a;
    --ink: #18322f;
    --muted: #667a77;
    --soft: #eff9f7;
    --gold: #d8aa45
}

* {
    box-sizing: border-box
}

html,
body {
    font-family: 'Sarabun', sans-serif !important
}

.portal-login-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #eef7f6;
    color: var(--ink);
    overflow-x: hidden
}

.portal-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #eaf7f5 0%, #f8fbfb 43%, #e7f4f2 100%);
    z-index: 0
}

.portal-bg:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, .23), rgba(255, 255, 255, .58));
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px)
}

.portal-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: .52
}

.orb-a {
    width: 44vw;
    height: 44vw;
    max-width: 680px;
    max-height: 680px;
    left: -11vw;
    top: -15vw;
    background: radial-gradient(circle, rgba(13, 148, 136, .44), rgba(13, 148, 136, 0) 70%)
}

.orb-b {
    width: 38vw;
    height: 38vw;
    right: -9vw;
    bottom: -12vw;
    background: radial-gradient(circle, rgba(8, 125, 112, .33), rgba(8, 125, 112, 0) 70%)
}

.orb-c {
    width: 26vw;
    height: 26vw;
    right: 28%;
    top: 18%;
    background: radial-gradient(circle, rgba(216, 170, 69, .15), rgba(216, 170, 69, 0) 70%)
}

.service-ghost {
    position: absolute;
    z-index: 0;
    display: grid;
    place-items: center;
    width: 105px;
    height: 105px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .48);
    border: 1px solid rgba(8, 125, 112, .12);
    box-shadow: 0 24px 70px rgba(19, 79, 72, .10);
    font-weight: 800;
    letter-spacing: .06em;
    color: rgba(8, 125, 112, .23);
    backdrop-filter: blur(12px);
    transform: rotate(-7deg)
}

.ghost-1 {
    left: 7%;
    top: 12%
}

.ghost-2 {
    left: 15%;
    bottom: 12%;
    transform: rotate(8deg)
}

.ghost-3 {
    right: 8%;
    top: 11%;
    transform: rotate(6deg)
}

.ghost-4 {
    right: 13%;
    bottom: 13%;
    transform: rotate(-9deg)
}

.ghost-5 {
    right: 33%;
    top: 7%;
    width: 80px;
    height: 80px;
    border-radius: 24px
}

.network-line {
    position: absolute;
    height: 1px;
    width: 42vw;
    background: linear-gradient(90deg, transparent, rgba(8, 125, 112, .20), transparent);
    transform-origin: left center
}

.line-a {
    left: 4%;
    top: 44%;
    transform: rotate(21deg)
}

.line-b {
    right: 4%;
    bottom: 36%;
    transform: rotate(-20deg)
}

.login-stage {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left))
}

.login-shell {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    align-items: center;
    gap: 54px
}

.brand-side {
    padding: 28px;
    color: var(--deep)
}

.brand-kicker {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(8, 125, 112, .13);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .15em;
    color: var(--brand);
    box-shadow: 0 8px 30px rgba(19, 79, 72, .07)
}

.brand-side h1 {
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.06;
    letter-spacing: -.035em;
    margin: 20px 0 16px;
    font-weight: 800
}

.brand-side p {
    max-width: 600px;
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.8;
    color: #55716d
}

.brand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 25px
}

.brand-pills span {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .55);
    font-size: 12px;
    font-weight: 700;
    color: #52716c;
    border: 1px solid rgba(8, 125, 112, .10)
}

.login-card {
    width: 100%;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 32px 90px rgba(24, 75, 69, .18), inset 0 1px 0 #fff;
    backdrop-filter: blur(28px) saturate(1.25);
    -webkit-backdrop-filter: blur(28px) saturate(1.25)
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    margin-bottom: 12px
}

.logo-box img {
    display: block;
    max-width: 190px;
    max-height: 86px;
    width: auto;
    height: auto;
    object-fit: contain
}

.login-title {
    text-align: center;
    margin-bottom: 26px
}

.login-title h2 {
    font-size: 27px;
    line-height: 1.25;
    margin: 0;
    color: #123f3a;
    font-weight: 800
}

.login-title p {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--muted)
}

.alert {
    border-radius: 14px;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 15px;
    border: 1px solid
}

.alert.danger {
    background: #fff2f2;
    color: #a63939;
    border-color: #f3cece
}

.alert.info {
    background: #eef8ff;
    color: #356a86;
    border-color: #d7eaf7
}

.alert.warning {
    background: #fff9e9;
    color: #855f13;
    border-color: #f1dfae
}

.login-form {
    display: grid;
    gap: 17px
}

.login-form label {
    font-size: 13px;
    font-weight: 700;
    color: #355651
}

.input-wrap {
    position: relative;
    margin-top: 7px
}

.input-wrap input {
    width: 100%;
    height: 52px;
    border: 1.5px solid #d7e5e2;
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    padding: 0 58px 0 44px;
    font: 500 15px 'Sarabun', sans-serif;
    color: #173e38;
    outline: none;
    transition: .2s
}

.input-wrap input::placeholder {
    color: #9aa9a7
}

.input-wrap input:focus {
    border-color: var(--brand2);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, .10);
    background: #fff
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 800;
    color: var(--brand2)
}

.eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: #eef7f5;
    color: var(--brand);
    border-radius: 9px;
    padding: 6px 9px;
    font: 700 11px 'Sarabun';
    cursor: pointer
}

.login-btn {
    height: 53px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff;
    font: 700 15px 'Sarabun';
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 13px 28px rgba(8, 125, 112, .22);
    transition: .2s
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(8, 125, 112, .28)
}

.login-btn:disabled {
    opacity: .75;
    cursor: wait;
    transform: none
}

.login-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 13px;
    color: #9aa9a7;
    font-size: 11px
}

.login-separator:before,
.login-separator:after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e1eae8
}

.line-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px dashed #c8dad6;
    background: rgba(248, 252, 251, .8);
    font: 600 13px 'Sarabun';
    color: #71847f
}

.line-btn span {
    display: inline-flex;
    background: #e7f8ed;
    color: #168a45;
    border-radius: 8px;
    padding: 4px 7px;
    margin-right: 7px;
    font-weight: 800
}

.line-btn small {
    margin-left: 6px;
    font-size: 10px;
    color: #96a5a2
}

.password-note {
    font-size: 12px;
    line-height: 1.65;
    padding: 11px 12px;
    border-radius: 12px;
    background: var(--soft);
    color: #55726e;
    border: 1px solid #dcecea
}

.login-foot {
    text-align: center;
    margin-top: 22px;
    font-size: 10.5px;
    color: #9aa9a7;
    letter-spacing: .03em
}

.login-foot span {
    margin: 0 5px
}

.portal-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f4faf9, #f8fbfb);
    font-family: 'Sarabun', sans-serif
}

.portal-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid #e1ecea
}

.portal-logo {
    height: 46px;
    width: auto;
    max-width: 130px;
    object-fit: contain
}

@media(max-width:900px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 520px;
        gap: 18px
    }

    .brand-side {
        text-align: center;
        padding: 10px 12px
    }

    .brand-side h1 {
        font-size: clamp(30px, 8vw, 45px);
        margin-top: 14px
    }

    .brand-side p {
        font-size: 15px;
        line-height: 1.65
    }

    .brand-pills {
        justify-content: center
    }

    .service-ghost {
        opacity: .65
    }

    .ghost-5 {
        display: none
    }
}

@media(max-width:520px) {
    .login-stage {
        align-items: flex-start;
        padding-top: max(14px, env(safe-area-inset-top))
    }

    .login-shell {
        gap: 8px
    }

    .brand-side {
        padding: 5px 8px
    }

    .brand-kicker {
        font-size: 10px;
        padding: 6px 10px
    }

    .brand-side h1 {
        font-size: 27px;
        margin: 10px 0 8px
    }

    .brand-side p {
        font-size: 13px;
        line-height: 1.55
    }

    .brand-pills {
        display: none
    }

    .login-card {
        padding: 24px 18px 20px;
        border-radius: 23px
    }

    .logo-box {
        min-height: 70px
    }

    .logo-box img {
        max-width: 155px;
        max-height: 68px
    }

    .login-title {
        margin-bottom: 20px
    }

    .login-title h2 {
        font-size: 23px
    }

    .input-wrap input {
        height: 49px;
        font-size: 16px
    }

    .login-btn {
        height: 50px
    }

    .login-foot {
        margin-top: 18px
    }

    .service-ghost {
        width: 76px;
        height: 76px;
        border-radius: 22px;
        font-size: 12px
    }
}

@media(max-height:720px) and (min-width:901px) {
    .login-stage {
        padding-top: 16px;
        padding-bottom: 16px
    }

    .login-card {
        padding: 25px 30px
    }

    .logo-box {
        min-height: 65px
    }

    .logo-box img {
        max-height: 62px
    }

    .login-title {
        margin-bottom: 17px
    }

    .login-form {
        gap: 12px
    }

    .input-wrap input {
        height: 47px
    }

    .login-btn {
        height: 48px
    }

    .brand-side h1 {
        font-size: 45px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important
    }
}

/* ===== DARK GLASS DASHBOARD - based on user supplied index (3).html ===== */
.portal-dark-ui {
    --navy-deep: #102b3a;
    --navy: #16394b;
    --glass-fill: rgba(255, 255, 255, .10);
    --glass-fill-strong: rgba(255, 255, 255, .18);
    --glass-border: rgba(255, 255, 255, .24);
    --ice: #dff4ff;
    --accent-a: #71ddff;
    --accent-b: #95c7ff;
    --text-hi: #ffffff;
    --text-lo: rgba(245, 250, 255, .82);
    margin: 0;
    min-height: 100dvh;
    background: var(--navy);
    color: var(--text-hi);
    font-family: 'Kanit', 'Prompt', sans-serif !important;
    overflow-x: hidden
}

.portal-bg-slideshow {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #17384a
}

.portal-bg-slideshow:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at 18% 18%, rgba(96, 209, 255, .12), transparent 28%), radial-gradient(circle at 82% 16%, rgba(126, 178, 255, .10), transparent 26%), radial-gradient(circle at 72% 86%, rgba(90, 209, 255, .08), transparent 28%);
    pointer-events: none
}

.portal-bg-slideshow:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(10, 32, 46, .20) 0%, rgba(17, 53, 66, .13) 45%, rgba(8, 25, 38, .28) 100%);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    pointer-events: none
}

.portal-bg-slideshow .slide {
    position: absolute;
    inset: -7%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: portalKenBurns 20s ease-in-out infinite;
    filter: blur(1.8px) brightness(1.06) saturate(1.06);
    will-change: transform, opacity
}

.portal-bg-slideshow .slide-1 {
    background-image: url('https://images.unsplash.com/photo-1512678080530-7760d81faba6?w=1800&auto=format&fit=crop&q=82');
    animation-delay: 0s
}

.portal-bg-slideshow .slide-2 {
    background-image: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?w=1800&auto=format&fit=crop&q=82');
    animation-delay: 5s
}

.portal-bg-slideshow .slide-3 {
    background-image: url('https://images.unsplash.com/photo-1586773860418-d37222d8fce3?w=1800&auto=format&fit=crop&q=82');
    animation-delay: 10s
}

.portal-bg-slideshow .slide-4 {
    background-image: url('https://images.unsplash.com/photo-1516841273335-e39b37888115?w=1800&auto=format&fit=crop&q=82');
    animation-delay: 15s
}

@keyframes portalKenBurns {
    0% {
        opacity: 0;
        transform: scale(1.03) translate3d(0, 0, 0)
    }

    2% {
        opacity: 1;
        transform: scale(1.04) translate3d(0, 0, 0)
    }

    20% {
        opacity: 1;
        transform: scale(1.12) translate3d(-1%, -.5%, 0)
    }

    24% {
        opacity: 0;
        transform: scale(1.08) translate3d(.5%, 0, 0)
    }

    100% {
        opacity: 0;
        transform: scale(1.03) translate3d(0, 0, 0)
    }
}

.portal-aurora {
    position: fixed;
    inset: -10%;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(38% 30% at 18% 20%, rgba(90, 209, 255, .20), transparent 70%), radial-gradient(32% 26% at 85% 15%, rgba(127, 178, 255, .16), transparent 70%), radial-gradient(40% 34% at 75% 90%, rgba(90, 209, 255, .12), transparent 70%);
    animation: portalAurora 22s ease-in-out infinite alternate
}

@keyframes portalAurora {
    0% {
        transform: translate3d(0, 0, 0) rotate(0)
    }

    100% {
        transform: translate3d(-2%, 2%, 0) rotate(3deg)
    }
}

.portal-dark-stage {
    position: relative;
    z-index: 3;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 3vw, 30px)
}

.portal-dark-dashboard {
    position: relative;
    width: min(1240px, 100%);
    padding: clamp(20px, 3vw, 34px);
    border-radius: clamp(26px, 4vw, 48px);
    background: linear-gradient(180deg, rgba(41, 72, 92, .74), rgba(19, 48, 68, .72));
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .46), 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 1px 0 rgba(255, 255, 255, .35) inset;
    backdrop-filter: blur(36px) saturate(140%);
    -webkit-backdrop-filter: blur(36px) saturate(140%)
}

.portal-dark-dashboard:before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .66), transparent)
}

.portal-dark-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px
}

.portal-dark-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0
}

.portal-dark-logo-box {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 16px;
    padding: 7px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 22px -6px rgba(90, 209, 255, .36), 0 0 0 1px rgba(255, 255, 255, .25) inset
}

.portal-dark-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.portal-dark-title-wrap h1 {
    font-size: clamp(22px, 2.8vw, 30px);
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-hi);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .25)
}

.portal-dark-title-wrap span {
    display: block;
    margin-top: 4px;
    font-size: clamp(12px, 1.4vw, 14px);
    color: var(--text-lo)
}

.portal-dark-user-area {
    display: flex;
    align-items: center;
    gap: 10px
}

.portal-dark-user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12)
}

.portal-dark-user-chip .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5ad1ff;
    box-shadow: 0 0 9px 2px rgba(90, 209, 255, .75);
    flex: 0 0 auto
}

.portal-dark-user-chip strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2
}

.portal-dark-user-chip small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: rgba(235, 244, 255, .62);
    line-height: 1.2
}

.portal-dark-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .24);
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .09));
    color: #f7fbff;
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(5, 26, 38, .14), inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: .2s
}

.portal-logout-icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease
}

.portal-dark-logout:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .14));
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(5, 26, 38, .18), inset 0 1px 0 rgba(255, 255, 255, .24)
}

.portal-dark-logout:hover .portal-logout-icon {
    transform: translateX(2px)
}

.portal-dark-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
    padding: 19px 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(80, 191, 235, .16), rgba(255, 255, 255, .06));
    border: 1px solid rgba(255, 255, 255, .11);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .10) inset, 0 8px 22px rgba(0, 0, 0, .08)
}

.welcome-kicker {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(90, 209, 255, .14);
    border: 1px solid rgba(90, 209, 255, .18);
    font-size: 11.5px;
    font-weight: 600;
    color: #dff7ff
}

.welcome-copy h2 {
    margin: 7px 0 3px;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .26)
}

.welcome-copy p {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(241, 248, 255, .78)
}

.welcome-status {
    min-width: 170px;
    text-align: right
}

.welcome-status span {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #fff
}

.welcome-status small {
    font-size: 11.5px;
    color: rgba(236, 246, 255, .62)
}

.portal-dark-warning {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 210, 103, .28);
    background: rgba(255, 185, 55, .10);
    color: #ffe8af;
    font-size: 12.5px
}

.portal-dark-empty {
    padding: 40px 20px;
    text-align: center;
    border-radius: 22px;
    border: 1px dashed rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05)
}

.portal-dark-empty h3 {
    font-size: 18px;
    font-weight: 700
}

.portal-dark-empty p {
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-lo)
}

.portal-dark-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 20px)
}

.portal-dark-card {
    position: relative;
    display: flex;
    min-height: 172px;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(18px, 2.3vw, 24px);
    overflow: hidden;
    border-radius: 22px;
    background: var(--glass-fill);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12), 0 1px 0 rgba(255, 255, 255, .08) inset;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform .28s cubic-bezier(.2, 0, 0, 1), background .28s ease, box-shadow .28s ease, border-color .28s ease
}

.portal-dark-card:after {
    content: "";
    position: absolute;
    top: -60%;
    left: -30%;
    width: 60%;
    height: 220%;
    background: linear-gradient(115deg, rgba(255, 255, 255, .16), transparent 60%);
    transform: rotate(12deg);
    pointer-events: none;
    opacity: .6
}

.portal-dark-card:hover {
    transform: translateY(-6px);
    background: var(--glass-fill-strong);
    box-shadow: 0 20px 38px -14px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .30) inset;
    border-color: rgba(255, 255, 255, .30)
}

.portal-dark-card.is-disabled {
    cursor: default;
    opacity: .54;
    filter: saturate(.65)
}

.portal-dark-card.is-disabled:hover {
    transform: none;
    background: var(--glass-fill);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12), 0 1px 0 rgba(255, 255, 255, .08) inset;
    border-color: rgba(255, 255, 255, .10)
}

.portal-dark-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .14) inset
}

.portal-dark-icon svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round
}

.theme-it .portal-dark-icon {
    background: linear-gradient(135deg, #1e4a8a, #4d8fd6)
}

.theme-ma .portal-dark-icon {
    background: linear-gradient(135deg, #0f6b5e, #21c191)
}

.theme-vms .portal-dark-icon {
    background: linear-gradient(135deg, #b06318, #eda13f)
}

.theme-mrs .portal-dark-icon {
    background: linear-gradient(135deg, #7b4a8e, #c98af0)
}

.theme-mrt .portal-dark-icon {
    background: linear-gradient(135deg, #0f6b55, #3bbf8f)
}

.theme-doc .portal-dark-icon {
    background: linear-gradient(135deg, #4a3b8e, #8f7fea)
}

.theme-rms .portal-dark-icon {
    background: linear-gradient(135deg, #b13e3e, #f0797a)
}

.theme-haic .portal-dark-icon {
    background: linear-gradient(135deg, #257d7d, #5fd6d6)
}

.theme-mail .portal-dark-icon {
    background: linear-gradient(135deg, #2c6690, #6fbbef)
}

.theme-default .portal-dark-icon {
    background: linear-gradient(135deg, #47606f, #8297a4)
}

.portal-dark-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    font-size: clamp(15px, 1.7vw, 18px);
    font-weight: 600;
    color: var(--text-hi)
}

.portal-dark-card-title .arrow {
    font-size: 18px;
    opacity: .35;
    transition: .3s
}

.portal-dark-card:hover .portal-dark-card-title .arrow {
    opacity: 1;
    transform: translateX(5px);
    color: var(--accent-a)
}

.portal-dark-card-title em {
    font-style: normal;
    font-size: 10px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
    color: rgba(245, 249, 255, .70)
}

.portal-dark-card p {
    margin-top: 7px;
    font-size: clamp(12px, 1.2vw, 13px);
    line-height: 1.55;
    color: var(--text-lo)
}

.portal-dark-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 11px;
    color: rgba(255, 255, 255, .36)
}

@media(max-width:900px) {
    .portal-dark-stage {
        align-items: flex-start
    }

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

    .portal-dark-user-chip {
        display: none
    }

    .portal-dark-welcome {
        align-items: flex-start
    }

    .welcome-status {
        text-align: left;
        min-width: auto
    }
}

@media(max-width:640px) {
    .portal-dark-dashboard {
        border-radius: 28px;
        padding: 18px
    }

    .portal-dark-header {
        align-items: flex-start
    }

    .portal-dark-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px
    }

    .portal-dark-card {
        min-height: 150px;
        padding: 15px
    }

    .portal-dark-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 12px
    }

    .portal-dark-welcome {
        flex-direction: column;
        padding: 16px
    }

    .welcome-copy h2 {
        font-size: 27px
    }

    .portal-dark-footer {
        flex-direction: column;
        align-items: center;
        text-align: center
    }

    .portal-dark-title-wrap h1 {
        font-size: 21px
    }

    .portal-dark-title-wrap span {
        font-size: 11.5px
    }

    .portal-dark-logo-box {
        width: 48px;
        height: 48px
    }

    .portal-dark-logout {
        padding: 8px 11px;
        font-size: 11.5px
    }
}

@media(max-width:380px) {
    .portal-dark-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px
    }

    .portal-dark-card {
        min-height: 135px;
        padding: 13px 11px
    }

    .portal-dark-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px
    }

    .portal-dark-card-title {
        font-size: 14px
    }

    .portal-dark-card p {
        font-size: 11px
    }

    .portal-dark-welcome {
        padding: 14px
    }

    .welcome-copy p {
        font-size: 12px
    }
}

@media(prefers-reduced-motion:reduce) {

    .portal-bg-slideshow .slide,
    .portal-aurora,
    .portal-dark-card,
    .portal-dark-card-title .arrow {
        animation: none !important;
        transition: none !important
    }

    .portal-bg-slideshow .slide {
        opacity: 0 !important;
        transform: none !important
    }

    .portal-bg-slideshow .slide-1 {
        opacity: 1 !important
    }
}

/* ===== PROFILE BLOCK INSIDE WELCOME AREA ===== */
.portal-profile-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 4px 2px;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #f5f9ff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none
}

.portal-profile-photo-wrap {
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
    padding: 3px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .52);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .20), 0 0 0 1px rgba(255, 255, 255, .08)
}

.portal-profile-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 20px;
    background: #eef3f4
}

.portal-profile-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.18
}

.portal-profile-welcome {
    font-size: 12px;
    font-weight: 600;
    color: rgba(224, 240, 249, .72);
    margin-bottom: 4px
}

.portal-profile-code {
    font-size: 14px;
    font-weight: 800;
    color: #58f09a;
    margin-bottom: 3px;
    letter-spacing: .02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .18)
}

.portal-profile-copy h2 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
    color: #fff;
    white-space: normal;
    overflow-wrap: anywhere;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .24)
}

.portal-profile-position {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #d7e6ee
}

.portal-profile-org {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(232, 243, 249, .78)
}

.portal-profile-org span {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.portal-profile-org span:not(:last-child)::after {
    content: "•";
    margin-left: 8px;
    color: rgba(191, 228, 255, .45)
}

.portal-profile-org b {
    font-weight: 600;
    color: #bfe4ff
}

.portal-dark-welcome {
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(80, 191, 235, .12), rgba(255, 255, 255, .05))
}

.portal-dark-user-area {
    margin-left: auto
}

@media(max-width:900px) {
    .portal-profile-card {
        width: 100%;
        max-width: 720px
    }

    .portal-dark-welcome {
        align-items: center
    }

    .welcome-status {
        margin-left: auto;
        text-align: right
    }
}

@media(max-width:640px) {
    .portal-dark-welcome {
        align-items: stretch
    }

    .portal-profile-card {
        padding: 2px 0;
        gap: 14px
    }

    .portal-profile-photo-wrap {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
        border-radius: 21px
    }

    .portal-profile-photo {
        border-radius: 18px
    }

    .portal-profile-copy h2 {
        font-size: 22px
    }

    .portal-profile-position {
        font-size: 12px
    }

    .portal-profile-org {
        font-size: 11.5px;
        gap: 4px 8px
    }

    .portal-profile-org span:not(:last-child)::after {
        margin-left: 5px
    }

    .welcome-status {
        margin-left: 0;
        text-align: left
    }
}

@media(max-width:420px) {
    .portal-profile-card {
        align-items: flex-start
    }

    .portal-profile-photo-wrap {
        width: 70px;
        height: 70px;
        flex-basis: 70px
    }

    .portal-profile-copy h2 {
        font-size: 19px
    }

    .portal-profile-code {
        font-size: 13px
    }

    .portal-profile-org {
        display: grid;
        gap: 3px
    }

    .portal-profile-org span:not(:last-child)::after {
        display: none
    }
}