/* ==========================================================================
   Gabarit « portail » 440Hz — pages Login, ForgotPassword, ResetPassword.
   Deux panneaux : à gauche la marque (logo, accroche, vague animée),
   à droite la carte de formulaire. Reprise de la maquette de référence.
   Les tokens proviennent de theme-440hz.css.
   ========================================================================== */

.hz-portal {
    min-height: calc(100vh - var(--hz-header-height));
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

/* Variante à un seul panneau (mot de passe oublié). */
.hz-portal--narrow {
    grid-template-columns: 1fr;
    place-items: center;
    padding: 56px clamp(20px, 4vw, 48px);
}

/* ── Panneau de marque ──────────────────────────────────────────────────── */

.hz-portal__aside {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px clamp(28px, 4vw, 72px);
    background: linear-gradient(155deg, rgba(78, 146, 206, 0.16), rgba(10, 15, 26, 0.35));
}

.hz-portal__aside > *:not(.hz-wave) {
    position: relative;
}

.hz-portal__eyebrow {
    font-family: var(--hz-font-mono);
    font-size: 12.5px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--hz-cyan);
    margin: 34px 0 16px;
}

.hz-portal__title {
    margin: 0;
    max-width: 440px;
    font-family: var(--hz-font-title);
    font-weight: 600;
    font-size: clamp(34px, 3.6vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.015em;
}

.hz-portal__points {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.hz-portal__point {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--hz-body);
}

.hz-portal__point::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hz-cyan);
}

/* Récapitulatif tabulaire optionnel (même style que le panneau de la maquette). */
.hz-portal__recap {
    margin-top: 36px;
    max-width: 400px;
    padding: 24px 26px;
    border-radius: 16px;
    background: var(--hz-surface-solid);
    border: 1px solid var(--hz-border);
}

/* ── Carte de formulaire ────────────────────────────────────────────────── */

.hz-portal__side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px clamp(24px, 4vw, 64px);
}

.hz-portal__card {
    width: 100%;
    max-width: 400px;
    padding: 44px 40px;
    border-radius: 22px;
    background: var(--hz-surface);
    border: 1px solid var(--hz-border);
    box-shadow: var(--hz-card-shadow);
}

/* Carte autonome de la variante à un panneau. */
.hz-portal__card--wide {
    max-width: 460px;
}

.hz-portal__mark {
    margin-bottom: 22px;
}

.hz-portal__eyebrow--tight {
    margin: 0 0 10px;
}

.hz-portal__card h2 {
    margin: 0 0 6px;
    font-family: var(--hz-font-title);
    font-weight: 600;
    font-size: 34px;
    line-height: 1.05;
}

.hz-portal__sub {
    margin: 0 0 28px;
    font-size: 14.5px;
    color: var(--hz-muted);
}

.hz-portal__field {
    margin-bottom: 18px;
}

.hz-portal__field .validation-message {
    display: block;
    margin-top: 6px;
}

.hz-portal__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.hz-portal__row--end {
    justify-content: flex-end;
}

.hz-portal__banner {
    margin-bottom: 20px;
}

.hz-portal__foot {
    margin-top: 20px;
    text-align: center;
}

.hz-portal__back {
    display: block;
    margin-top: 18px;
    text-align: center;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .hz-portal {
        grid-template-columns: 1fr;
        min-height: 0;
        justify-items: center;
    }

    .hz-portal > div {
        width: 100%;
        max-width: 480px;
    }

    .hz-portal__aside {
        align-items: center;
        text-align: center;
        padding: 32px 22px 20px;
    }

    .hz-portal__aside > *:not(.hz-wave) {
        margin-left: auto;
        margin-right: auto;
        max-width: 420px;
        width: 100%;
    }

    .hz-portal__points {
        align-items: flex-start;
        text-align: left;
    }

    .hz-portal__side {
        padding: 4px 22px 48px;
    }

    .hz-portal__eyebrow {
        margin-top: 22px;
    }

    /* Le panneau est bien plus court une fois empilé : la vague passerait
       derrière le texte. On l'estompe et on la remet au ras du bas.
       L'opacité et la hauteur sont posées en style inline par le composant,
       d'où le !important. */
    .hz-portal__aside .hz-wave {
        height: 150px !important;
        opacity: 0.3 !important;
    }
}
