/* Allovia — pages de connexion (connexion, mot de passe oublié, nouveau mot de passe) */
:root {
    --marine: #0a1d47;
    --roi: #0b3fd6;
    --roi-fonce: #0833ad;
    --cyan: #13c4ef;
    --or: #e3a94f;
    --texte: #0a1d47;
    --texte-doux: #4c5b78;
    --texte-pale: #7a879f;
    --trait: #dde5f2;
    --fond: #f5f9fe;
    --carte: #ffffff;
    --rouge: #c8372b;
    --rouge-pale: #fdf0ee;
    --vert: #12a36b;
    --vert-pale: #e6f7ef;
    --p-bleu: #e4eeff;
    --p-vert: #dff6ec;
    --p-violet: #ede9ff;
    --i-bleu: #2563eb;
    --i-vert: #12a36b;
    --i-violet: #6d4fe0;
    --police: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
    --focus: 0 0 0 4px rgba(11, 63, 214, .18);
}

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

html { -webkit-text-size-adjust: 100%; }

body.auth {
    margin: 0;
    min-height: 100vh;
    font-family: var(--police);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--texte);
    background:
        radial-gradient(60rem 40rem at 52% -10%, rgba(19, 196, 239, .10), transparent 60%),
        radial-gradient(50rem 36rem at 0% 100%, rgba(37, 99, 235, .07), transparent 60%),
        var(--fond);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

/* ------------------------------------------------------------ mise en page */
.stage {
    min-height: 100vh;
    max-width: 1680px;
    margin: 0 auto;
    padding: 48px clamp(20px, 4vw, 72px);
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(340px, .95fr) minmax(400px, 540px);
    grid-template-areas: "pitch visual card";
    align-items: center;
    column-gap: clamp(16px, 2vw, 32px);
}

.pitch { grid-area: pitch; max-width: 430px; }
.visual { grid-area: visual; margin: 0 -12px; align-self: center; justify-self: center; width: calc(100% + 24px); max-width: 640px; }
.card { grid-area: card; }

.visual img {
    width: 100%;
    -webkit-mask-image: radial-gradient(ellipse 85% 82% at 50% 48%, #000 74%, transparent 100%);
            mask-image: radial-gradient(ellipse 85% 82% at 50% 48%, #000 74%, transparent 100%);
}

/* ------------------------------------------------------------ argumentaire */
.pitch__logo { width: 216px; margin-bottom: 40px; }

.pitch__kicker {
    margin: 0 0 14px;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--i-bleu);
}

.pitch__title {
    margin: 0 0 22px;
    font-size: clamp(2.4rem, 3.6vw, 3.6rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.035em;
    color: var(--marine);
}
.pitch__title span { color: var(--roi); }
.pitch__title b { color: var(--or); }

.pitch__lead {
    margin: 0 0 36px;
    max-width: 36ch;
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--texte-doux);
}

.perks { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 22px; }
.perk { display: flex; align-items: center; gap: 18px; }
.perk strong { display: block; font-size: 1.0625rem; font-weight: 700; color: var(--marine); }
.perk span:last-child { font-size: .9375rem; color: var(--texte-doux); }

.perk__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
}
.perk__icon svg { width: 26px; height: 26px; }
.perk__icon--bleu { background: var(--p-bleu); fill: var(--i-bleu); stroke: var(--i-bleu); }
.perk__icon--bleu svg { stroke: none; }
.perk__icon--vert { background: var(--p-vert); stroke: var(--i-vert); }
.perk__icon--violet { background: var(--p-violet); stroke: var(--i-violet); }

.pitch__secure {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: .875rem;
    color: var(--texte-pale);
}
.pitch__secure svg { width: 18px; height: 18px; fill: #8d9bb5; }

/* ------------------------------------------------------------ carte */
.card {
    background: var(--carte);
    border: 1px solid #e8eef8;
    border-radius: 28px;
    padding: clamp(32px, 4vw, 60px) clamp(24px, 3.6vw, 64px);
    box-shadow: 0 30px 80px -30px rgba(10, 29, 71, .18), 0 2px 6px rgba(10, 29, 71, .04);
}

.card__logo { width: 216px; margin-bottom: 36px; }

.card__title {
    margin: 0 0 6px;
    font-size: clamp(1.9rem, 2.4vw, 2.375rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--marine);
}

.card__lead { margin: 0 0 32px; font-size: 1.0625rem; color: var(--texte-doux); }

.card__foot {
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px solid #edf1f7;
    text-align: center;
    font-size: .9375rem;
    color: var(--texte-doux);
}

/* ------------------------------------------------------------ formulaire */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: .9375rem;
    font-weight: 700;
    color: var(--marine);
}

.input {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--trait);
    border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus-within { border-color: var(--roi); box-shadow: var(--focus); }
.input--error { border-color: var(--rouge); }
.input--error:focus-within { box-shadow: 0 0 0 4px rgba(200, 55, 43, .14); }

.input > svg {
    flex: none;
    width: 22px;
    height: 22px;
    margin-left: 16px;
    stroke: #5b6a86;
}

.input input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 54px;
    padding: 0 16px 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    font: 500 1rem var(--police);
    color: var(--marine);
}
.input input::placeholder { color: #9aa6bb; font-weight: 400; }

.reveal {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-right: 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    stroke: #3d4b66;
}
.reveal svg { width: 22px; height: 22px; }
.reveal:hover { background: #f1f5fc; }
.reveal:focus-visible { outline: 0; box-shadow: var(--focus); }
.reveal .reveal__off,
.reveal[aria-pressed="true"] .reveal__on { display: none; }
.reveal[aria-pressed="true"] .reveal__off { display: block; }

.field__error { margin: 8px 0 0; font-size: .875rem; font-weight: 500; color: var(--rouge); }

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    margin-top: -4px;
}

.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .875rem; color: var(--texte-doux); }
.row .link { font-size: .875rem; white-space: nowrap; }
.check input {
    appearance: none;
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 1.5px solid #b9c4d6;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.check input::after {
    content: "";
    width: 11px;
    height: 6px;
    border: solid #fff;
    border-width: 0 0 2.5px 2.5px;
    transform: translateY(-1px) rotate(-45deg) scale(0);
    transition: transform .12s;
}
.check input:checked { background: var(--roi); border-color: var(--roi); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible { outline: 0; box-shadow: var(--focus); }

.link {
    font-weight: 600;
    color: var(--roi);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.link:hover { color: var(--roi-fonce); text-decoration-thickness: 2px; }
.link:focus-visible { outline: 0; border-radius: 4px; box-shadow: var(--focus); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 58px;
    margin-top: 6px;
    border: 0;
    border-radius: 999px;
    background: var(--roi);
    color: #fff;
    font: 700 1.0625rem var(--police);
    cursor: pointer;
    box-shadow: 0 14px 30px -14px rgba(11, 63, 214, .65);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.btn svg { width: 22px; height: 22px; stroke: currentColor; transition: transform .15s; }
.btn:hover { background: var(--roi-fonce); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(11, 63, 214, .45); }
.btn--busy { opacity: .75; cursor: progress; }

.notice { margin: -8px 0 24px; padding: 14px 16px; border-radius: 12px; font-size: .9375rem; line-height: 1.5; }
.notice--ok { background: var(--vert-pale); color: #0d6b47; border: 1px solid #c3ead8; }

/* ------------------------------------------------------------ adaptatif */
@media (max-width: 1240px) {
    .stage {
        grid-template-columns: minmax(300px, 1fr) minmax(380px, 500px);
        grid-template-areas: "pitch card";
        column-gap: clamp(32px, 5vw, 72px);
    }
    .visual { display: none; }
}

@media (max-width: 880px) {
    .stage {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "card" "pitch";
        row-gap: 48px;
        padding: 24px 16px 40px;
        align-items: start;
    }
    .card { max-width: 520px; width: 100%; justify-self: center; border-radius: 22px; }
    .card__logo { width: 168px; margin-bottom: 28px; }
    .pitch { max-width: 520px; width: 100%; justify-self: center; }
    .pitch__logo { display: none; }
    .pitch__title { font-size: 2.1rem; }
    .pitch__lead { font-size: 1rem; margin-bottom: 28px; }
    .perk__icon { width: 50px; height: 50px; border-radius: 14px; }
    .perk__icon svg { width: 22px; height: 22px; }
}

@media (max-width: 420px) {
    .card { padding: 28px 20px; }
    .row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
