/* Connexion / inscription. */
body.auth-page {
    background: #fff;
}
.nx-auth {
    --nx-purple: #523adc;
    --nx-purple-text: #5331c5;
    --nx-gray: #808790;
    --nx-tab-bg: #eceefc;
    min-height: 100vh;
    display: flex;
    background: radial-gradient(105% 85% at 84% -10%, #523adc, #9c9ded 18%, #c1c3f4 38%, #dddff9 60%, #fff 78%);
    font-family: Outfit, Arial, sans-serif;
}
.nx-auth-inner {
    width: 100%;
    max-width: 1512px;
    margin: 0 auto;
    padding: 40px 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

/* Colonne de gauche */
.nx-story {
    width: 422px;
    flex: 0 0 auto;
}
.nx-story-logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px;
    font-size: 22px;
    line-height: 20px;
    vertical-align: top;
    color: #242034;
}
.nx-story-logo .brand-emblem {
    width: 20px;
    height: 20px;
}
.nx-story h2 {
    margin-top: 24px;
    font-size: 44px;
    line-height: 51.92px;
    font-weight: 500;
    letter-spacing: -2.64px;
    color: var(--nx-purple-text);
}
.nx-story p {
    margin-top: 24px;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -1px;
    color: var(--nx-gray);
}
.nx-stats {
    margin-top: 24px;
    display: flex;
    gap: 88px;
}
.nx-stats strong {
    display: block;
    font-size: 44px;
    line-height: 44px;
    font-weight: 500;
    letter-spacing: -2.64px;
    color: var(--nx-purple);
}
.nx-stats span {
    display: block;
    margin-top: 6px;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -1px;
    color: var(--nx-gray);
}

/* Carte */
.nx-card {
    width: 480px;
    flex: 0 0 auto;
    padding: 20px 24px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(48, 31, 140, .08);
}
.nx-card h1 {
    font-size: 30px;
    line-height: 40px;
    font-weight: 500;
    letter-spacing: -1.6px;
    color: #0c2052;
}
.nx-tabs {
    margin-top: 9px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 4px;
    border-radius: 16px;
    background: var(--nx-tab-bg);
}
.nx-tabs a {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -.42px;
    color: #656c75;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}
.nx-tabs a.active {
    background: #fff;
    color: var(--nx-purple);
}
.nx-google {
    margin-top: 24px;
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #9c9ded;
    border-radius: 16px;
    background: #fff;
    font: 500 14px/20px Outfit, Arial, sans-serif;
    letter-spacing: -.42px;
    color: #414349;
    cursor: pointer;
}
a.nx-google {
    text-decoration: none;
}
.nx-google:hover {
    background: #f7f7fe;
}
.nx-divider {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    letter-spacing: -.42px;
    color: #656c75;
}
.nx-divider:before,
.nx-divider:after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7e8;
}
.nx-errors {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fdecee;
    color: #b42335;
    font-size: 13px;
    line-height: 18px;
}
.nx-form {
    margin-top: 16px;
}
.nx-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.nx-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.nx-field label {
    display: block;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    letter-spacing: -.36px;
    color: #242528;
}
.nx-input {
    position: relative;
    margin-top: 4px;
}
.nx-input input {
    width: 100%;
    height: 44px;
    padding: 0 12px 0 40px;
    border: 1px solid #cdd0d4;
    border-radius: 16px;
    background: #fff;
    font: 400 14px/20px Outfit, Arial, sans-serif;
    color: #3a3c3f;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.nx-input input[type="password"],
.nx-input input[data-was-password] {
    padding-right: 40px;
}
.nx-input input::placeholder {
    color: #a3a8b0;
}
.nx-input input:focus {
    border-color: var(--nx-purple);
    box-shadow: 0 0 0 3px rgba(82, 58, 220, .12);
}
.nx-input input[aria-invalid="true"] {
    border-color: #e5484d;
}
.nx-input-icon {
    position: absolute;
    left: 10px;
    top: 12px;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}
.nx-input-icon svg,
.nx-eye svg {
    display: block;
}
.nx-eye {
    position: absolute;
    right: 4px;
    top: 6px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: none;
    color: #242528;
    cursor: pointer;
}
.nx-eye .eye-on,
.nx-eye[aria-pressed="true"] .eye-off {
    display: none;
}
.nx-eye[aria-pressed="true"] .eye-on {
    display: block;
}
.nx-forgot {
    align-self: flex-end;
    padding: 0;
    border: 0;
    background: none;
    font: 400 12px/16px Outfit, Arial, sans-serif;
    letter-spacing: -.36px;
    color: var(--nx-purple-text);
    text-decoration: underline;
    cursor: pointer;
}
.nx-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 25px;
    cursor: pointer;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    letter-spacing: -.36px;
    color: var(--nx-gray);
}
.nx-check input {
    position: absolute;
    opacity: 0;
    width: 16px;
    height: 16px;
    margin: 0;
}
.nx-box {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border: 1px solid #cdd0d4;
    border-radius: 2px;
    background: #fff;
    color: #fff;
    transition: background-color .15s, border-color .15s;
}
.nx-box svg {
    width: 60%;
    height: 60%;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .15s, transform .15s;
}
.nx-check input:checked + .nx-box {
    background: var(--nx-purple);
    border-color: var(--nx-purple);
}
.nx-check input:checked + .nx-box svg {
    opacity: 1;
    transform: scale(1);
}
.nx-check input:focus-visible + .nx-box {
    box-shadow: 0 0 0 3px rgba(82, 58, 220, .2);
}
.nx-check a,
.nx-terms a {
    color: var(--nx-purple-text);
    text-decoration: underline;
}
.nx-submit {
    margin-top: 16px;
    width: 100%;
    height: 48px;
    padding: 0 40px;
    border: 0;
    border-radius: 16px;
    background: var(--nx-purple);
    font: 500 16px/24px Outfit, Arial, sans-serif;
    letter-spacing: -.48px;
    color: #fff;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.nx-submit:hover {
    background: #4630c4;
}
.nx-form:has(.nx-check) .nx-submit {
    margin-top: 32px;
}
.nx-submit:disabled {
    background: var(--nx-tab-bg);
    color: #656c75;
    cursor: not-allowed;
}
.nx-terms {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: -.36px;
    color: var(--nx-gray);
}

.nx-success {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #e3f7ea;
    color: #1f7a45;
    font-size: 13px;
    line-height: 18px;
}
.nx-lead {
    margin-top: 8px;
    font-size: 14px;
    line-height: 20px;
    color: var(--nx-gray);
}
.nx-back {
    margin-top: 20px;
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--nx-purple-text);
    text-decoration: underline;
}

/* Écrans plus petits : la colonne de texte passe au-dessus de la carte. */
@media (max-width: 1180px) {
    .nx-auth-inner {
        padding: 40px 48px;
    }
}
@media (max-width: 980px) {
    .nx-auth-inner {
        flex-direction: column;
        justify-content: center;
        padding: 40px 16px;
    }
    .nx-story {
        width: 100%;
        max-width: 480px;
    }
    .nx-stats {
        gap: 40px;
    }
}
@media (max-width: 520px) {
    .nx-card {
        width: 100%;
        padding: 20px 16px;
    }
    .nx-story h2 {
        font-size: 34px;
        line-height: 40px;
        letter-spacing: -1.8px;
    }
    .nx-story p,
    .nx-stats span {
        font-size: 17px;
    }
    .nx-stats strong {
        font-size: 34px;
        line-height: 36px;
    }
    .nx-stats {
        gap: 28px;
    }
}

/* Mobile : le contenu commence en haut, sous le sélecteur de langue */
@media (max-width: 980px) {
    .nx-auth-inner {
        justify-content: flex-start;
        padding-top: 76px;
    }
}

/* Mobile : logo, puis le formulaire, puis le texte de présentation et les chiffres. */
@media (max-width: 980px) {
    .nx-auth-inner {
        gap: 0;
        padding-top: 28px;
    }
    .nx-story {
        display: contents;
    }
    .nx-story-logo,
    .nx-story h2,
    .nx-story p,
    .nx-stats {
        width: 100%;
        max-width: 480px;
    }
    .nx-story-logo {
        order: 0;
        margin-bottom: 20px;
    }
    .nx-card {
        order: 1;
    }
    .nx-story h2 {
        order: 2;
        margin-top: 40px;
    }
    .nx-story p {
        order: 3;
    }
    .nx-stats {
        order: 4;
    }
}
@media (max-width: 520px) {
    .nx-story-logo,
    .nx-story h2,
    .nx-story p,
    .nx-stats {
        max-width: none;
    }
}

/* Mobile : seulement le logo et le formulaire */
@media (max-width: 980px) {
    .nx-story h2,
    .nx-story p,
    .nx-stats {
        display: none;
    }
}
