/* doc-project | public/assets/css/auth-modal.css | styles dédiés de la modale d authentification client responsive accessible et cohérente avec la vitrine */
.auth-modal[hidden] { display: none !important; }
.auth-modal {
    position: fixed;
    z-index: 1500;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 32px);
}
.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(35, 23, 15, .72);
    backdrop-filter: blur(7px);
    animation: auth-backdrop-in 180ms ease-out;
}
.auth-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    max-height: min(90vh, 820px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: clamp(26px, 5vw, 44px);
    border: 1px solid rgba(197, 77, 44, .16);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0, rgba(197, 77, 44, .11), transparent 34%),
        #fffaf2;
    color: #2c211a;
    box-shadow: 0 32px 90px rgba(35, 23, 15, .38);
    animation: auth-panel-in 220ms cubic-bezier(.2, .8, .2, 1);
    outline: none;
}
.auth-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #eadccd;
    border-radius: 50%;
    background: rgba(255, 255, 255, .78);
    color: #2c211a;
    font: inherit;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease;
}
.auth-modal__close:hover,
.auth-modal__close:focus-visible { background: #fff; transform: rotate(4deg); }
.auth-modal__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .12em;
}
.auth-modal__brand-mark {
    display: grid;
    min-width: 38px;
    min-height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #c54d2c;
    color: #fff;
    font-size: .65rem;
    letter-spacing: .04em;
}
.auth-modal__header { padding-right: 36px; }
.auth-modal__eyebrow {
    margin: 0 0 7px;
    color: #a34227;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.auth-modal__header h2 {
    margin: 0;
    font-size: clamp(2rem, 7vw, 3.15rem);
    line-height: .98;
    letter-spacing: -.035em;
}
.auth-modal__header > p:last-child {
    max-width: 48ch;
    margin: 14px 0 0;
    color: #78685c;
    line-height: 1.55;
}
.auth-modal__message {
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 13px;
    background: #fff0ec;
    color: #8b2f1a;
    font-weight: 750;
}
.auth-modal__message[data-kind="success"] { background: #eef8ef; color: #275f31; }
.auth-modal__view { margin-top: 26px; }
.auth-modal__view[hidden] { display: none !important; }
.auth-modal__form { display: grid; gap: 16px; }
.auth-modal__form--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-modal__field { display: grid; min-width: 0; gap: 7px; }
.auth-modal__field--wide { grid-column: 1 / -1; }
.auth-modal__field label { font-size: .9rem; font-weight: 850; }
.auth-modal__field input {
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #ddcbbb;
    border-radius: 13px;
    background: rgba(255, 255, 255, .9);
    color: #2c211a;
    font: inherit;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.auth-modal__field input:focus {
    border-color: #c54d2c;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(197, 77, 44, .11);
}
.auth-modal__submit { width: 100%; min-height: 52px; margin-top: 2px; }
.auth-modal__submit[disabled] { cursor: wait; opacity: .68; }
.auth-modal__links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    color: #78685c;
    font-size: .92rem;
}
.auth-modal__links p { margin: 0; }
.auth-modal__links button {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #a34227;
    font: inherit;
    font-weight: 850;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
}
.auth-modal__links--center { justify-content: center; }
.auth-modal__notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #eadccd;
    border-radius: 14px;
    background: rgba(255, 255, 255, .66);
    color: #66574d;
    font-size: .92rem;
    line-height: 1.5;
}
.auth-modal__success { text-align: center; }
.auth-modal__success-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #e7f4e9;
    color: #275f31;
    font-size: 1.8rem;
    font-weight: 900;
}
.auth-modal__success h3 { margin: 0; font-size: 1.45rem; }
.auth-modal__success p { margin: 10px auto 22px; color: #78685c; line-height: 1.55; }
body.auth-modal-open { overflow: hidden; }
@keyframes auth-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes auth-panel-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 620px) {
    .auth-modal { place-items: end center; padding: 8px; }
    .auth-modal__panel {
        width: 100%;
        max-height: calc(100dvh - 16px);
        padding: 28px 20px max(24px, env(safe-area-inset-bottom));
        border-radius: 24px 24px 18px 18px;
    }
    .auth-modal__brand { margin-bottom: 18px; }
    .auth-modal__form--grid { grid-template-columns: 1fr; }
    .auth-modal__field--wide { grid-column: auto; }
    .auth-modal__links { align-items: flex-start; flex-direction: column; }
    .auth-modal__links--center { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-modal__backdrop, .auth-modal__panel { animation: none; }
    .auth-modal__close { transition: none; }
}