/*
 * The pre-registration page: the sign-in layout of EasyAdmin, wider than a sign-in form because of the people to enter.
 */
@media (min-width: 576px) {
    .page-pre-registration .login-wrapper {
        inline-size: 40rem;
    }
}

/*
 * The mark of the required fields is the one of EasyAdmin (a red dot after the label), drawn by its own style. Its sign-in
 * layout hides it (display: none): it is only shown again here.
 */
.page-pre-registration .login-wrapper .form-group label.required:after {
    display: inline-block;
}

/* One person of the list: a box of its own, so that the people are told apart. */
.pre-registration-person {
    border: 1px solid var(--border-color, rgba(128, 128, 128, 0.35));
    border-radius: 0.5rem;
    margin-block-end: 1rem;
    padding: 1rem;
}

/* The title is inside the box, not on its border: a legend floated to the full width pushes the fields below it. */
.pre-registration-person-title {
    align-items: baseline;
    display: flex;
    float: left;
    gap: 0.75rem;
    inline-size: 100%;
    justify-content: space-between;
    margin-block-end: 0.75rem;
    padding: 0;
}

.pre-registration-person-title + * {
    clear: both;
}

/* The fields of the form use the whole width, even on a wide page. */
.page-pre-registration .form-widget input,
.page-pre-registration .form-widget select,
.page-pre-registration .form-widget textarea {
    inline-size: 100%;
}
