/* ── Pages d'entrée de l'espace enseignant : connexion, demande de compte ──
   (templates/connexion/_cadre.html.twig). La mise en page vient de la feuille
   Tailwind commune ; ici, la couleur d'identité de l'espace — elle distingue
   les quatre applications — et la carte sur petit écran. */

.auth-hero { background-image: linear-gradient(to bottom right, #0f172a, #5b21b6, #7c3aed); }
.auth-accent { background-color: #7c3aed; }
.auth-accent:hover { background-color: #6d28d9; }
.auth-accent:focus { --tw-ring-color: rgba(124, 58, 237, .40); }
.auth-link { color: #7c3aed; }
.auth-soft { background-color: #ede9fe; color: #7c3aed; }
.auth-card input:focus { border-color: #7c3aed; --tw-ring-color: rgba(124, 58, 237, .18); }

/* Piège à robots : invisible sans être ignoré des navigateurs. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sous le seuil « lg », le panneau de gauche est masqué. */
@media (max-width: 1023.98px) {
    .auth-page {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .auth-page > .flex.min-h-full {
        width: 100%;
        align-items: center;
        justify-content: center;
    }
    /* La connexion tient dans l'écran, sans défilement. */
    html:has(> .auth-page--fixe),
    .auth-page--fixe {
        height: 100%;
        overflow: hidden;
    }
    .auth-page--fixe > .flex.min-h-full { height: 100dvh; }

    /* Carte : ancre le formulaire sur le fond gris au lieu de le laisser flotter. */
    .auth-card {
        background: #fff;
        border-radius: 18px;
        padding: 1.75rem 1.5rem;
        box-shadow: 0 12px 32px -14px rgba(15, 23, 42, .22);
    }
    /* 16 px sur les champs : iOS ne zoome pas au moment de la saisie. */
    .auth-card input { font-size: 16px; }
    /* Cibles tactiles plus généreuses. */
    .auth-card button[type="submit"] { padding-top: .8rem; padding-bottom: .8rem; }
    .auth-card button[type="button"] { padding: .5rem; }
}
