/* TRC Connexion WhatsApp — formulaires, page de connexion, popup.
   Les couleurs viennent des réglages (variables --trc-*). */

:root {
    --trc-primary: #0d6e55;
    --trc-link: #0d6e55;
    --trc-primary-ink: #ffffff;
    --trc-ink: #17262f;
    --trc-bg: #f1f4f2;
    --trc-side: #0f3a33;
    --trc-radius: 14px;
    --trc-font: 'Onest', system-ui, sans-serif;
}

.trc-auth,
.trc-lp,
.trc-modal {
    --trc-surface: #ffffff;
    --trc-muted: color-mix(in srgb, var(--trc-ink) 62%, #ffffff);
    --trc-line: color-mix(in srgb, var(--trc-ink) 16%, #ffffff);
    --trc-danger: #b42318;
    --trc-r: min(var(--trc-radius), 26px);
    --trc-ring: 0 0 0 4px color-mix(in srgb, var(--trc-primary) 18%, transparent);
}

/* ------------------------------------------------------------------ */
/* Formulaires                                                         */
/* ------------------------------------------------------------------ */

.trc-auth {
    font-family: var(--trc-font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--trc-ink);
    text-align: left;
    -webkit-font-smoothing: antialiased;
}
.trc-auth *, .trc-auth *::before, .trc-auth *::after { box-sizing: border-box; }
.trc-auth [hidden] { display: none !important; }

.trc-auth .trc-title {
    font-family: inherit;
    font-size: clamp(26px, 2.6vw, 32px);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.022em;
    color: var(--trc-ink);
    margin: 0 0 8px;
    text-transform: none;
}
.trc-auth .is-code .trc-sub { display: none; }
.trc-auth .trc-sub {
    margin: 0 0 28px;
    color: var(--trc-muted);
    font-size: 15px;
    max-width: 40ch;
}

.trc-auth .trc-field { margin: 0 0 18px; }
.trc-auth .trc-field > label {
    display: block;
    margin: 0 0 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--trc-ink);
    letter-spacing: 0;
    text-transform: none;
}
.trc-auth .trc-opt { font-weight: 400; color: var(--trc-muted); }
.trc-auth .trc-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--trc-muted); }

.trc-auth .trc-input,
.trc-auth .trc-phone__box {
    width: 100%;
    height: 52px;
    margin: 0;
    background: var(--trc-surface);
    border: 1.5px solid var(--trc-line);
    border-radius: var(--trc-r);
    color: var(--trc-ink);
    font: 500 16px/1 var(--trc-font);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.trc-auth .trc-input { padding: 0 16px; outline: none; }
.trc-auth .trc-input:focus,
.trc-auth .trc-phone__box:focus-within {
    border-color: var(--trc-primary);
    box-shadow: var(--trc-ring);
    outline: none;
}
.trc-auth .is-invalid .trc-input,
.trc-auth .is-invalid .trc-phone__box,
.trc-auth .trc-code.is-invalid .trc-code__cell { border-color: var(--trc-danger); }

/* Téléphone : indicatif (sélecteur natif superposé) + numéro */
.trc-auth .trc-phone__box { display: flex; align-items: stretch; overflow: hidden; }
.trc-auth .trc-phone__pick {
    position: relative;
    display: flex;
    flex: none;
    border-right: 1.5px solid var(--trc-line);
}
.trc-auth .trc-phone__cc {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px 0 15px;
    font-weight: 600;
    font-size: 15.5px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--trc-ink);
}
.trc-auth .trc-phone__flag { font-size: 19px; line-height: 1; }
.trc-auth .trc-phone__cc svg { color: var(--trc-muted); }
.trc-auth .trc-phone__select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 16px;
    appearance: none;
    border: 0;
}
.trc-auth .trc-phone__pick:focus-within .trc-phone__cc { color: var(--trc-link); }
.trc-auth .trc-phone__pick.is-single { cursor: default; }
.trc-auth .trc-phone__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 16px 0 14px;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    color: var(--trc-ink);
    font: 500 17px/1 var(--trc-font);
    letter-spacing: .015em;
    font-variant-numeric: tabular-nums;
}
.trc-auth .trc-phone__input::placeholder,
.trc-auth .trc-input::placeholder { color: color-mix(in srgb, var(--trc-ink) 34%, #ffffff); font-weight: 400; }

/* Mot de passe */
.trc-auth .trc-pass__box { position: relative; }
.trc-auth .trc-pass__box .trc-input { padding-right: 92px; }
.trc-auth .trc-pass__toggle {
    position: absolute;
    top: 6px;
    right: 6px;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: calc(var(--trc-r) * .7);
    background: transparent;
    color: var(--trc-muted);
    font: 600 13px/1 var(--trc-font);
    cursor: pointer;
}
.trc-auth .trc-pass__toggle:hover { color: var(--trc-ink); background: color-mix(in srgb, var(--trc-ink) 6%, transparent); }

/* Identifiant téléphone / e-mail */
.trc-auth .trc-ident[data-mode="phone"] .trc-ident__email,
.trc-auth .trc-ident[data-mode="email"] .trc-phone { display: none; }
.trc-auth .trc-link.trc-ident__toggle { display: block; width: fit-content; margin: -8px 0 18px auto; font-size: 13.5px; }

/* Boutons */
.trc-auth .trc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: var(--trc-r);
    background: var(--trc-primary);
    color: var(--trc-primary-ink);
    font: 600 16px/1 var(--trc-font);
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .15s ease, transform .08s ease;
}
.trc-auth .trc-btn:hover { background: color-mix(in srgb, var(--trc-primary) 86%, #000000); color: var(--trc-primary-ink); }
.trc-auth .trc-btn:active { transform: translateY(1px); }
.trc-auth .trc-btn:focus-visible { outline: none; box-shadow: var(--trc-ring); }
.trc-auth .trc-btn[disabled] { opacity: .65; cursor: progress; }
.trc-auth .trc-btn.is-loading .trc-wa-ico { display: none; }
.trc-auth .trc-btn.is-loading::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: trc-spin .7s linear infinite;
}

.trc-auth .trc-link {
    display: inline;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--trc-link);
    font: 600 14px/1.4 var(--trc-font);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: text-decoration-color .15s ease;
}
.trc-auth .trc-link:hover { text-decoration-color: currentColor; background: none; color: var(--trc-link); }
.trc-auth .trc-link:focus-visible { outline: 2px solid var(--trc-link); outline-offset: 3px; border-radius: 3px; }
.trc-auth .trc-link[disabled] { color: var(--trc-muted); cursor: default; text-decoration: none; font-weight: 500; }
.trc-auth .trc-alt,
.trc-auth .trc-resend { display: block; margin: 18px auto 0; }

.trc-auth .trc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -4px 0 22px;
}
.trc-auth .trc-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--trc-ink);
    cursor: pointer;
}
.trc-auth .trc-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--trc-primary); }
.trc-auth .trc-terms { margin: 4px 0 22px; }
.trc-auth .trc-terms a { color: var(--trc-ink); text-decoration: underline; text-underline-offset: 3px; }
.trc-auth .trc-terms.is-invalid { color: var(--trc-danger); }

.trc-auth .trc-switch {
    margin: 30px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--trc-line);
    color: var(--trc-muted);
    font-size: 14.5px;
}

/* Messages */
.trc-auth .trc-status {
    margin: -10px 0 22px;
    padding: 12px 14px;
    border-radius: calc(var(--trc-r) * .7);
    border: 1px solid color-mix(in srgb, var(--trc-danger) 28%, #ffffff);
    background: color-mix(in srgb, var(--trc-danger) 7%, #ffffff);
    color: color-mix(in srgb, var(--trc-danger) 80%, #000000);
    font-size: 14px;
    line-height: 1.45;
}
.trc-auth .trc-status.is-success {
    border-color: color-mix(in srgb, var(--trc-primary) 30%, #ffffff);
    background: color-mix(in srgb, var(--trc-primary) 8%, #ffffff);
    color: color-mix(in srgb, var(--trc-link) 80%, #000000);
}
.trc-auth .trc-status .trc-link { display: block; margin-top: 6px; color: inherit; text-decoration-color: currentColor; }

/* Code */
.trc-auth .trc-sent {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 0 0 18px;
    color: var(--trc-muted);
    font-size: 14.5px;
}
.trc-auth .trc-sent strong { color: var(--trc-ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trc-auth .trc-code {
    display: grid;
    grid-template-columns: repeat(var(--trc-len, 6), minmax(0, 1fr));
    gap: clamp(6px, 1.6vw, 10px);
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    min-width: 0;
}
.trc-auth .trc-code__cell {
    width: 100%;
    height: 60px;
    margin: 0;
    padding: 0;
    text-align: center;
    border: 1.5px solid var(--trc-line);
    border-radius: var(--trc-r);
    background: var(--trc-surface);
    color: var(--trc-ink);
    font: 600 26px/1 var(--trc-font);
    font-variant-numeric: tabular-nums;
    caret-color: var(--trc-primary);
    box-shadow: none;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.trc-auth .trc-code__cell:focus { border-color: var(--trc-primary); box-shadow: var(--trc-ring); }
.trc-auth .trc-code__cell.is-filled { border-color: color-mix(in srgb, var(--trc-ink) 45%, #ffffff); }
.trc-auth .trc-code.is-shaking { animation: trc-shake .32s ease; }

.trc-auth .trc-actions { display: grid; gap: 14px; justify-items: center; }
.trc-auth--done .trc-btn { width: 100%; }

.trc-auth .trc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.trc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.trc-inline { box-sizing: border-box; width: 100%; }
.trc-inline--plain .trc-auth { max-width: 440px; }
.trc-inline--card {
    max-width: 488px;
    margin: clamp(32px, 7vw, 88px) auto;
    padding: 0 16px;
}
.trc-inline--card .trc-auth {
    padding: clamp(26px, 4vw, 42px);
    background: var(--trc-surface);
    border: 1px solid var(--trc-line);
    border-radius: calc(var(--trc-r) * 1.5);
    box-shadow: 0 1px 2px rgba(23, 38, 47, .05), 0 22px 44px -30px rgba(23, 38, 47, .35);
}
.trc-inline--card .trc-auth .trc-switch { margin-top: 26px; }
@media (max-width: 520px) {
    .trc-inline--card { margin: 24px auto 40px; padding: 0 12px; }
    .trc-inline--card .trc-auth { padding: 24px 20px; }
}

@keyframes trc-spin { to { transform: rotate(360deg); } }
@keyframes trc-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ------------------------------------------------------------------ */
/* Page de connexion                                                   */
/* ------------------------------------------------------------------ */

body.trc-lp-body { margin: 0; background: var(--trc-bg); }

.trc-lp {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--trc-font);
    color: var(--trc-ink);
    background: var(--trc-bg);
}
.trc-lp *, .trc-lp *::before, .trc-lp *::after { box-sizing: border-box; }
.trc-lp--embedded { min-height: 0; border-radius: calc(var(--trc-r) * 1.4); overflow: hidden; }

.trc-lp__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(20px, 4vw, 48px);
}
.trc-lp__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.trc-lp__back {
    color: var(--trc-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.trc-lp__back:hover { color: var(--trc-ink); text-decoration: underline; text-underline-offset: 3px; }
.trc-lp__card {
    width: 100%;
    max-width: 404px;
    margin: auto;
    padding: 40px 0;
}
.trc-lp__help { margin: 26px 0 0; font-size: 14px; color: var(--trc-muted); white-space: pre-line; }
.trc-lp__legal { margin: 0; font-size: 13px; }
.trc-lp__legal--main { text-align: center; color: var(--trc-muted); }

.trc-logo { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.trc-logo__img { display: block; width: auto; max-width: 180px; max-height: 42px; height: auto; object-fit: contain; }
.trc-logo__text { font-weight: 700; font-size: 19px; letter-spacing: -0.015em; }

/* — Split : panneau de marque + formulaire — */
.trc-lp--split { grid-template-columns: minmax(380px, 44%) 1fr; }
.trc-lp--split .trc-lp__main { background: var(--trc-surface); }
.trc-lp--split .trc-lp__bar .trc-logo { visibility: hidden; }
.trc-lp--split .trc-lp__legal--main { display: none; }

.trc-lp__side { display: none; }
.trc-lp--split .trc-lp__side {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: clamp(32px, 4.5vw, 64px);
    background: var(--trc-side);
    color: #ffffff;
    overflow: hidden;
}
.trc-lp--split .trc-lp__side::after {
    /* halo discret derrière la conversation */
    content: "";
    position: absolute;
    right: -20%;
    bottom: -25%;
    width: 80%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--trc-primary) 55%, transparent), transparent);
    opacity: .55;
    pointer-events: none;
}
.trc-lp__side > * { position: relative; z-index: 1; }
.trc-lp__side .trc-logo__img { max-height: 40px; }
.trc-lp__pitch { margin-top: auto; }
.trc-lp__headline {
    margin: 0 0 16px;
    max-width: 13ch;
    font-size: clamp(34px, 3.5vw, 50px);
    font-weight: 650;
    line-height: 1.04;
    letter-spacing: -0.034em;
}
.trc-lp__text { margin: 0; max-width: 34ch; font-size: 16.5px; line-height: 1.5; opacity: .78; }
.trc-lp__side .trc-lp__legal { opacity: .55; }
.trc-lp__visual { margin-bottom: auto; }
.trc-lp--visual-none .trc-lp__visual { display: none; }
.trc-lp--visual-image .trc-chat { display: none; }
.trc-lp--visual-image .trc-lp__visual {
    aspect-ratio: 4 / 3;
    max-width: 440px;
    border-radius: calc(var(--trc-r) * 1.6);
    background: var(--trc-image, none) center / cover no-repeat, color-mix(in srgb, #ffffff 10%, transparent);
}

/* La conversation WhatsApp : ce que l'utilisateur va recevoir */
.trc-chat {
    width: 100%;
    max-width: 340px;
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #efeae2;
    color: #111b21;
    font-family: var(--trc-font);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
    transform: rotate(-1.5deg);
}
.trc-chat__head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 16px;
    background: #f0f2f5;
}
.trc-chat__avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--trc-primary);
    color: var(--trc-primary-ink);
    font-weight: 700;
    font-size: 15px;
    flex: none;
}
.trc-chat__avatar img { width: 100%; height: 100%; object-fit: cover; }
.trc-chat__who { display: grid; line-height: 1.25; min-width: 0; }
.trc-chat__who strong { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trc-chat__who small { font-size: 12px; color: #667781; }
.trc-chat__body { position: relative; min-height: 132px; padding: 18px 16px 22px; }
.trc-chat__msg,
.trc-chat__typing {
    position: relative;
    width: fit-content;
    max-width: 92%;
    background: #ffffff;
    border-radius: 2px 12px 12px 12px;
    box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.trc-chat__msg { padding: 9px 12px 9px; font-size: 14.5px; line-height: 1.45; }
.trc-chat__msg p { margin: 0 46px 2px 0; }
.trc-chat__msg b { font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.trc-chat__time { position: absolute; right: 10px; top: 32px; font-size: 11px; color: #667781; }
.trc-chat__cta {
    display: block;
    margin: 9px -12px -2px;
    padding: 9px 12px 0;
    border-top: 1px solid #e9edef;
    text-align: center;
    color: #027eb5;
    font-weight: 600;
    font-size: 14px;
}
.trc-chat__typing { position: absolute; display: flex; gap: 4px; padding: 13px 14px; }
.trc-chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: trc-dot 1s infinite ease-in-out; }
.trc-chat__typing i:nth-child(2) { animation-delay: .15s; }
.trc-chat__typing i:nth-child(3) { animation-delay: .3s; }

/* Un seul moment animé : l'indicateur de saisie, puis le message arrive. */
@media (prefers-reduced-motion: no-preference) {
    .trc-chat__typing { animation: trc-out .2s ease 1.5s forwards; }
    .trc-chat__msg { animation: trc-in .35s cubic-bezier(.2, .9, .3, 1.2) 1.6s both; transform-origin: top left; }
}
@media (prefers-reduced-motion: reduce) {
    .trc-chat__typing { display: none; }
}
@keyframes trc-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes trc-out { to { opacity: 0; visibility: hidden; } }
@keyframes trc-in { from { opacity: 0; transform: scale(.94) translateY(4px); } to { opacity: 1; transform: none; } }

/* — Centré : carte sur fond coloré — */
.trc-lp--centered .trc-lp__card,
.trc-lp--fullscreen .trc-lp__card {
    max-width: 452px;
    padding: clamp(28px, 4vw, 44px);
    background: var(--trc-surface);
    border-radius: calc(var(--trc-r) * 1.5);
    box-shadow: 0 1px 2px rgba(23, 38, 47, .06), 0 24px 48px -28px rgba(23, 38, 47, .28);
}
.trc-lp--centered .trc-lp__card { margin: auto; }

/* — Plein écran : photo en fond, carte décalée à gauche — */
.trc-lp--fullscreen {
    background:
        linear-gradient(100deg, color-mix(in srgb, var(--trc-side) 82%, transparent) 0%, color-mix(in srgb, var(--trc-side) 35%, transparent) 70%),
        var(--trc-image, none) center / cover no-repeat,
        var(--trc-side);
}
.trc-lp--fullscreen .trc-lp__main { padding-inline: clamp(20px, 7vw, 120px); }
.trc-lp--fullscreen .trc-lp__card { margin: auto auto auto 0; }
.trc-lp--fullscreen .trc-lp__bar,
.trc-lp--fullscreen .trc-lp__back,
.trc-lp--fullscreen .trc-lp__legal--main { color: #ffffff; }
.trc-lp--fullscreen .trc-lp__bar .trc-logo [data-trc-logo] { filter: none; }
.trc-lp--fullscreen .trc-lp__legal--main { text-align: left; opacity: .7; }

/* — Minimal : formulaire seul — */
.trc-lp--minimal { background: var(--trc-surface); }
.trc-lp--minimal .trc-lp__card { max-width: 392px; }

/* Mobile */
@media (max-width: 900px) {
    .trc-lp--split { grid-template-columns: 1fr; }
    .trc-lp--split .trc-lp__side { display: none; }
    .trc-lp--split .trc-lp__bar .trc-logo { visibility: visible; }
    .trc-lp--split .trc-lp__legal--main { display: block; }
    .trc-lp--fullscreen .trc-lp__card { margin: auto; }
}
@media (max-width: 520px) {
    .trc-lp__main { padding: 18px 20px 22px; }
    .trc-lp__card { margin: clamp(28px, 7vh, 72px) auto auto; padding: 0 0 32px; }
    .trc-lp--centered .trc-lp__card,
    .trc-lp--fullscreen .trc-lp__card { margin-top: clamp(20px, 5vh, 48px); }
    .trc-lp--centered .trc-lp__card,
    .trc-lp--fullscreen .trc-lp__card { padding: 26px 20px; }
    .trc-auth .trc-code__cell { height: 54px; font-size: 23px; }
}

/* ------------------------------------------------------------------ */
/* Popup                                                               */
/* ------------------------------------------------------------------ */

.trc-modal, .trc-modal *, .trc-modal *::before, .trc-modal *::after { box-sizing: border-box; }
.trc-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 16px; }
.trc-modal[hidden] { display: none; }
.trc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--trc-ink) 55%, transparent);
    backdrop-filter: blur(3px);
}
.trc-modal__dialog {
    position: relative;
    width: min(452px, 100%);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 22px clamp(22px, 4vw, 36px) 34px;
    background: var(--trc-surface);
    border-radius: calc(var(--trc-r) * 1.5);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
}
.trc-modal__top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 18px; }
.trc-modal__top .trc-logo__img { max-height: 34px; }
.trc-modal__close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0 -8px 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--trc-ink);
    cursor: pointer;
}
.trc-modal__close:hover { background: color-mix(in srgb, var(--trc-ink) 7%, transparent); }
.trc-modal__close:focus-visible { outline: none; box-shadow: var(--trc-ring); }
.trc-modal .trc-auth .trc-title { font-size: 26px; }

@media (prefers-reduced-motion: no-preference) {
    .trc-modal.is-open .trc-modal__dialog { animation: trc-pop .22s cubic-bezier(.2, .8, .3, 1); }
    .trc-modal.is-open .trc-modal__backdrop { animation: trc-fade .2s ease; }
}
@media (max-width: 560px) {
    .trc-modal { padding: 0; align-items: end; }
    .trc-modal__dialog {
        width: 100%;
        max-height: 92dvh;
        border-radius: calc(var(--trc-r) * 1.5) calc(var(--trc-r) * 1.5) 0 0;
        padding-bottom: max(28px, env(safe-area-inset-bottom));
    }
    @media (prefers-reduced-motion: no-preference) {
        .trc-modal.is-open .trc-modal__dialog { animation: trc-sheet .26s cubic-bezier(.2, .8, .3, 1); }
    }
}
@keyframes trc-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes trc-sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes trc-fade { from { opacity: 0; } to { opacity: 1; } }

body.trc-modal-open { overflow: hidden; }
