.auth-page {
    --auth-ink: #153c4b;
    --auth-muted: #526775;
    --auth-blue: #073d50;
    --auth-ivory: #e6d9c2;
    --auth-line: #dbe5eb;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f4f8fb;
    color: var(--auth-ink);
    font: 16px/1.6 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.auth-page * { box-sizing: border-box; }
.auth-page :where(h1, h2, h3, p) { margin: 0; }
.auth-page h1, .auth-page h2 { text-wrap: balance; }
.auth-page :where(a) { color: inherit; }
.auth-page :where(button, input) { font: inherit; }
.auth-page a:focus-visible, .auth-page button:focus-visible, .auth-page input:focus-visible, .auth-page summary:focus-visible { outline: 3px solid #a56832; outline-offset: 4px; }
.auth-page .site-interne a:focus-visible { outline-color: var(--auth-ivory); }
.auth-main { width: min(1040px, 100%); padding: 46px 28px 42px; margin-inline: auto; flex: 1; }
.auth-heading { margin-bottom: 30px; }
.auth-eyebrow { color: #437385; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px; }
.auth-heading h1 { color: var(--auth-blue); font-size: clamp(1.9rem, 3.5vw, 2.65rem); font-weight: 750; line-height: 1.15; letter-spacing: -.045em; }
.auth-heading > p:last-child { margin-top: 13px; color: var(--auth-muted); font-size: .95rem; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.auth-card { padding: 31px 34px; border: 1px solid var(--auth-line); border-radius: 14px; background: #fff; box-shadow: 0 12px 30px #153c4b08; }
.auth-card h2, .auth-formation h2 { color: var(--auth-blue); font-size: 1.55rem; font-weight: 750; line-height: 1.25; letter-spacing: -.035em; }
.auth-card-intro { margin-top: 8px; color: var(--auth-muted); font-size: .86rem; }
.auth-form { margin-top: 24px; }
.auth-field + .auth-field { margin-top: 18px; }
.auth-field label { display: block; font-size: .84rem; font-weight: 650; margin-bottom: 7px; }
.auth-field input { display: block; width: 100%; min-width: 0; min-height: 49px; padding: 11px 13px; color: var(--auth-ink); background: #f8fafc; border: 1px solid #a2b5bf; border-radius: 7px; font-size: 1rem; line-height: 1.5; }
.auth-field input::placeholder { color: #6e7f88; opacity: 1; }
.auth-field input:focus { border-color: #126b80; }
.auth-password { position: relative; }
.auth-password input { padding-right: 55px; }
.auth-password input::-ms-reveal { display: none; }
.auth-reveal { position: absolute; top: 50%; right: 3px; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #526775; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.auth-reveal:hover { color: var(--auth-blue); background: #e8eff3; }
.auth-page .auth-reveal:focus-visible { outline-offset: -3px; }
.auth-reveal[hidden] { display: none; }
.auth-field-help { margin-top: 7px; color: var(--auth-muted); font-size: .76rem; line-height: 1.5; }
.auth-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; width: 100%; padding: 11px 16px; border: 1px solid transparent; border-radius: 7px; font-size: .9rem; font-weight: 650; line-height: 1.5; text-align: center; text-decoration: none; cursor: pointer; }
.auth-button > span { margin-left: auto; }
.auth-button-primary { color: #fff; background: var(--auth-blue); }
.auth-button-primary:hover { background: #12647a; }
.auth-form > .auth-button { margin-top: 23px; }
.auth-button-provider { color: var(--auth-ink); background: #fff; border-color: #afc1c9; }
.auth-button-provider:hover { background: #f4f8fb; border-color: #7996a3; }
.auth-button-provider i { font-size: 1.08rem; }
.auth-divider { display: flex; align-items: center; gap: 13px; color: #657c87; font-size: .76rem; margin-block: 23px 18px; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--auth-line); }
.auth-providers { display: grid; gap: 10px; }
.auth-card-footer { margin-top: 25px; padding-top: 19px; border-top: 1px solid var(--auth-line); font-size: .8rem; color: var(--auth-muted); }
.auth-card-footer a { color: #126b80; font-weight: 650; text-underline-offset: 3px; }
.auth-formation { padding: 30px; background: #e8f1ed; border: 1px solid #d9e6df; border-radius: 14px; }
.auth-tag { display: inline-block; padding: 5px 9px; margin-bottom: 18px; color: #42675d; background: #d9e9df; border-radius: 4px; font-size: .65rem; line-height: 1.5; letter-spacing: .04em; font-weight: 700; text-transform: uppercase; }
.auth-formation > p:not(.auth-tag) { color: #4d6964; margin-top: 14px; font-size: .88rem; }
.auth-formation input { background: #fff; }
.auth-button-secondary { color: var(--auth-blue); background: #fff; border-color: #94ada5; }
.auth-button-secondary:hover { background: #f7fbf8; border-color: #537b6e; }
.auth-formation > .auth-button { margin-top: 23px; }
.auth-formation .auth-note { font-size: .77rem; line-height: 1.55; margin-top: 17px; }
.auth-help { margin-top: 22px; padding-top: 15px; border-top: 1px solid #cbded3; font-size: .78rem; }
.auth-help summary { min-height: 36px; padding-block: 7px; cursor: pointer; font-weight: 600; }
.auth-help p { color: #4d6964; padding-top: 7px; }
.auth-next { margin-top: 29px; padding-top: 24px; border-top: 1px solid #cbded3; }
.auth-next h3 { font-size: .94rem; font-weight: 650; }
.auth-next p { margin-top: 10px; color: #4d6964; font-size: .84rem; }
.auth-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 21px; }
.auth-check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--auth-blue); }
.auth-check label { font-size: .8rem; color: var(--auth-muted); }
.auth-feedback { margin-bottom: 23px; padding: 15px 18px; border: 1px solid; border-radius: 8px; font-size: .9rem; }
.auth-feedback p + p { margin-top: 7px; }
.auth-feedback-error { color: #802a20; background: #fbeee9; border-color: #e9c1b6; }
.auth-feedback-warning { color: #70521d; background: #fff6df; border-color: #e7d29e; }
.auth-feedback-success { color: #265b43; background: #e9f5ed; border-color: #bed9c7; }
.auth-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(1040px, 100%); margin: 0 auto; padding: 0 28px 27px; color: #607580; font-size: .77rem; }
.auth-footer a { text-underline-offset: 3px; }
.auth-page #formation-title { scroll-margin-top: 88px; }
@media (max-width: 760px) {
    .auth-main { padding: 32px 22px; }
    .auth-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .auth-heading { margin-bottom: 25px; }
    .auth-card, .auth-formation { padding: 27px; }
    .auth-footer { padding: 0 22px 24px; flex-wrap: wrap; gap: 9px; }
}
@media (max-width: 400px) {
    .auth-main { padding-inline: 16px; }
    .auth-card, .auth-formation { padding: 23px 19px; }
    .auth-page header.site-interne .si-wrap { padding-inline: 16px; gap: 10px; }
    .auth-page header.site-interne .si-brand { gap: 7px; font-size: 1rem; }
    .auth-page header.site-interne nav a { padding: 7px 8px; font-size: .8rem; }
    .auth-card-footer a { display: inline-block; }
}
