/* ============================================================
   CMS PUBLIC - COMPOSANTS DE FORMULAIRES - CSS TECHNIQUE
   ============================================================

   Structure et comportement des formulaires publics,
   authentification et composants associés.

   L'habillage visuel est géré par les CSS générés
   depuis la CharteGraph.

   ============================================================ */

   /* ============================================================
   CONTACT FORM - STRUCTURE
   ============================================================ */

.contact-form__label-row {
    display: flex;
    align-items: center;
}

.contact-form__help-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}

.contact-form__captcha-inner {
    display: grid;
    grid-template-columns: 72px 1fr 72px;
    align-items: center;
}

.contact-form__captcha-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form__captcha-image img {
    display: block;
    width: 64px;
    max-width: 64px;
    height: auto;
}

.contact-form__captcha-answer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* ============================================================
   AUTH FRONT - STRUCTURE
   ============================================================ */

.cms-auth-page {
    --cms-auth-form-width: 430px;
}

.cms-auth-page *,
.cms-auth-page *::before,
.cms-auth-page *::after {
    box-sizing: border-box;
}

.cms-auth-field label {
    display: block;
}

.cms-auth-field input,
.cms-auth-control {
    width: 100%;
    max-width: var(--cms-auth-form-width);
}

.cms-auth-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* ============================================================
   AUTH FRONT - CAPTCHA - STRUCTURE
   ============================================================ */

.cms-auth-captcha__inner {
    display: grid;
    grid-template-columns: 72px 1fr 72px;
    align-items: center;
    width: 100%;
    max-width: var(--cms-auth-form-width);
}

.cms-auth-captcha__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cms-auth-captcha__image img {
    display: block;
    width: 64px;
    max-width: 64px;
    height: auto;
}

.cms-auth-captcha__answer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* ============================================================
   AUTH FRONT - MOT DE PASSE - STRUCTURE
   ============================================================ */

.cms-auth-password-wrap {
    position: relative;
    width: 100%;
    max-width: var(--cms-auth-form-width);
}

.cms-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);

    border: 0;
    background: transparent;

    cursor: pointer;
    line-height: 1;
}


/* ============================================================
   AUTH FRONT - RESPONSIVE STRUCTURE
   ============================================================ */

@media (max-width: 560px) {
    .cms-auth-captcha__inner {
        grid-template-columns: 56px 1fr;
    }

    .cms-auth-captcha__answer {
        grid-column: 1 / -1;
        align-items: flex-start;
    }

    .cms-auth-captcha__answer-label {
        text-align: left;
    }
}
