: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;
}

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

html {
    min-height: 100%;
}

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

button,
input {
    font: inherit;
}

.lexio-auth {
    display: grid;
    grid-template-columns: minmax(33rem, 52%) minmax(31rem, 48%);
    min-height: 100vh;
    min-height: 100svh;
}

/* Panneau de marque ------------------------------------------------------- */

.lexio-auth__brand {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(3rem, 5.5vw, 5.5rem) clamp(2.75rem, 6vw, 6rem) 2.5rem;
    color: #fff;
    background:
        radial-gradient(circle at 80% 42%, rgb(25 76 119 / 72%), transparent 34%),
        radial-gradient(circle at 17% 12%, rgb(201 154 61 / 10%), transparent 22%),
        linear-gradient(145deg, var(--lexio-navy-800), var(--lexio-navy-950) 75%);
}

.lexio-auth__grid {
    position: absolute;
    z-index: -3;
    inset: 0;
    opacity: .075;
    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 25%, black 78%, transparent 100%);
}

.lexio-auth__orb {
    position: absolute;
    z-index: -2;
    display: block;
    border-radius: 999px;
    filter: blur(1px);
}

.lexio-auth__orb--one {
    right: -12rem;
    bottom: 11rem;
    width: 34rem;
    height: 34rem;
    border: 1px solid rgb(228 199 125 / 13%);
    box-shadow: inset 0 0 8rem rgb(201 154 61 / 4%);
}

.lexio-auth__orb--two {
    right: 6rem;
    bottom: 21rem;
    width: 20rem;
    height: 20rem;
    border: 1px solid rgb(255 255 255 / 7%);
}

.lexio-auth__brand-copy {
    position: relative;
    z-index: 4;
    width: min(100%, 46rem);
}

.lexio-auth__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--lexio-gold-300);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .22em;
    text-transform: uppercase;
}

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

.lexio-auth__brand-title {
    margin: 1.6rem 0 0;
    font-size: 70px;
    font-weight: 720;
    line-height: 1.07;
    letter-spacing: -.047em;
    text-wrap: balance;
}

.lexio-auth__brand-title span {
    color: #e9d18e;
}

.lexio-auth__brand-text {
    max-width: 39rem;
    margin: 1.4rem 0 0;
    color: #bdc9d7;
    font-size: clamp(1rem, 1.25vw, 1.23rem);
    line-height: 1.65;
}

.lexio-auth__values {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.25rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    color: #90a6bd;
    font-size: .65rem;
    font-weight: 750;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.lexio-auth__values li {
    position: relative;
}

.lexio-auth__values li:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -1.25rem;
    width: 3px;
    height: 3px;
    border-radius: 999px;
    content: '';
    background: var(--lexio-gold-500);
    transform: translateY(-50%);
}

/* Illustration SaaS ------------------------------------------------------- */

.lexio-visual {
    position: absolute;
    z-index: 2;
    bottom: 7.5rem;
    left: 50%;
    width: min(90%, 47rem);
    height: min(41vh, 29rem);
    min-height: 22rem;
    transform: translateX(-50%);
}

.lexio-visual__links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: rgb(228 199 125 / 26%);
}

.lexio-legal-card {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 13%);
    border-radius: 1rem;
    color: #dce7f2;
    background: linear-gradient(145deg, rgb(19 61 99 / 92%), rgb(8 31 56 / 88%));
    box-shadow:
        0 24px 55px rgb(0 0 0 / 28%),
        inset 0 1px rgb(255 255 255 / 8%);
    backdrop-filter: blur(16px);
}

.lexio-legal-card strong {
    display: block;
    margin-top: .35rem;
    color: #fff;
    font-size: .92rem;
    font-weight: 680;
    letter-spacing: -.01em;
}

.lexio-card-kicker {
    color: #8198b1;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

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

.lexio-legal-card__topline small {
    color: #768da6;
    font-size: .54rem;
    font-weight: 750;
    letter-spacing: .15em;
}

.lexio-icon-box {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: .65rem;
    color: #d6b767;
    background: rgb(255 255 255 / 5%);
    font-size: .8rem;
    font-style: normal;
    font-weight: 760;
}

.lexio-icon-box svg {
    width: 1.18rem;
    height: 1.18rem;
}

.lexio-icon-box--gold {
    color: #07182f;
    background: linear-gradient(145deg, #e7cf8e, #bc8a2c);
}

.lexio-status-dot {
    width: .48rem;
    height: .48rem;
    border-radius: 999px;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgb(74 222 128 / 10%);
}

.lexio-legal-card--folder {
    top: 10%;
    left: 1%;
    width: 11.5rem;
    padding: 1rem;
    transform: rotate(-4deg);
}

.lexio-avatars {
    display: flex;
    margin-top: .9rem;
}

.lexio-avatars i {
    display: grid;
    width: 1.55rem;
    height: 1.55rem;
    margin-left: -.25rem;
    place-items: center;
    border: 2px solid #123a60;
    border-radius: 999px;
    color: #0b2d52;
    background: #d8c17e;
    font-size: .48rem;
    font-style: normal;
    font-weight: 800;
}

.lexio-avatars i:first-child {
    margin-left: 0;
    color: #fff;
    background: #42698e;
}

.lexio-avatars i:last-child {
    color: #dbe8f4;
    background: #224e75;
}

.lexio-legal-card--scales {
    z-index: 4;
    top: 16%;
    left: 50%;
    width: 15.5rem;
    padding: 1.25rem 1.35rem 1.15rem;
    border-color: rgb(228 199 125 / 21%);
    background: linear-gradient(145deg, rgb(21 64 101 / 96%), rgb(7 28 52 / 96%));
    box-shadow: 0 30px 75px rgb(0 0 0 / 36%);
    transform: translateX(-50%);
}

.lexio-scales {
    display: block;
    width: 10.8rem;
    height: 7.2rem;
    margin: .25rem auto .7rem;
    color: #d4b361;
    filter: drop-shadow(0 8px 18px rgb(201 154 61 / 15%));
}

.lexio-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .75rem;
    border-top: 1px solid rgb(255 255 255 / 8%);
    color: #9fb1c4;
    font-size: .59rem;
}

.lexio-metric b {
    color: #70d59b;
    font-size: .62rem;
}

.lexio-legal-card--calendar {
    top: 4%;
    right: 0;
    width: 11.5rem;
    padding: 1rem;
    transform: rotate(4deg);
}

.lexio-date {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-top: .65rem;
    color: #849bb3;
    font-size: .55rem;
    line-height: 1.45;
}

.lexio-date b {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: .65rem;
    color: #0b2d52;
    background: linear-gradient(145deg, #ead89f, #c18e31);
    font-size: 1rem;
}

.lexio-legal-card--document {
    bottom: 0;
    left: 8%;
    width: 12rem;
    padding: 1rem;
    transform: rotate(3deg);
}

.lexio-pill {
    padding: .23rem .48rem;
    border-radius: 999px;
    color: #87deb0;
    background: rgb(74 222 128 / 10%);
    font-size: .5rem;
    font-weight: 720;
}

.lexio-line {
    display: block;
    width: 100%;
    height: 2px;
    margin-top: .75rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 10%);
}

.lexio-line--short {
    width: 70%;
    margin-top: .4rem;
}

.lexio-signature {
    display: block;
    margin-top: .6rem;
    color: #d7b661;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    text-align: right;
}

.lexio-legal-card--fees {
    right: 6%;
    bottom: 2%;
    width: 12.5rem;
    padding: 1rem;
    transform: rotate(-3deg);
}

.lexio-legal-card--fees strong {
    color: #f0d58c;
    font-size: 1.2rem;
}

.lexio-chart {
    display: block;
    width: 100%;
    height: 2.6rem;
    margin-top: .45rem;
    color: #d2ac52;
}

.lexio-auth__landscape {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 9rem;
    color: #d6b561;
}

.lexio-auth__caption {
    position: relative;
    z-index: 5;
    margin: auto 0 0;
    padding-top: 31rem;
    color: #8198b0;
    font-size: .64rem;
    font-weight: 720;
    letter-spacing: .24em;
    text-transform: uppercase;
}

/* Panneau de connexion ---------------------------------------------------- */

.lexio-auth__panel {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 5rem);
    background:
        radial-gradient(circle at 50% 42%, #fff 0, #fff 24%, transparent 59%),
        var(--lexio-surface);
}

.lexio-auth__card {
    width: min(100%, 34rem);
    padding: clamp(2rem, 4.2vw, 3.7rem);
    border: 1px solid #e7e2d8;
    border-radius: 1.4rem;
    background: rgb(255 255 255 / 97%);
    box-shadow:
        0 30px 78px rgb(15 23 42 / 9%),
        0 4px 15px rgb(15 23 42 / 4%);
}

.lexio-auth__logo-wrap {
    display: flex;
    min-height: 7rem;
    align-items: center;
    justify-content: center;
}

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

.lexio-auth__header {
    margin-top: 1rem;
    text-align: center;
}

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

.lexio-auth__title {
    margin: .7rem 0 0;
    color: var(--lexio-navy-950);
    font-size: clamp(1.85rem, 3vw, 2.4rem);
    font-weight: 760;
    line-height: 1.17;
    letter-spacing: -.038em;
}

.lexio-auth__subtitle {
    margin: .65rem 0 0;
    color: var(--lexio-slate-500);
    font-size: .95rem;
    line-height: 1.5;
}

.lexio-alert {
    margin-top: 1.5rem;
    padding: .8rem 1rem;
    border: 1px solid transparent;
    border-radius: .7rem;
    font-size: .82rem;
    line-height: 1.45;
}

.lexio-alert--success {
    border-color: #a7f3d0;
    color: #065f46;
    background: #ecfdf5;
}

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

.lexio-form {
    display: grid;
    gap: 1.2rem;
    margin-top: 2.1rem;
}

.lexio-form__group {
    display: grid;
    gap: .5rem;
}

.lexio-form__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lexio-form__label {
    color: var(--lexio-slate-950);
    font-size: .86rem;
    font-weight: 650;
}

.lexio-form__label sup {
    top: -.1em;
    color: var(--lexio-gold-600);
    font-size: .85em;
}

.lexio-form__forgot {
    color: var(--lexio-gold-600);
    font-size: .78rem;
    font-weight: 650;
    text-decoration: none;
}

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

.lexio-form__control {
    display: flex;
    min-height: 3.45rem;
    align-items: center;
    gap: .7rem;
    padding: 0 1rem;
    border: 1px solid #c9cfd7;
    border-radius: .75rem;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.lexio-form__control:focus-within {
    border-color: var(--lexio-gold-500);
    box-shadow:
        0 0 0 3px rgb(201 154 61 / 14%),
        0 6px 18px rgb(184 137 44 / 8%);
}

.lexio-form__control--error {
    border-color: #dc2626;
}

.lexio-form__control--error:focus-within {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgb(220 38 38 / 10%);
}

.lexio-form__control svg {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    color: #64748b;
}

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

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

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

.lexio-form__error {
    margin: 0;
    color: #b91c1c;
    font-size: .75rem;
    line-height: 1.35;
}

.lexio-form__remember {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: .6rem;
    color: var(--lexio-slate-700);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 550;
}

.lexio-form__remember input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--lexio-navy-800);
}

.lexio-form__submit {
    display: flex;
    width: 100%;
    min-height: 3.45rem;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    margin-top: .15rem;
    padding: .8rem 1.2rem;
    border: 0;
    border-radius: .75rem;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--lexio-navy-800), var(--lexio-navy-950));
    box-shadow: 0 12px 25px rgb(6 23 45 / 21%);
    font-size: .98rem;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.lexio-form__submit svg {
    width: 1.2rem;
    height: 1.2rem;
    color: var(--lexio-gold-300);
}

.lexio-form__submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgb(6 23 45 / 27%);
}

.lexio-form__submit:focus-visible {
    outline: 3px solid rgb(201 154 61 / 42%);
    outline-offset: 3px;
}

.lexio-auth__security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid #e8e4dc;
    color: #718096;
    font-size: .76rem;
    text-align: center;
}

.lexio-auth__security svg {
    width: 1.3rem;
    height: 1.3rem;
    flex: 0 0 auto;
    color: var(--lexio-gold-600);
}

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

@media (max-width: 1180px) {
    .lexio-auth {
        grid-template-columns: minmax(28rem, 47%) minmax(31rem, 53%);
    }

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

    .lexio-auth__brand-title {
        font-size: 3.2rem;
    }

    .lexio-visual {
        width: 95%;
        transform: translateX(-50%) scale(.88);
    }
}

@media (max-height: 850px) and (min-width: 901px) {
    .lexio-auth__brand {
        padding-top: 3rem;
    }

    .lexio-auth__brand-title {
        font-size: clamp(2.5rem, 3.5vw, 3.6rem);
    }

    .lexio-auth__brand-text {
        margin-top: .9rem;
    }

    .lexio-auth__values {
        margin-top: 1.3rem;
    }

    .lexio-visual {
        bottom: 4.2rem;
        transform: translateX(-50%) scale(.82);
    }

    .lexio-auth__caption {
        padding-top: 23rem;
    }

    .lexio-auth__card {
        padding-block: 2.2rem;
    }

    .lexio-auth__logo {
        height: 5.75rem;
    }
}

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

    .lexio-auth__brand {
        display: none;
    }

    .lexio-auth__panel {
        padding: 1.5rem;
        background:
            radial-gradient(circle at 50% 18%, rgb(201 154 61 / 9%), transparent 25%),
            var(--lexio-surface);
    }
}

@media (max-width: 560px) {
    .lexio-auth__panel {
        align-items: stretch;
        padding: 0;
        background: #fff;
    }

    .lexio-auth__card {
        width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        padding: 2.2rem 1.35rem;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .lexio-auth__logo {
        height: 6.25rem;
    }

    .lexio-auth__title {
        font-size: 1.9rem;
    }

    .lexio-auth__security {
        margin-top: auto;
    }
}

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