/* Page basics, as the App and Platform hosts have them. */
html, body { height: 100%; margin: 0; font-family: Segoe UI, Arial, sans-serif; color: #1d2733; background: #f5f7fa; }
#app { height: 100%; min-height: 100%; min-width: 0; }
/* Portal-plane chrome. The shell grid and tab chrome come from _content/Sabre.Shared.Web; this file
   holds only what the portal's own top bar, nav and sign-in page need. */
.portal-shell { max-width: 720px; margin: 3rem auto; padding: 0 1rem; }
.portal-topbar { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 .75rem; }
.portal-topbar__title { display: flex; align-items: baseline; gap: .5rem; }
.portal-topbar__product { font-weight: 700; }
.portal-topbar__portal { font-weight: 600; }
.portal-topbar__subtitle { color: var(--gnt-text-tertiary); font-size: .9rem; }
.portal-topbar__user { display: flex; align-items: center; gap: .75rem; }
/* The User menu (Shared/PortalUserMenu.razor), top right like the App's and Tenant Admin's. */
.portal-user-menu { display: flex; align-items: center; gap: .5rem; }
.portal-user-menu__name { font-weight: 600; }
.portal-landing__topbar-user { margin-left: auto; }
.portal-landing__unlicensed { max-width: 560px; margin: 1rem auto 0; text-align: left; }
.portal-landing__unlicensed ul { margin: .25rem 0 .5rem 1.25rem; }
.portal-topbar__signout { background: none; border: 1px solid var(--gnt-border-color); border-radius: 4px; padding: .25rem .6rem; cursor: pointer; }
.portal-topbar__link { margin-right: .75rem; }
.portal-left-nav { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: .5rem; }
.portal-left-nav__title { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.portal-left-nav__link { display: block; padding: .5rem .65rem; border-radius: 4px; color: inherit; text-decoration: none; }
.portal-left-nav__link.active { background: var(--gnt-selection-bg, #e9f1ff); font-weight: 600; }
.gnt-portal-denied { max-width: 520px; margin: 3rem auto; padding: 1rem; border: 1px solid var(--gnt-border-soft); border-radius: 6px; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: .6rem 1.25rem; background: #ffffe0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); }
.portal-topbar__viewas { display: flex; align-items: center; gap: .5rem; margin-left: auto; margin-right: 1rem; }
.portal-topbar__viewas-badge { font-weight: 600; border: 1px solid var(--gnt-border-color); border-radius: 4px; padding: .1rem .5rem; }
.portal-topbar__viewas select { padding: .2rem .4rem; max-width: 22rem; }

/* The landing page (Pages/Landing.razor): the same chrome as the App and Platform landing pages. */
.portal-landing {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    background: var(--gnt-surface-color);
}

.portal-landing__topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    min-height: 50px;
    padding: 4px 16px;
    background: var(--sabre-chrome-bg);
    color: var(--sabre-chrome-fg);
    border-bottom: 1px solid var(--sabre-chrome-border);
}

.portal-landing__logo {
    display: block;
    height: 36px;
    width: auto;
}

.portal-landing__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 0;
    padding: 24px;
    box-sizing: border-box;
}

.portal-landing__footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 4px 12px;
    font-size: 0.8rem;
    background: var(--sabre-chrome-bg);
    color: var(--sabre-chrome-fg-muted);
    border-top: 1px solid var(--sabre-chrome-border);
}

.portal-landing__header {
    width: min(960px, 100%);
    margin: 0 auto;
}

.portal-landing__header--signin {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 520px;
    padding: 0;
    text-align: center;
}

.portal-landing__brand {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 156px;
    height: auto;
}

.portal-landing__warrior {
    width: 118px;
    height: 118px;
    object-fit: contain;
    margin-bottom: 18px;
}

.portal-landing__eyebrow,
.portal-landing__option-kicker {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #50627a;
}

.portal-landing h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
}

.portal-landing h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.portal-landing p {
    margin: 10px 0 0;
    color: var(--gnt-text-tertiary);
    line-height: 1.5;
}

.portal-landing__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: min(960px, 100%);
    margin: 0 auto;
}

.portal-landing__option {
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 18px;
    min-height: 250px;
    padding: 20px;
    border: 1px solid var(--gnt-border-soft);
    border-radius: 6px;
    background: var(--gnt-surface-color);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.portal-landing__option--disabled {
    background: var(--gnt-surface-2);
    color: var(--gnt-muted-color);
}

.portal-landing__option small {
    color: var(--gnt-muted-color);
    line-height: 1.4;
}

.portal-landing__signin-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 760px) {
    .portal-landing {
        padding: 20px;
    }

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

    .portal-landing h1 {
        font-size: 1.7rem;
    }
}

/* The signed-in list: one card per organisation, one button per portal it may open. */
.portal-landing__who { margin: 0; }

.portal-landing__orgs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: min(960px, 100%);
}

.portal-landing__org {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--gnt-border-soft);
    border-radius: 6px;
    background: var(--gnt-surface-color);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    text-align: left;
}

.portal-landing__org p { margin: 0; }

.portal-landing__portals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portal-landing__tag {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
}

.portal-landing__problem { font-weight: 600; }

@media (max-width: 760px) {
    .portal-landing__orgs { grid-template-columns: 1fr; }
}
