:root {
    --portal-blue: #07468F;
    --portal-blue-dark: #03275F;
    --portal-orange: #FD6B04;
    --portal-yellow: #FCA00C;

    --portal-text: #10213A;
    --portal-text-secondary: #64748B;

    --portal-background: #F5F7FA;
    --portal-white: #FFFFFF;
    --portal-border: #E2E8F0;

    --portal-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}


/* =====================================================
   ESTRUTURA
===================================================== */

.portal-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--portal-background);
}

.portal-main {
    flex: 1;
    width: 100%;
}


/* =====================================================
   HEADER
===================================================== */

.portal-header {
    width: 100%;
    height: 76px;

    background: var(--portal-white);

    border-bottom: 1px solid var(--portal-border);

    position: relative;
    z-index: 100;
}


.portal-header-container {
    width: 100%;
    max-width: 1200px;

    height: 100%;

    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =====================================================
   LOGO
===================================================== */

.portal-logo {
    display: flex;
    align-items: center;

    text-decoration: none;

    flex-shrink: 0;
}


.portal-logo img {
    width: auto;
    height: 52px;

    max-width: 180px;

    display: block;

    object-fit: contain;
}


/* =====================================================
   MENU
===================================================== */

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


/* =====================================================
   ITEM DO MENU
===================================================== */

.portal-menu-item {
    height: 44px;

    padding: 0 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border-radius: 8px;

    color: var(--portal-text);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


.portal-menu-item i {
    font-size: 17px;
}


.portal-menu-item:hover {
    background: #EEF4FB;
    color: var(--portal-blue);
}


/* =====================================================
   BOTÃO CRIAR CONTA
===================================================== */

.portal-menu-button {
    height: 44px;

    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--portal-blue);

    color: var(--portal-white);

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.portal-menu-button:hover {
    background: var(--portal-blue-dark);

    color: var(--portal-white);

    transform: translateY(-1px);

    box-shadow: 0 5px 14px rgba(7, 70, 143, 0.22);
}


/* =====================================================
   MINHA CONTA
===================================================== */

.portal-account {
    position: relative;
}


.portal-account-button {
    height: 44px;

    padding: 0 12px;

    display: flex;
    align-items: center;

    gap: 9px;

    border: 1px solid transparent;
    border-radius: 8px;

    background: transparent;

    color: var(--portal-text);

    cursor: pointer;

    font-family: inherit;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}


.portal-account-button:hover {
    background: #F8FAFC;

    border-color: var(--portal-border);
}


.portal-account-avatar {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #E8F0FA;

    color: var(--portal-blue);

    font-size: 16px;
}


.portal-account-text {
    font-size: 14px;
    font-weight: 600;
}


.portal-account-chevron {
    font-size: 12px;

    color: var(--portal-text-secondary);

    transition: transform 0.2s ease;
}


.portal-account.open .portal-account-chevron {
    transform: rotate(180deg);
}


/* =====================================================
   DROPDOWN
===================================================== */

.portal-account-menu {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 230px;

    padding: 8px;

    background: var(--portal-white);

    border: 1px solid var(--portal-border);

    border-radius: 10px;

    box-shadow: var(--portal-shadow);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-5px);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}


.portal-account.open .portal-account-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* =====================================================
   ITENS DO DROPDOWN
===================================================== */

.portal-account-menu-item {
    min-height: 42px;

    padding: 0 12px;

    display: flex;
    align-items: center;

    gap: 11px;

    border-radius: 7px;

    color: var(--portal-text);

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


.portal-account-menu-item i {
    width: 18px;

    color: var(--portal-text-secondary);

    font-size: 16px;
}


.portal-account-menu-item:hover {
    background: #EEF4FB;

    color: var(--portal-blue);
}


.portal-account-menu-item:hover i {
    color: var(--portal-blue);
}


/* =====================================================
   DIVISOR
===================================================== */

.portal-account-divider {
    height: 1px;

    margin: 7px 4px;

    background: var(--portal-border);
}


/* =====================================================
   SAIR
===================================================== */

.portal-account-menu-sair {
    color: #B42318;
}


.portal-account-menu-sair i {
    color: #B42318;
}


.portal-account-menu-sair:hover {
    background: #FEF3F2;

    color: #B42318;
}


.portal-account-menu-sair:hover i {
    color: #B42318;
}


/* =====================================================
   RESPONSIVO
===================================================== */

@media (max-width: 760px) {

    .portal-header {
        height: 68px;
    }


    .portal-header-container {
        padding: 0 16px;
    }


    .portal-logo img {
        height: 42px;
        max-width: 145px;
    }


    .portal-menu {
        gap: 4px;
    }


    .portal-menu-item {
        padding: 0 9px;
    }


    .portal-menu-item span {
        display: none;
    }


    .portal-menu-item i {
        font-size: 19px;
    }


    .portal-menu-button {
        height: 40px;

        padding: 0 13px;

        font-size: 13px;
    }


    .portal-account-button {
        padding: 0 7px;
    }


    .portal-account-text {
        display: none;
    }


    .portal-account-menu {
        right: 0;

        width: 220px;
    }
}

/* =====================================================
   FOOTER
===================================================== */

.portal-footer {
    margin-top: auto;

    background: var(--portal-blue-dark);

    color: var(--portal-white);
}


/* =====================================================
   CONTAINER PRINCIPAL
===================================================== */

.portal-footer-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 42px 24px;

    display: flex;
    justify-content: space-between;
    gap: 60px;
}


/* =====================================================
   MARCA
===================================================== */

.portal-footer-brand {
    max-width: 360px;
}


.portal-footer-logo {
    display: inline-flex;
    align-items: center;

    max-width: 150px;

    overflow: hidden;

    text-decoration: none;
}


.portal-footer-logo img {
    display: block;

    width: 100%;
    max-width: 120px;

    filter: brightness(0) invert(1);
}


.portal-footer-description {
    margin: 16px 0 0;

    color: #CBD5E1;

    font-size: 14px;
    line-height: 1.6;
}


/* =====================================================
   LINKS
===================================================== */

.portal-footer-links {
    display: flex;

    gap: 80px;
}


.portal-footer-column {
    min-width: 150px;

    display: flex;
    flex-direction: column;

    gap: 10px;
}


.portal-footer-column h3 {
    margin: 0 0 8px;

    color: var(--portal-white);

    font-size: 14px;
    font-weight: 700;
}


.portal-footer-column a {
    color: #CBD5E1;

    text-decoration: none;

    font-size: 14px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.portal-footer-column a:hover {
    color: var(--portal-white);

    transform: translateX(2px);
}


/* =====================================================
   RODAPÉ INFERIOR
===================================================== */

.portal-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}


.portal-footer-bottom-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 16px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: #94A3B8;

    font-size: 12px;
}


/* =====================================================
   RESPONSIVO
===================================================== */

@media (max-width: 760px) {

    .portal-footer-container {
        padding: 34px 20px;

        flex-direction: column;

        gap: 32px;
    }


    .portal-footer-brand {
        max-width: 100%;
    }


    .portal-footer-links {
        gap: 40px;
    }


    .portal-footer-bottom-container {
        padding: 14px 20px;

        flex-direction: column;

        align-items: flex-start;

        gap: 5px;
    }

}