/* What the portal adds to the shared theme of Online (FourS.Presentation.Hosting/wwwroot/theme):
   the compact navigation of narrow screens, the terms of use box and the recovery codes.
   Everything else - colours, typography, cards, layout - comes from the theme. */

.portal-auth {
    min-height: 100%;
    padding-block: 2rem;
}

/* Below 768 px the theme hides the sidebar: the compact header carries the two entries. */
.portal-compact-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portal-compact-nav a {
    color: inherit;
    font-weight: 600;
}

.portal-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: var(--rz-text-body2-font-size);
}

.portal-errors {
    margin: 0;
    padding-left: 1.25rem;
}

.portal-terms-box {
    max-height: 320px;
    overflow-y: auto;
    border: var(--rz-border-width) solid var(--rz-base-600);
    border-radius: var(--rz-card-border-radius, 8px);
    padding: 0 1rem;
    background: var(--rz-base-50);
}

.portal-codes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding-left: 1.5rem;
}

.portal-codes code {
    font-family: var(--rz-text-monospace-font-family);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}


/* Online's account menu, without a circuit: the profile button is the label of a checkbox kept off
   screen but focusable, and the menu above it shows while the box is ticked. */
.portal-profile-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.portal-profile-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}

.portal-profile-toggle:checked ~ .portal-profile-menu {
    display: flex;
}

.portal-profile-menu a.rz-button {
    text-decoration: none;
    display: flex;
    justify-content: center;
}

.portal-profile-toggle:focus-visible ~ .profil-button {
    outline: 2px solid var(--rz-base-50);
    outline-offset: 2px;
}

.profil-button {
    cursor: pointer;
}
