/* ─────────────────────────────────────────────────────────────────────────
   Tela de login com a cena do bairro (registration/login.html).

   Celular primeiro: a página rola, o fundo fica parado (retrato) e a turma
   aparece em pé no fim, depois do formulário e das abas. No PC (≥ 992px) a
   tela volta a ser travada no viewport: formulário e abas à esquerda, a turma
   na calçada do lado direito do fundo em paisagem.
   ───────────────────────────────────────────────────────────────────────── */

html:has(.auth-portal--scene),
body:has(.auth-portal--scene) {
    height: auto;
    min-height: 100%;
    overflow: auto;
}

.auth-portal--scene {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
}

.auth-portal--scene .auth-portal__visual {
    background:
        linear-gradient(180deg, rgba(8, 10, 14, 0.78) 0%, rgba(8, 10, 14, 0.35) 38%, rgba(8, 10, 14, 0.55) 70%, rgba(8, 10, 14, 0.9) 100%),
        url("../img/login/fundo-retrato.webp") center bottom / cover no-repeat;
    background-color: #1a120a;
    position: fixed;
}

.auth-portal--scene .auth-portal__shell {
    align-items: stretch;
    /* Celular: o miolo tem a altura do conteúdo, e a turma vem logo abaixo
       das abas em vez de ir parar no fim de uma tela esticada. */
    flex: 0 0 auto;
    justify-content: flex-start;
    overflow: visible;
    padding: 1rem 1rem 0.5rem;
}

.auth-portal--scene .auth-portal__lead {
    color: rgba(244, 241, 232, 0.78);
}

.auth-portal--scene .auth-portal__footer {
    color: rgba(244, 241, 232, 0.55);
    font-size: 0.72rem;
    margin: 0.85rem 0 0;
    text-align: center;
}

/* ── Abas: Eventos / Boteco / Novidades ─────────────────────────────────── */

.login-vitrine {
    backdrop-filter: blur(14px);
    background: rgba(14, 16, 22, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--bns-radius);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.login-vitrine__tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.4rem 0.5rem 0;
    scrollbar-width: none;
}

.login-vitrine.has-js .login-vitrine__tabs {
    display: flex;
}

.login-vitrine__tab {
    align-items: center;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--bns-text-muted);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.3rem;
    letter-spacing: 0.03em;
    padding: 0.55rem 0.7rem;
    text-transform: uppercase;
    transition: color var(--bns-transition), border-color var(--bns-transition);
}

.login-vitrine__tab .material-icons {
    font-size: 1rem;
}

.login-vitrine__tab:hover {
    color: var(--bns-text);
}

.login-vitrine__tab.is-active {
    border-bottom-color: var(--bns-accent);
    color: var(--bns-text);
}

.login-vitrine__panel {
    padding: 0.85rem 1rem 1rem;
}

/* Sem JS: os três painéis empilhados, separados por uma linha. */
.login-vitrine:not(.has-js) .login-vitrine__panel + .login-vitrine__panel {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.login-vitrine.has-js .login-vitrine__panel:not(.is-active) {
    display: none;
}

.lv-list {
    display: grid;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lv-empty,
.lv-foot {
    color: var(--bns-text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 0;
}

.lv-foot {
    margin-top: 0.7rem;
}

/* Evento */
.lv-event {
    --lv-accent: var(--bns-accent);
    align-items: center;
    background: linear-gradient(120deg, color-mix(in srgb, var(--lv-accent) 18%, transparent) 0%, rgba(255, 255, 255, 0.03) 60%);
    border: 1px solid color-mix(in srgb, var(--lv-accent) 35%, transparent);
    border-radius: calc(var(--bns-radius) - 4px);
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
}

.lv-event__art {
    flex: 0 0 auto;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
    height: 56px;
    object-fit: contain;
    width: 56px;
}

.lv-event__body {
    min-width: 0;
}

.lv-event__when {
    align-items: center;
    color: var(--lv-accent);
    display: flex;
    font-size: 0.68rem;
    font-weight: 800;
    gap: 0.35rem;
    letter-spacing: 0.05em;
    margin: 0 0 0.1rem;
    text-transform: uppercase;
}

.lv-event__name {
    color: var(--bns-text);
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
}

.lv-event__offer,
.lv-event__extra {
    color: var(--bns-text-muted);
    font-size: 0.76rem;
    line-height: 1.35;
    margin: 0.25rem 0 0;
}

.lv-event__offer {
    color: var(--bns-text);
    font-weight: 600;
}

.lv-tag {
    background: var(--lv-accent);
    border-radius: 999px;
    color: #111;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-right: 0.2rem;
    padding: 0.1rem 0.45rem;
    text-transform: uppercase;
}

.lv-pulse {
    animation: lv-pulse 1.6s ease-in-out infinite;
    background: currentColor;
    border-radius: 50%;
    display: inline-block;
    height: 7px;
    width: 7px;
}

@keyframes lv-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

/* Linha de mesa / versão */
.lv-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: calc(var(--bns-radius) - 4px);
    color: inherit;
    display: grid;
    gap: 0.15rem;
    padding: 0.6rem 0.75rem;
    text-decoration: none;
    transition: border-color var(--bns-transition), background var(--bns-transition);
}

.lv-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(var(--bns-accent-rgb), 0.45);
    color: inherit;
    text-decoration: none;
}

.lv-row__kind {
    color: var(--bns-accent);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lv-row__title {
    color: var(--bns-text);
    font-size: 0.88rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lv-row__summary {
    color: var(--bns-text-muted);
    display: -webkit-box;
    font-size: 0.75rem;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lv-row__meta {
    align-items: center;
    color: var(--bns-text-muted);
    display: flex;
    font-size: 0.72rem;
    gap: 0.25rem;
}

.lv-row__meta .material-icons {
    font-size: 0.85rem;
    margin-left: 0.2rem;
}

.lv-row__meta .material-icons:first-child {
    margin-left: 0;
}

.lv-row__time {
    margin-left: auto;
}

/* ── A foto da turma (fileiras e posturas em crowd.css) ───────────────── */

/* Celular: depois das abas, o grupo inteiro, em duas fileiras. */
.auth-portal--scene .crowd {
    margin-top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
    .lv-pulse {
        animation: none;
    }
}

/* ── Tablet: fundo em paisagem, ainda rolando ───────────────────────────── */

@media (min-width: 768px) {
    .auth-portal--scene .auth-portal__visual {
        background:
            linear-gradient(180deg, rgba(8, 10, 14, 0.72) 0%, rgba(8, 10, 14, 0.4) 45%, rgba(8, 10, 14, 0.75) 100%),
            url("../img/login/fundo-paisagem.webp") center bottom / cover no-repeat;
    }

    .auth-portal--scene .auth-portal__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

}

/* ── PC: viewport travado, turma na calçada à direita ───────────────────── */

@media (min-width: 992px) {
    html:has(.auth-portal--scene),
    body:has(.auth-portal--scene) {
        height: 100%;
        overflow: hidden;
    }

    .auth-portal--scene {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .auth-portal--scene .auth-portal__visual {
        background:
            linear-gradient(90deg, rgba(8, 10, 14, 0.86) 0%, rgba(8, 10, 14, 0.62) 38%, rgba(8, 10, 14, 0.08) 62%, rgba(8, 10, 14, 0) 100%),
            linear-gradient(0deg, rgba(8, 10, 14, 0.45) 0%, transparent 30%),
            url("../img/login/fundo-paisagem.webp") center bottom / cover no-repeat;
        position: absolute;
    }

    .auth-portal--scene .auth-portal__shell {
        flex: 1 1 auto;
        justify-content: center;
        margin: 0;
        max-width: none;
        overflow: hidden;
        padding: 1rem 1rem 1rem clamp(1.25rem, 4.5vw, 5rem);
        width: min(880px, 60vw);
    }

    .auth-portal--scene .auth-portal__grid {
        grid-template-columns: minmax(0, 360px) minmax(0, 420px);
    }

    .auth-portal--scene .auth-portal__footer {
        text-align: left;
    }

    .login-vitrine {
        max-height: calc(100dvh - 9rem);
    }

    .login-vitrine__panel {
        overflow-y: auto;
    }

    .auth-portal--scene .crowd {
        bottom: 0;
        margin: 0;
        position: absolute;
        right: max(0.5rem, 2vw);
        width: min(42vw, 28rem);
        z-index: 2;
    }

    .auth-portal--scene .crowd--foto .crowd__skin {
        height: calc(clamp(118px, 16vh, 168px) * var(--altura, 1));
    }


    .auth-portal--scene .crowd--foto .crowd__char {
        flex-basis: 5rem;
        width: 5rem;
    }

    .auth-portal--scene .crowd--foto .crowd__list {
        width: min(100%, 23rem);
    }
}

@media (min-width: 1440px) {
    .auth-portal--scene .crowd {
        right: max(1rem, 3vw);
        width: min(36vw, 30rem);
    }

    .auth-portal--scene .crowd--foto .crowd__skin {
        height: calc(clamp(136px, 18vh, 190px) * var(--altura, 1));
    }

}
