/* ============================================================================
   CONNEXION AU PORTAIL SALARIÉ — /portail/connexion et /portail/mot-de-passe
   Passation : docs/modeles/design_handoff_portail_connexion (2026-10-05).
   Préfixe .pcx-* — aucun écran du back-office ne la lit.

   Les deux pages sont rendues NUES par PortailLayout (pas de .appgrid) : le cadre
   CadreAuthPortail pose lui-même data-theme sur .pcx, et le bloc sombre
   d'easytech-theme.css couvre .pcx[data-theme="dark"] comme il couvre .et-reco.

   Les classes .portail-auth / .portail-card d'easytime-shell.css ne sont pas
   touchées : le portail client et le portail EasyConso les lisent encore.
   ============================================================================ */

.pcx {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 76px 16px 24px;
    box-sizing: border-box;
    background: var(--et-degrade-accueil);
    color: var(--et-ink);
}

/* Langues, sur le fond marine : la famille --et-*-marine, jamais une couleur écrite. */
.pcx-langues { position: absolute; top: 16px; right: 16px; display: flex; gap: 6px; }
.pcx-langue {
    min-width: 44px; min-height: 44px; padding: 0 10px;
    border: 1px solid var(--et-filet-marine); background: transparent;
    color: var(--et-sur-marine-doux); font-size: 13px; font-weight: 600; cursor: pointer;
}
.pcx-langue:hover { background: var(--et-fond-marine-survol); color: var(--et-sur-marine); }
.pcx-langue[aria-pressed="true"] { background: var(--et-fond-marine-actif); border-color: var(--et-sur-marine-faible); color: var(--et-sur-marine); }
.pcx-langue:focus-visible { outline: 2px solid var(--et-sur-marine); outline-offset: 1px; }

.pcx-carte {
    width: 100%; max-width: 420px; box-sizing: border-box;
    display: flex; flex-direction: column; gap: 20px;
    padding: 28px;
    background: var(--et-surface);
    border-top: 4px solid var(--et-action);
    box-shadow: var(--et-ombre-fenetre);
}
.pcx-carte > .mx-blocage { margin: 0; }

.pcx-tete { display: flex; align-items: center; gap: 12px; }
.pcx-logo {
    width: 44px; height: 44px; flex: none; display: grid; place-items: center;
    background: var(--et-blue); color: var(--et-sur-marine);
    font-weight: 700; font-size: 15px; letter-spacing: .02em;
}
.pcx-tete-txt { display: flex; flex-direction: column; min-width: 0; }
.pcx-marque {
    font-family: var(--et-font-mono); font-size: 12px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; color: var(--et-muted);
}
.pcx-titre { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--et-ink); }

.pcx-form { display: flex; flex-direction: column; gap: 14px; }
.pcx-champ { display: flex; flex-direction: column; gap: 6px; }
.pcx-champ > label { margin: 0; font-size: 13px; font-weight: 600; color: var(--et-ink); }
.pcx-champ .mx-input { width: 100%; height: 44px; font-size: 15px; }

/* Le bouton Afficher est accolé au champ : un seul cadre, le filet du champ fait la jointure. */
.pcx-mdp { display: flex; }
.pcx-mdp > .mx-input { flex: 1 1 auto; min-width: 0; border-right: 0; }
.pcx-oeil {
    flex: none; min-width: 76px; min-height: 44px; padding: 0 10px;
    border: 1px solid var(--et-bord-champ); background: var(--et-surface);
    color: var(--et-lien); font-size: 13px; font-weight: 600; cursor: pointer;
}
.pcx-oeil:hover { background: var(--et-tint); }
.pcx-oeil:focus-visible { outline: 2px solid var(--et-form-blue); outline-offset: -2px; }

.pcx-avert { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--et-avertissement-ink); }
.pcx-avert::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--et-avertissement-mark); }

.pcx-regles { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pcx-regles > li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--et-muted); }
.pcx-regles > li > span { width: 16px; flex: none; text-align: center; font-weight: 700; }
.pcx-regles > li.est-tenue { color: var(--et-succes-ink); }

.pcx-cta { width: 100%; min-height: 44px; justify-content: center; font-size: 15px; }

.pcx-pied { margin: 0; padding-top: 16px; border-top: 1px solid var(--et-hairline); font-size: 13px; color: var(--et-muted); }

.pcx-copyright { font-size: 12px; color: var(--et-sur-marine-doux); }

@media (max-width: 640px) {
    .pcx-carte { padding: 24px 20px; }
}
