:root {
    --lexio-navy-950: #06172d;
    --lexio-navy-900: #092541;
    --lexio-navy-800: #0b2d52;
    --lexio-navy-700: #16436e;
    --lexio-gold-600: #b8892c;
    --lexio-gold-500: #c99a3d;
    --lexio-gold-300: #e4c77d;
    --lexio-slate-950: #0f172a;
    --lexio-slate-700: #334155;
    --lexio-slate-500: #64748b;
    --lexio-slate-300: #cbd5e1;
    --lexio-surface: #f5f3ee;
    --lexio-white: #ffffff;
    --lexio-danger: #b91c1c;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.lexio-register-body {
    min-height: 100vh;
    margin: 0;
    color: var(--lexio-slate-950);
    background: var(--lexio-surface);
    color-scheme: light;
    font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.lexio-register {
    display: grid;
    grid-template-columns: minmax(30rem, 42%) minmax(40rem, 58%);
    min-height: 100vh;
}

/* Panneau gauche --------------------------------------------------------- */

.lexio-register__brand {
    position: sticky;
    top: 0;
    isolation: isolate;
    display: flex;
    height: 100vh;
    min-height: 43rem;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(3rem, 5vw, 5.5rem) clamp(2.8rem, 5vw, 5.5rem) 2.7rem;
    color: #fff;
    background:
        radial-gradient(circle at 76% 64%, rgb(24 77 121 / 76%), transparent 34%),
        radial-gradient(circle at 16% 11%, rgb(201 154 61 / 11%), transparent 23%),
        linear-gradient(145deg, var(--lexio-navy-800), var(--lexio-navy-950) 76%);
}

.lexio-register__grid {
    position: absolute;
    z-index: -3;
    inset: 0;
    opacity: .07;
    background-image:
        linear-gradient(rgb(255 255 255 / 42%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 42%) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, transparent 0, black 24%, black 80%, transparent 100%);
}

.lexio-register__orb {
    position: absolute;
    z-index: -2;
    border: 1px solid rgb(228 199 125 / 12%);
    border-radius: 999px;
}

.lexio-register__orb--one {
    right: -13rem;
    bottom: 7rem;
    width: 34rem;
    height: 34rem;
}

.lexio-register__orb--two {
    right: 6rem;
    bottom: 17rem;
    width: 19rem;
    height: 19rem;
    border-color: rgb(255 255 255 / 7%);
}

.lexio-register__brand-copy {
    position: relative;
    z-index: 3;
    max-width: 40rem;
}

.lexio-register__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--lexio-gold-300);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.lexio-register__eyebrow::before {
    width: 2rem;
    height: 2px;
    border-radius: 999px;
    content: '';
    background: var(--lexio-gold-500);
}

.lexio-register__brand-title {
    margin: 1.55rem 0 0;
    font-size: 70px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.047em;
    text-wrap: balance;
}

.lexio-register__brand-title span {
    color: #ead391;
}

.lexio-register__brand-text {
    max-width: 36rem;
    margin: 1.35rem 0 0;
    color: #bdc9d7;
    font-size: clamp(.98rem, 1.2vw, 1.18rem);
    line-height: 1.65;
}

.lexio-register__benefits {
    display: grid;
    gap: 1.1rem;
    max-width: 28rem;
    margin: 2.2rem 0 0;
    padding: 0;
    list-style: none;
}

.lexio-register__benefits li {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
}

.lexio-register__benefits li > span {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgb(228 199 125 / 22%);
    border-radius: .55rem;
    color: #d5b968;
    background: rgb(255 255 255 / 4%);
    font-size: .55rem;
    font-weight: 700;
}

.lexio-register__benefits strong {
    display: block;
    color: #eef4f9;
    font-size: .86rem;
    font-weight: 650;
}

.lexio-register__benefits p {
    margin: .2rem 0 0;
    color: #8299b2;
    font-size: .72rem;
    line-height: 1.45;
}

.lexio-register__visual {
    position: absolute;
    z-index: 2;
    right: 8%;
    bottom: 5.2rem;
    width: 22rem;
    height: 16rem;
}

.lexio-register__visual-card {
    position: absolute;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgb(20 63 100 / 95%), rgb(7 29 54 / 94%));
    box-shadow: 0 28px 60px rgb(0 0 0 / 29%);
    backdrop-filter: blur(15px);
}

.lexio-register__visual-card--back {
    right: -1rem;
    bottom: 1rem;
    width: 14rem;
    height: 9rem;
    padding: 1.2rem;
    opacity: .58;
    transform: rotate(8deg);
}

.lexio-register__visual-card--back span {
    display: block;
    width: 80%;
    height: .35rem;
    margin: .8rem 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 12%);
}

.lexio-register__visual-card--back span:nth-child(2) {
    width: 56%;
}

.lexio-register__visual-card--back span:nth-child(3) {
    width: 68%;
}

.lexio-register__visual-card--main {
    z-index: 2;
    top: 0;
    left: 0;
    width: 18rem;
    min-height: 13rem;
    padding: 1.25rem;
    transform: rotate(-3deg);
}

.lexio-register__visual-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .8rem;
}

.lexio-register__visual-head i {
    width: .48rem;
    height: .48rem;
    border-radius: 999px;
    background: #f6c85d;
    box-shadow: 0 0 0 4px rgb(246 200 93 / 10%);
}

.lexio-register__visual-icon {
    display: grid;
    width: 2.3rem;
    height: 2.3rem;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: .65rem;
    color: #dfc477;
    background: rgb(255 255 255 / 5%);
}

.lexio-register__visual-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.lexio-register__visual-card small {
    color: #7f97af;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lexio-register__visual-card strong {
    display: block;
    margin-top: .3rem;
    color: #fff;
    font-size: .95rem;
}

.lexio-register__visual-lines {
    margin-top: .9rem;
}

.lexio-register__visual-lines span {
    display: block;
    width: 100%;
    height: 2px;
    margin-top: .45rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 9%);
}

.lexio-register__visual-lines span:nth-child(2) {
    width: 72%;
}

.lexio-register__visual-lines span:nth-child(3) {
    width: 86%;
}

.lexio-register__visual-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid rgb(255 255 255 / 8%);
    color: #8fa3b8;
    font-size: .56rem;
}

.lexio-register__visual-status b {
    padding: .25rem .5rem;
    border-radius: 999px;
    color: #e3c97f;
    background: rgb(201 154 61 / 12%);
    font-size: .52rem;
}

.lexio-register__shield {
    position: absolute;
    z-index: 4;
    right: .7rem;
    top: -.3rem;
    display: grid;
    width: 4.2rem;
    height: 4.2rem;
    place-items: center;
    border: 1px solid rgb(228 199 125 / 25%);
    border-radius: 1.15rem;
    color: #dfc477;
    background: linear-gradient(145deg, #153f63, #071d36);
    box-shadow: 0 20px 38px rgb(0 0 0 / 30%);
    transform: rotate(6deg);
}

.lexio-register__shield svg {
    width: 2.1rem;
    height: 2.1rem;
}

.lexio-register__caption {
    position: relative;
    z-index: 4;
    margin: auto 0 0;
    color: #7f96ad;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

/* Formulaire ------------------------------------------------------------- */

.lexio-register__main {
    display: flex;
    min-height: 100vh;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(2rem, 5vw, 5rem);
    background:
        radial-gradient(circle at 50% 16%, #fff 0, #fff 17%, transparent 55%),
        var(--lexio-surface);
}

.lexio-register__card {
    width: min(100%, 45rem);
    padding: clamp(2rem, 4vw, 3.5rem);
    border: 1px solid #e6e0d5;
    border-radius: 1.5rem;
    background: rgb(255 255 255 / 97%);
    box-shadow:
        0 30px 80px rgb(15 23 42 / 8%),
        0 4px 15px rgb(15 23 42 / 4%);
}

.lexio-register__logo-wrap {
    display: flex;
    justify-content: center;
}

.lexio-register__logo {
    display: block;
    width: auto;
    height: 5.5rem;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.lexio-register__header {
    margin-top: .8rem;
    text-align: center;
}

.lexio-register__overline {
    color: var(--lexio-gold-600);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.lexio-register__header h2 {
    margin: .65rem 0 0;
    color: var(--lexio-navy-950);
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -.035em;
}

.lexio-register__header p {
    max-width: 34rem;
    margin: .7rem auto 0;
    color: var(--lexio-slate-500);
    font-size: .9rem;
    line-height: 1.55;
}

.lexio-stepper {
    display: grid;
    grid-template-columns: max-content minmax(2rem, 1fr) max-content;
    align-items: center;
    margin: 2rem 0 0;
    padding: 1rem 1.1rem;
    border: 1px solid #e8e3da;
    border-radius: .9rem;
    background: #fbfaf7;
    list-style: none;
}

.lexio-stepper__item {
    display: flex;
    align-items: center;
    gap: .65rem;
    opacity: .5;
    transition: opacity 160ms ease;
}

.lexio-stepper__item.is-active,
.lexio-stepper__item.is-complete {
    opacity: 1;
}

.lexio-stepper__item > span {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #64748b;
    background: #fff;
    font-size: .68rem;
    font-weight: 700;
}

.lexio-stepper__item.is-active > span {
    border-color: var(--lexio-navy-800);
    color: #fff;
    background: var(--lexio-navy-800);
    box-shadow: 0 0 0 4px rgb(11 45 82 / 8%);
}

.lexio-stepper__item.is-complete > span {
    border-color: var(--lexio-gold-500);
    color: var(--lexio-navy-950);
    background: #ead596;
}

.lexio-stepper__item strong,
.lexio-stepper__item small {
    display: block;
}

.lexio-stepper__item strong {
    color: var(--lexio-slate-950);
    font-size: .72rem;
}

.lexio-stepper__item small {
    margin-top: .1rem;
    color: #7b8796;
    font-size: .57rem;
}

.lexio-stepper__line {
    height: 1px;
    margin: 0 1rem;
    background: #d9dce1;
}

.lexio-alert {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-top: 1.3rem;
    padding: .8rem .95rem;
    border: 1px solid transparent;
    border-radius: .75rem;
    font-size: .78rem;
    line-height: 1.45;
}

.lexio-alert svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.lexio-alert--error {
    border-color: #fecaca;
    color: #991b1b;
    background: #fef2f2;
}

.lexio-register-form {
    margin-top: 1.7rem;
}

.lexio-step-panel[hidden] {
    display: none;
}

.lexio-step-panel + .lexio-step-panel {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e3da;
}

.lexio-register-form.is-enhanced .lexio-step-panel + .lexio-step-panel {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.lexio-step-panel__header {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1.4rem;
}

.lexio-step-panel__number {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: .68rem;
    color: #9a711f;
    background: #f8eed5;
    font-size: .65rem;
    font-weight: 700;
}

.lexio-step-panel__header h3 {
    margin: 0;
    color: var(--lexio-navy-950);
    font-size: 1.05rem;
    line-height: 1.35;
}

.lexio-step-panel__header p {
    margin: .25rem 0 0;
    color: var(--lexio-slate-500);
    font-size: .75rem;
    line-height: 1.45;
}

.lexio-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1rem;
}

.lexio-field {
    display: grid;
    align-content: start;
    gap: .48rem;
}

.lexio-field--full {
    grid-column: 1 / -1;
}

.lexio-field label {
    color: var(--lexio-slate-950);
    font-size: .79rem;
    font-weight: 650;
}

.lexio-field label sup {
    color: var(--lexio-gold-600);
    font-size: .78em;
}

.lexio-field__control {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    gap: .65rem;
    padding: 0 .9rem;
    border: 1px solid #cbd1d9;
    border-radius: .72rem;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.lexio-field__control:focus-within {
    border-color: var(--lexio-gold-500);
    box-shadow: 0 0 0 3px rgb(201 154 61 / 13%);
}

.lexio-field__control.is-invalid {
    border-color: #dc2626;
}

.lexio-field__control.is-invalid:focus-within {
    box-shadow: 0 0 0 3px rgb(220 38 38 / 10%);
}

.lexio-field__control > svg {
    width: 1.12rem;
    height: 1.12rem;
    flex: 0 0 auto;
    color: #68778a;
}

.lexio-field__control input {
    width: 100%;
    min-width: 0;
    height: 3.15rem;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--lexio-slate-950);
    background: transparent;
    caret-color: var(--lexio-gold-600);
    font-size: .84rem;
    -webkit-text-fill-color: var(--lexio-slate-950);
}

.lexio-field__control input::placeholder {
    color: #94a3b8;
    opacity: 1;
    -webkit-text-fill-color: #94a3b8;
}

.lexio-field__control input:-webkit-autofill,
.lexio-field__control input:-webkit-autofill:hover,
.lexio-field__control input:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--lexio-slate-950);
}

.lexio-field__error {
    margin: 0;
    color: var(--lexio-danger);
    font-size: .7rem;
    line-height: 1.35;
}

.lexio-password-toggle {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: .45rem;
    color: #697789;
    cursor: pointer;
    background: transparent;
}

.lexio-password-toggle:hover {
    color: var(--lexio-navy-800);
    background: #f1f5f9;
}

.lexio-password-toggle svg {
    width: 1.1rem;
    height: 1.1rem;
}

.lexio-account-note {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1.25rem;
    padding: .85rem .95rem;
    border: 1px solid #eadbb8;
    border-radius: .75rem;
    color: #725319;
    background: #fcf7ea;
}

.lexio-account-note > svg {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    color: var(--lexio-gold-600);
}

.lexio-account-note strong {
    display: block;
    font-size: .76rem;
}

.lexio-account-note p {
    margin: .2rem 0 0;
    font-size: .69rem;
    line-height: 1.45;
}

.lexio-password-hint {
    margin: .85rem 0 0;
    color: #718096;
    font-size: .68rem;
    line-height: 1.45;
}

.lexio-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.6rem;
}

.lexio-form-actions--end {
    justify-content: flex-end;
}

.lexio-button {
    display: inline-flex;
    min-height: 3.2rem;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: .78rem 1.15rem;
    border-radius: .72rem;
    cursor: pointer;
    font-size: .84rem;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.lexio-button svg {
    width: 1.15rem;
    height: 1.15rem;
}

.lexio-button--primary {
    min-width: 13rem;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--lexio-navy-800), var(--lexio-navy-950));
    box-shadow: 0 11px 23px rgb(6 23 45 / 20%);
}

.lexio-button--primary svg {
    color: var(--lexio-gold-300);
}

.lexio-button--primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgb(6 23 45 / 26%);
}

.lexio-button--secondary {
    border: 1px solid #d6d9de;
    color: var(--lexio-slate-700);
    background: #fff;
}

.lexio-button--secondary:hover {
    border-color: #aeb6c0;
    color: var(--lexio-navy-950);
    background: #f8fafc;
}

.lexio-button:focus-visible,
.lexio-password-toggle:focus-visible,
.lexio-register__footer a:focus-visible {
    outline: 3px solid rgb(201 154 61 / 38%);
    outline-offset: 3px;
}

.lexio-button:disabled {
    cursor: wait;
    opacity: .7;
}

.lexio-register__footer {
    margin-top: 2rem;
    padding-top: 1.35rem;
    border-top: 1px solid #e9e5dd;
    text-align: center;
}

.lexio-register__footer > p {
    margin: 0;
    color: var(--lexio-slate-500);
    font-size: .78rem;
}

.lexio-register__footer a {
    color: var(--lexio-gold-600);
    font-weight: 700;
    text-decoration: none;
}

.lexio-register__footer a:hover {
    color: #8f651a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lexio-register__security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .85rem;
    color: #7c8794;
    font-size: .68rem;
}

.lexio-register__security svg {
    width: 1.15rem;
    height: 1.15rem;
    color: var(--lexio-gold-600);
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1220px) {
    .lexio-register {
        grid-template-columns: minmax(27rem, 40%) minmax(38rem, 60%);
    }

    .lexio-register__brand {
        padding-inline: 3rem;
    }

    .lexio-register__brand-title {
        font-size: 3.1rem;
    }

    .lexio-register__visual {
        right: 2%;
        transform: scale(.88);
        transform-origin: bottom right;
    }
}

@media (max-height: 820px) and (min-width: 961px) {
    .lexio-register__brand {
        padding-top: 2.8rem;
    }

    .lexio-register__brand-title {
        font-size: 2.7rem;
    }

    .lexio-register__brand-text {
        margin-top: .8rem;
    }

    .lexio-register__benefits {
        gap: .75rem;
        margin-top: 1.3rem;
    }

    .lexio-register__visual {
        bottom: 3rem;
        transform: scale(.73);
        transform-origin: bottom right;
    }
}

@media (max-width: 960px) {
    .lexio-register {
        display: block;
    }

    .lexio-register__brand {
        display: none;
    }

    .lexio-register__main {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .lexio-register__main {
        padding: 0;
        background: #fff;
    }

    .lexio-register__card {
        min-height: 100vh;
        padding: 2rem 1.2rem;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .lexio-register__logo {
        height: 4.8rem;
    }

    .lexio-stepper {
        grid-template-columns: 1fr auto 1fr;
        padding-inline: .8rem;
    }

    .lexio-stepper__item {
        gap: .45rem;
    }

    .lexio-stepper__item:last-child {
        justify-content: flex-end;
    }

    .lexio-stepper__item small {
        display: none;
    }

    .lexio-stepper__line {
        width: 1.5rem;
        margin-inline: .45rem;
    }

    .lexio-form-grid {
        grid-template-columns: 1fr;
    }

    .lexio-field--full {
        grid-column: auto;
    }

    .lexio-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .lexio-form-actions--end {
        flex-direction: column;
    }

    .lexio-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
