/* =========================================================
   Registration request (COM-06 / PRO-02), Figma «00.1a REGISTRO» (1482-1113) and its confirmation
   «00.1b CONFIRMACIÓN REGISTRO» (1482-1180) on phones; from 768px, «02. REGISTRO» (1563-3273) and
   «03. MENSAJE DE CONFIRMACIÓN» (1565-3457). Header, card and logos: shared/css/access-page.css.
   ========================================================= */

/* Phones: 40px between the header and the form, instead of the gap of the login. */
.access-page--registration {
    gap: 0;
}

.access-page--registration .access-page__main {
    padding: var(--token-space-5) var(--token-space-3);
}

.registration {
    gap: var(--token-space-6);
}

.registration__subtitle {
    font-size: 20px;
    font-weight: var(--token-font-weight-bold);
    line-height: 21px;
}

.registration__fields {
    display: flex;
    flex-direction: column;
    gap: var(--token-space-6);
}

/* Productor and Comprador side by side, 40px apart. */
.registration__profiles {
    display: flex;
    gap: var(--token-space-5);
}

/* Out of sight but still in the form, so bots that skip hidden fields still fill it. */
.registration__trap {
    width: 1px;
    height: 1px;
    overflow: hidden;
    position: absolute;
    left: -10000px;
}

/* The phone frames have no logos. */
.registration__footer {
    display: none;
}

/* =========================================================
   Confirmation
   ========================================================= */

.registration-confirmation {
    gap: var(--token-space-8);
}

/* display: flex of the card would override the hidden attribute. */
.registration-confirmation[hidden],
.registration[hidden] {
    display: none;
}

.registration-confirmation:focus {
    outline: none;
}

/* 294px wide in Figma, so it breaks in two balanced lines. */
.registration-confirmation__title {
    max-width: 294px;
    align-self: center;
}

.registration-confirmation__text {
    font-size: 16px;
    font-weight: var(--token-font-weight-medium);
    line-height: 21px;
    color: var(--font-color-mobile-description);
    text-align: center;
}

/* =========================================================
   Desktop (from 768px): card of the login, 32px between blocks, no subtitle, options one per row
   ========================================================= */

@media (min-width: 768px) {
    .access-page--registration .access-page__main {
        padding: 88px var(--token-space-3);
    }

    .registration,
    .registration__fields {
        gap: var(--token-space-8);
    }

    /* Black in both desktop frames, unlike the dark grey title of the login. */
    .access-page--registration .access-page__title {
        color: var(--font-color-title);
    }

    .registration__subtitle {
        display: none;
    }

    .registration__profiles {
        flex-direction: column;
        gap: var(--token-space-3);
    }

    .registration__footer {
        display: flex;
    }

    /* «03. MENSAJE DE CONFIRMACIÓN» (1565-3457): no card, the 327px column on the grey page. */
    .registration-confirmation {
        width: 327px;
        background-color: transparent;
        padding: 0;
    }
}
