:root {
    --cc-auth-accent: #fb4f75;
    --cc-auth-accent-strong: #e73667;
    --cc-auth-violet: #7c4dff;
    --cc-auth-ink: #241d29;
    --cc-auth-muted: #746b79;
    --cc-auth-line: rgba(69, 48, 78, .12);
    --cc-auth-soft: #fff6f9;
    --cc-auth-surface: rgba(255, 255, 255, .92);
    --cc-auth-shadow: 0 30px 90px rgba(67, 34, 64, .14);
}

html[data-theme="dark"] {
    --cc-auth-ink: #f7f0f5;
    --cc-auth-muted: #bdb1ba;
    --cc-auth-line: rgba(255, 255, 255, .10);
    --cc-auth-soft: #211820;
    --cc-auth-surface: rgba(28, 21, 29, .94);
    --cc-auth-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

.cc-auth-body { min-height: 100vh; }

.cc-auth-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 52px);
    overflow: hidden;
    background:
        radial-gradient(circle at 7% 12%, rgba(251, 79, 117, .16), transparent 31%),
        radial-gradient(circle at 94% 90%, rgba(124, 77, 255, .12), transparent 30%),
        linear-gradient(145deg, #fffafb 0%, #fbf8ff 50%, #fff 100%);
}

html[data-theme="dark"] .cc-auth-page {
    background:
        radial-gradient(circle at 7% 12%, rgba(251, 79, 117, .14), transparent 31%),
        radial-gradient(circle at 94% 90%, rgba(124, 77, 255, .13), transparent 30%),
        linear-gradient(145deg, #171116 0%, #1d1722 50%, #151116 100%);
}

.cc-auth-grid {
    position: absolute;
    inset: 0;
    opacity: .22;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(72, 48, 82, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(72, 48, 82, .055) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.cc-auth-orb {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    filter: blur(8px);
    opacity: .42;
    pointer-events: none;
}
.cc-auth-orb--one { left: -240px; top: -190px; background: rgba(251, 79, 117, .18); }
.cc-auth-orb--two { right: -230px; bottom: -210px; background: rgba(124, 77, 255, .14); }

.cc-auth-shell {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(330px, .88fr) minmax(430px, 1.12fr);
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--cc-auth-shadow);
    background: var(--cc-auth-surface);
    backdrop-filter: blur(22px);
}

html[data-theme="dark"] .cc-auth-shell { border-color: rgba(255,255,255,.08); }

.cc-auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 42px;
    padding: clamp(32px, 5vw, 58px);
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 27%),
        linear-gradient(145deg, #ef3c70 0%, #c7397c 48%, #7d4ddb 115%);
}

.cc-auth-brand::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(255,255,255,.04), 0 0 0 72px rgba(255,255,255,.025);
}

.cc-auth-logo {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
    letter-spacing: -.02em;
}
.cc-auth-logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    color: #ef3c70;
    background: #fff;
    box-shadow: 0 8px 22px rgba(72, 18, 48, .16);
}

.cc-auth-brand-copy { position: relative; z-index: 2; }
.cc-kicker,
.cc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .16em;
    font-weight: 800;
}
.cc-kicker { color: rgba(255,255,255,.74); }
.cc-auth-brand h1 {
    max-width: 470px;
    margin: 18px 0 18px;
    font-size: clamp(35px, 4.4vw, 60px);
    line-height: .98;
    letter-spacing: -.055em;
    color: #fff;
}
.cc-auth-brand-copy > p {
    max-width: 500px;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 15px;
    line-height: 1.75;
}

.cc-auth-trust-list {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 12px;
}
.cc-auth-trust-list > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(9px);
}
.cc-auth-trust-list > div > span {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255,255,255,.14);
}
.cc-auth-trust-list p { margin: 0; display: grid; gap: 2px; }
.cc-auth-trust-list strong { font-size: 13px; }
.cc-auth-trust-list small { font-size: 11px; color: rgba(255,255,255,.72); line-height: 1.45; }

.cc-auth-panel {
    display: grid;
    place-items: center;
    padding: clamp(28px, 5vw, 64px);
    background: var(--cc-auth-surface);
}
.cc-auth-panel-inner { width: min(480px, 100%); }
.cc-form-heading { margin-bottom: 28px; }
.cc-form-heading--center { text-align: center; }
.cc-eyebrow { color: var(--cc-auth-accent-strong); }
.cc-form-heading h2 {
    margin: 9px 0 9px;
    color: var(--cc-auth-ink);
    font-size: clamp(29px, 3.5vw, 40px);
    line-height: 1.08;
    letter-spacing: -.04em;
}
.cc-form-heading p {
    margin: 0;
    color: var(--cc-auth-muted);
    font-size: 14px;
    line-height: 1.7;
}
.cc-form-heading strong { color: var(--cc-auth-ink); }

.cc-social-btn,
.cc-primary-btn {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border-radius: 16px;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.cc-social-btn {
    position: relative;
    color: var(--cc-auth-ink);
    border: 1px solid var(--cc-auth-line);
    background: rgba(255,255,255,.7);
}
html[data-theme="dark"] .cc-social-btn { background: rgba(255,255,255,.035); }
.cc-social-btn b { position: absolute; right: 18px; font-size: 18px; }
.cc-social-btn:hover { transform: translateY(-1px); border-color: rgba(251,79,117,.3); box-shadow: 0 10px 28px rgba(64,36,61,.08); }
.cc-google-g {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #4285f4;
    background: #fff;
    border: 1px solid #eee;
    font-weight: 900;
}

.cc-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 23px 0;
    color: var(--cc-auth-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .09em;
}
.cc-divider::before,
.cc-divider::after { content: ""; flex: 1; height: 1px; background: var(--cc-auth-line); }

.cc-auth-form,
.cc-code-form { display: grid; gap: 16px; }
.cc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.cc-floating { position: relative; }
.cc-floating input {
    width: 100%;
    height: 58px;
    padding: 19px 15px 7px;
    border: 1px solid var(--cc-auth-line);
    border-radius: 15px;
    outline: none;
    color: var(--cc-auth-ink);
    background: rgba(255,255,255,.66);
    font: inherit;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
html[data-theme="dark"] .cc-floating input { background: rgba(255,255,255,.035); }
.cc-floating label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cc-auth-muted);
    font-size: 13px;
    pointer-events: none;
    transition: top .16s ease, transform .16s ease, font-size .16s ease, color .16s ease;
}
.cc-floating input:focus,
.cc-floating input:not(:placeholder-shown) {
    border-color: rgba(251,79,117,.54);
    box-shadow: 0 0 0 4px rgba(251,79,117,.08);
    background: var(--cc-auth-surface);
}
.cc-floating input:focus + label,
.cc-floating input:not(:placeholder-shown) + label {
    top: 10px;
    transform: none;
    font-size: 10px;
    font-weight: 750;
    color: var(--cc-auth-accent-strong);
}
.cc-password-field input { padding-right: 52px; }
.cc-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    color: var(--cc-auth-muted);
    background: transparent;
}
.cc-password-toggle:hover { background: var(--cc-auth-soft); color: var(--cc-auth-ink); }

.cc-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--cc-auth-muted);
    font-size: 12px;
}
.cc-form-meta a,
.cc-auth-footer a,
.cc-back-link,
.cc-consent a { color: var(--cc-auth-accent-strong); font-weight: 750; text-decoration: none; }
.cc-check { display: inline-flex; align-items: center; gap: 8px; }
.cc-check input,
.cc-consent input { accent-color: var(--cc-auth-accent); }

.cc-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--cc-auth-muted);
    font-size: 11px;
    line-height: 1.55;
}
.cc-consent input { margin-top: 2px; }

.cc-primary-btn {
    border: 0;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--cc-auth-accent), var(--cc-auth-accent-strong));
    box-shadow: 0 13px 28px rgba(231,54,103,.22);
}
.cc-primary-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(231,54,103,.28); }
.cc-primary-btn:active { transform: translateY(0); }
.cc-primary-btn:disabled { opacity: .62; cursor: not-allowed; transform: none; }

.cc-auth-footer { margin: 22px 0 0; text-align: center; color: var(--cc-auth-muted); font-size: 12px; }
.cc-back-link { display: inline-flex; margin-top: 23px; font-size: 12px; }

.cc-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 13px;
    font-size: 12px;
    line-height: 1.55;
}
.cc-alert--error { color: #a5274d; background: #fff0f4; border: 1px solid #ffd3df; }
html[data-theme="dark"] .cc-alert--error { color: #ffafc5; background: rgba(190,40,88,.12); border-color: rgba(255,100,145,.2); }

.cc-mail-badge {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 18px;
    color: #fff;
    font-size: 22px;
    background: linear-gradient(135deg, var(--cc-auth-accent), var(--cc-auth-violet));
    box-shadow: 0 14px 32px rgba(231,54,103,.21);
}
.cc-email-pill {
    width: fit-content;
    max-width: 100%;
    margin: 16px auto 0;
    padding: 8px 12px;
    border: 1px solid var(--cc-auth-line);
    border-radius: 999px;
    color: var(--cc-auth-ink);
    background: var(--cc-auth-soft);
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.cc-code-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.cc-code-input {
    min-width: 0;
    height: clamp(52px, 7vw, 64px);
    border: 1px solid var(--cc-auth-line);
    border-radius: 15px;
    outline: none;
    text-align: center;
    color: var(--cc-auth-ink);
    background: rgba(255,255,255,.72);
    font: inherit;
    font-size: clamp(21px, 3vw, 27px);
    font-weight: 850;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
html[data-theme="dark"] .cc-code-input { background: rgba(255,255,255,.035); }
.cc-code-input:focus,
.cc-code-input.is-filled { border-color: rgba(251,79,117,.62); box-shadow: 0 0 0 4px rgba(251,79,117,.08); }
.cc-code-input.is-filled { transform: translateY(-1px); }

.cc-code-status { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--cc-auth-muted); }
.cc-code-status-dot { width: 7px; height: 7px; border-radius: 999px; background: #d8cfd7; }
.cc-code-status.is-ready .cc-code-status-dot { background: #2cb67d; box-shadow: 0 0 0 4px rgba(44,182,125,.1); }
.cc-code-submit { min-height: 48px; }

.cc-resend-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
    color: var(--cc-auth-muted);
    font-size: 12px;
}
.cc-inline-form { display: inline; }
.cc-link-btn {
    border: 0;
    padding: 4px 6px;
    cursor: pointer;
    color: var(--cc-auth-accent-strong);
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}
.cc-link-btn:disabled { cursor: not-allowed; color: var(--cc-auth-muted); }

.cc-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 13px;
    border: 1px solid var(--cc-auth-line);
    border-radius: 14px;
    color: var(--cc-auth-muted);
    background: var(--cc-auth-soft);
}
.cc-security-note > span { line-height: 1.4; }
.cc-security-note p { margin: 0; font-size: 11px; line-height: 1.55; }

.cc-password-meter { height: 5px; overflow: hidden; border-radius: 999px; background: var(--cc-auth-line); }
.cc-password-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fb4f75, #7c4dff); transition: width .2s ease; }
.cc-password-hint { margin-top: -8px; color: var(--cc-auth-muted); font-size: 11px; }

@media (max-width: 900px) {
    .cc-auth-page { padding: 16px; align-items: start; }
    .cc-auth-shell { grid-template-columns: 1fr; min-height: auto; border-radius: 25px; }
    .cc-auth-brand { min-height: 230px; padding: 28px; gap: 32px; }
    .cc-auth-brand h1 { max-width: 600px; margin: 12px 0 10px; font-size: clamp(32px, 9vw, 48px); }
    .cc-auth-brand-copy > p { max-width: 620px; }
    .cc-auth-trust-list { display: none; }
    .cc-auth-panel { padding: 34px 24px 38px; }
}

@media (max-width: 540px) {
    .cc-auth-page { padding: 0; display: block; }
    .cc-auth-shell { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
    .cc-auth-brand { min-height: 205px; padding: 23px 20px 28px; }
    .cc-auth-logo { font-size: 17px; }
    .cc-auth-logo-mark { width: 34px; height: 34px; border-radius: 11px; }
    .cc-auth-brand h1 { font-size: 34px; }
    .cc-auth-brand-copy > p { font-size: 13px; line-height: 1.55; }
    .cc-kicker { font-size: 9px; }
    .cc-auth-panel { padding: 30px 18px 38px; align-items: start; }
    .cc-grid-2 { grid-template-columns: 1fr; }
    .cc-form-heading { margin-bottom: 22px; }
    .cc-form-heading h2 { font-size: 30px; }
    .cc-code-inputs { gap: 6px; }
    .cc-code-input { height: 53px; border-radius: 12px; font-size: 21px; }
    .cc-form-meta { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .cc-social-btn,
    .cc-primary-btn,
    .cc-floating input,
    .cc-floating label,
    .cc-code-input,
    .cc-password-meter span { transition: none !important; }
}

/* ==========================================================================
   AUTH COMPACT PREMIUM — 2026-08-19
   Réduit volontairement la hauteur des écrans de soumission, les graisses
   typographiques et les espacements afin d'éviter le scroll inutile.
   ========================================================================== */
.cc-auth-page {
    min-height: 100dvh;
    padding: 12px;
}

.cc-auth-shell {
    width: min(900px, 100%);
    min-height: 0;
    grid-template-columns: minmax(245px, .72fr) minmax(430px, 1.28fr);
    border-radius: 24px;
    box-shadow: 0 20px 58px rgba(67, 34, 64, .12);
}

.cc-auth-brand {
    gap: 18px;
    padding: 28px 26px;
}

.cc-auth-logo {
    gap: 9px;
    font-size: 17px;
    font-weight: 650;
}

.cc-auth-logo-mark {
    width: 33px;
    height: 33px;
    border-radius: 11px;
}

.cc-kicker,
.cc-eyebrow {
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .12em;
}

.cc-auth-brand h1 {
    margin: 10px 0 9px;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.02;
    font-weight: 650;
    letter-spacing: -.045em;
}

.cc-auth-brand-copy > p {
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
}

.cc-auth-trust-list {
    gap: 7px;
}

.cc-auth-trust-list > div {
    gap: 9px;
    padding: 8px 10px;
    border-radius: 12px;
}

.cc-auth-trust-list > div > span {
    flex-basis: 27px;
    width: 27px;
    height: 27px;
    border-radius: 9px;
    font-size: 12px;
}

.cc-auth-trust-list strong {
    font-size: 11px;
    font-weight: 600;
}

.cc-auth-trust-list small {
    font-size: 9px;
    line-height: 1.3;
}

.cc-auth-panel {
    padding: 24px 32px;
}

.cc-auth-panel-inner {
    width: min(455px, 100%);
}

.cc-form-heading {
    margin-bottom: 14px;
}

.cc-form-heading h2 {
    margin: 5px 0 5px;
    font-size: clamp(24px, 2.8vw, 30px);
    line-height: 1.06;
    font-weight: 650;
    letter-spacing: -.035em;
}

.cc-form-heading p {
    font-size: 11.5px;
    line-height: 1.42;
    font-weight: 400;
}

.cc-form-heading strong,
.cc-email-pill {
    font-weight: 600;
}

.cc-social-btn,
.cc-primary-btn {
    min-height: 44px;
    border-radius: 12px;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 600;
}

.cc-social-btn + .cc-social-btn {
    margin-top: 8px;
}

.cc-social-btn b {
    right: 14px;
    font-size: 15px;
    font-weight: 500;
}

.cc-facebook-f,
.cc-google-g {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
}

.cc-facebook-f {
    color: #fff;
    background: #1877f2;
    font-family: Arial, Helvetica, sans-serif;
}

.cc-google-g {
    color: #4285f4;
    background: #fff;
    border: 1px solid #ececec;
}

.cc-social-btn--facebook:hover {
    border-color: rgba(24, 119, 242, .35);
    box-shadow: 0 8px 20px rgba(24, 119, 242, .08);
}

.cc-divider {
    gap: 9px;
    margin: 13px 0;
    font-size: 9px;
    letter-spacing: .07em;
}

.cc-auth-form,
.cc-code-form {
    gap: 9px;
}

.cc-grid-2 {
    gap: 8px;
}

.cc-floating input {
    height: 46px;
    padding: 16px 13px 5px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 400;
}

.cc-floating label {
    left: 13px;
    font-size: 11.5px;
    font-weight: 400;
}

.cc-floating input:focus + label,
.cc-floating input:not(:placeholder-shown) + label {
    top: 7px;
    font-size: 8.5px;
    font-weight: 600;
}

.cc-password-field input {
    padding-right: 45px;
}

.cc-password-toggle {
    right: 6px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 12px;
}

.cc-form-meta {
    gap: 10px;
    font-size: 10.5px;
}

.cc-form-meta a,
.cc-auth-footer a,
.cc-back-link,
.cc-consent a {
    font-weight: 600;
}

.cc-consent {
    gap: 8px;
    font-size: 9.5px;
    line-height: 1.35;
}

.cc-primary-btn {
    box-shadow: 0 9px 20px rgba(231,54,103,.18);
}

.cc-auth-footer {
    margin-top: 12px;
    font-size: 10.5px;
}

.cc-back-link {
    margin-top: 12px;
    font-size: 10.5px;
}

.cc-alert {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 10.5px;
    line-height: 1.4;
}

.cc-mail-badge {
    width: 42px;
    height: 42px;
    margin-bottom: 9px;
    border-radius: 13px;
    font-size: 16px;
    box-shadow: 0 9px 22px rgba(231,54,103,.18);
}

.cc-email-pill {
    margin-top: 9px;
    padding: 5px 9px;
    font-size: 10px;
}

.cc-code-inputs {
    gap: 7px;
}

.cc-code-input {
    height: 48px;
    border-radius: 11px;
    font-size: 19px;
    font-weight: 650;
}

.cc-code-status {
    gap: 6px;
    font-size: 10px;
}

.cc-code-status small {
    font-size: 9.5px;
}

.cc-code-submit {
    min-height: 42px;
}

.cc-resend-zone {
    gap: 5px;
    margin-top: 11px;
    font-size: 10.5px;
}

.cc-link-btn {
    padding: 2px 4px;
    font-size: 10.5px;
    font-weight: 600;
}

.cc-security-note {
    gap: 8px;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 11px;
}

.cc-security-note p {
    font-size: 9.5px;
    line-height: 1.4;
}

.cc-password-meter {
    height: 3px;
}

.cc-password-hint {
    margin-top: -4px;
    font-size: 9.5px;
}

@media (min-width: 901px) and (min-height: 620px) {
    .cc-auth-body {
        overflow: hidden;
    }

    .cc-auth-page {
        height: 100dvh;
    }
}

@media (max-height: 720px) and (min-width: 901px) {
    .cc-auth-page {
        padding: 8px;
    }

    .cc-auth-brand {
        padding: 20px 22px;
    }

    .cc-auth-brand-copy > p,
    .cc-auth-trust-list small {
        display: none;
    }

    .cc-auth-trust-list > div {
        padding: 7px 9px;
    }

    .cc-auth-panel {
        padding: 18px 28px;
    }

    .cc-form-heading {
        margin-bottom: 10px;
    }

    .cc-form-heading p {
        line-height: 1.3;
    }

    .cc-social-btn,
    .cc-primary-btn {
        min-height: 41px;
    }

    .cc-floating input {
        height: 43px;
    }

    .cc-auth-form,
    .cc-code-form {
        gap: 7px;
    }
}

@media (max-width: 900px) {
    .cc-auth-page {
        padding: 8px;
        align-items: center;
    }

    .cc-auth-shell {
        grid-template-columns: 1fr;
        width: min(560px, 100%);
        border-radius: 20px;
    }

    .cc-auth-brand {
        min-height: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 18px;
        gap: 12px;
    }

    .cc-auth-brand-copy,
    .cc-auth-trust-list {
        display: none;
    }

    .cc-auth-panel {
        padding: 20px 24px 22px;
    }
}

@media (max-width: 540px) {
    .cc-auth-body {
        min-height: 100dvh;
    }

    .cc-auth-page {
        min-height: 100dvh;
        padding: 0;
        display: grid;
        place-items: stretch;
    }

    .cc-auth-shell {
        width: 100%;
        min-height: 100dvh;
        border-radius: 0;
        grid-template-rows: 52px minmax(0, 1fr);
    }

    .cc-auth-brand {
        min-height: 52px;
        height: 52px;
        padding: 8px 15px;
    }

    .cc-auth-logo {
        font-size: 15px;
        font-weight: 600;
    }

    .cc-auth-logo-mark {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .cc-auth-panel {
        min-height: 0;
        padding: 12px 15px 14px;
        align-items: center;
    }

    .cc-auth-panel-inner {
        width: min(430px, 100%);
    }

    .cc-form-heading {
        margin-bottom: 9px;
    }

    .cc-form-heading h2 {
        margin: 3px 0;
        font-size: 22px;
        font-weight: 620;
    }

    .cc-form-heading p {
        font-size: 10.5px;
        line-height: 1.28;
    }

    .cc-eyebrow {
        font-size: 8px;
    }

    .cc-social-btn,
    .cc-primary-btn {
        min-height: 40px;
        border-radius: 11px;
        font-size: 11.5px;
    }

    .cc-social-btn + .cc-social-btn {
        margin-top: 6px;
    }

    .cc-divider {
        margin: 9px 0;
    }

    .cc-auth-form,
    .cc-code-form {
        gap: 7px;
    }

    .cc-grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .cc-floating input {
        height: 42px;
        padding: 15px 11px 4px;
        border-radius: 10px;
        font-size: 11.5px;
    }

    .cc-floating label {
        left: 11px;
        font-size: 10.5px;
    }

    .cc-floating input:focus + label,
    .cc-floating input:not(:placeholder-shown) + label {
        top: 6px;
        font-size: 7.5px;
    }

    .cc-consent {
        font-size: 8.5px;
        line-height: 1.25;
    }

    .cc-form-meta {
        font-size: 9.5px;
    }

    .cc-auth-footer {
        margin-top: 8px;
        font-size: 9.5px;
    }

    .cc-mail-badge {
        width: 36px;
        height: 36px;
        margin-bottom: 6px;
        border-radius: 11px;
        font-size: 14px;
    }

    .cc-code-inputs {
        gap: 5px;
    }

    .cc-code-input {
        height: 43px;
        border-radius: 9px;
        font-size: 17px;
    }

    .cc-code-status small,
    .cc-security-note p,
    .cc-password-hint {
        font-size: 8.5px;
    }

    .cc-security-note {
        margin-top: 8px;
        padding: 7px 9px;
    }

    .cc-resend-zone {
        margin-top: 8px;
        font-size: 9.5px;
    }

    .cc-back-link {
        margin-top: 8px;
        font-size: 9.5px;
    }
}

@media (max-width: 390px), (max-height: 650px) {
    .cc-auth-panel {
        padding-top: 8px;
        padding-bottom: 9px;
    }

    .cc-form-heading p,
    .cc-security-note {
        display: none;
    }

    .cc-form-heading {
        margin-bottom: 7px;
    }

    .cc-social-btn,
    .cc-primary-btn {
        min-height: 38px;
    }

    .cc-floating input {
        height: 40px;
    }

    .cc-auth-form,
    .cc-code-form {
        gap: 6px;
    }
}


/* ========================================================================== 
   AUTH READABILITY TUNE — 2026-08-19
   Remonte légèrement la lisibilité sans réintroduire le scroll.
   Les champs OTP retrouvent une forme quasi carrée et un placeholder 0.
   ========================================================================== */
.cc-form-heading h2 {
    font-size: clamp(26px, 2.9vw, 32px);
    font-weight: 620;
}

.cc-form-heading p {
    font-size: 12.5px;
    line-height: 1.45;
}

.cc-social-btn,
.cc-primary-btn {
    font-size: 13px;
    font-weight: 580;
}

.cc-floating input {
    font-size: 13.5px;
}

.cc-floating label {
    font-size: 12px;
}

.cc-form-meta,
.cc-auth-footer,
.cc-back-link,
.cc-resend-zone {
    font-size: 11.5px;
}

.cc-consent,
.cc-security-note p,
.cc-password-hint {
    font-size: 10px;
}

.cc-code-inputs {
    width: min(100%, 384px);
    margin-inline: auto;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.cc-code-input {
    width: 100%;
    height: auto;
    min-height: 54px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 13px;
    font-size: clamp(21px, 2.5vw, 24px);
    font-weight: 600;
    line-height: 1;
}

.cc-code-input::placeholder {
    color: rgba(116, 107, 121, .38);
    opacity: 1;
    font-weight: 400;
}

html[data-theme="dark"] .cc-code-input::placeholder {
    color: rgba(255, 255, 255, .28);
}

.cc-code-status small {
    font-size: 10.5px;
}

@media (max-height: 720px) and (min-width: 901px) {
    .cc-form-heading h2 {
        font-size: 25px;
    }

    .cc-form-heading p {
        font-size: 11.5px;
    }

    .cc-code-input {
        min-height: 50px;
        font-size: 21px;
    }
}

@media (max-width: 540px) {
    .cc-form-heading h2 {
        font-size: 24px;
        font-weight: 600;
    }

    .cc-form-heading p {
        font-size: 11.5px;
        line-height: 1.3;
    }

    .cc-social-btn,
    .cc-primary-btn {
        font-size: 12.5px;
    }

    .cc-floating input {
        font-size: 12.5px;
    }

    .cc-floating label {
        font-size: 11px;
    }

    .cc-form-meta,
    .cc-auth-footer,
    .cc-back-link,
    .cc-resend-zone {
        font-size: 10.5px;
    }

    .cc-code-inputs {
        gap: 6px;
    }

    .cc-code-input {
        min-height: 49px;
        border-radius: 11px;
        font-size: 20px;
    }

    .cc-code-status small {
        font-size: 9.5px;
    }
}

@media (max-width: 390px), (max-height: 650px) {
    .cc-form-heading h2 {
        font-size: 22px;
    }

    .cc-code-input {
        min-height: 46px;
        font-size: 19px;
    }
}

/* AUTH V4 — champs plus confortables sur l'ensemble du nouveau module d'authentification. */
.cc-floating input{
    min-height:62px!important;
    padding:20px 48px 7px 15px!important;
    border-radius:15px!important;
    font-size:15px!important;
}
.cc-floating label{
    left:15px!important;
    font-size:13px!important;
}
.cc-floating input:focus + label,
.cc-floating input:not(:placeholder-shown) + label{
    top:9px!important;
    font-size:9.5px!important;
}
.cc-password-field input{padding-right:54px!important}
.cc-code-input{
    min-height:60px!important;
    border-radius:14px!important;
    font-size:25px!important;
}
@media(max-width:540px){
    .cc-floating input{min-height:58px!important;font-size:14.5px!important}
    .cc-floating label{font-size:12.5px!important}
    .cc-code-input{min-height:53px!important;font-size:22px!important}
}
