/* GUPI — Alphabonus | Landing + Auth premium */
@import url("./gupi-theme.css");

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

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-sans); color: var(--gray-800); background: var(--ivory); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nav-container { padding: 0 32px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
section[id], footer[id] { scroll-margin-top: calc(var(--nav-height) + 16px); }

.scroll-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: linear-gradient(90deg, var(--flame-500), var(--gold-500)); z-index: 9999; transition: width 0.1s linear; }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-height); transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out); border-bottom: 1px solid transparent; }
.nav::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,14,26,.62), rgba(9,14,26,.28) 60%, transparent); opacity: 0; transition: opacity 0.4s var(--ease-out); pointer-events: none; }
.nav--on-dark::before { opacity: 1; }
.nav--on-dark .nav-logo-name { color: #fff; }
.nav--on-dark .nav-logo-sub { color: rgba(255,255,255,.72); }
.nav--on-dark .nav-link { color: rgba(255,255,255,.86); }
.nav--on-dark .nav-link:hover, .nav--on-dark .nav-link.active { color: var(--gold-300); }
.nav--on-dark .nav-link::after { background: var(--gold-400); }
.nav--on-dark .nav-mobile-toggle span { background: #fff; }
.nav--on-dark .nav-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
.nav--on-dark .nav-actions .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.12); }
.nav.scrolled { background: rgba(253,252,249,.88); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 1px 3px rgba(15, 23, 38, 0.08), 0 8px 24px rgba(15, 23, 38, 0.06); border-bottom-color: rgba(15,23,38,.07); }
.nav.scrolled::before { opacity: 0; }
.nav-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; height: 100%; position: relative; z-index: 1; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--flame-500), var(--flame-400)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 14px; letter-spacing: 0.5px; box-shadow: 0 4px 12px rgba(252, 70, 0, 0.3); transition: transform 0.3s var(--ease-spring); }
.nav-logo:hover .nav-logo-icon { transform: scale(1.1) rotate(-5deg); }
.nav-logo-name { font-family: var(--font-serif); font-weight: 700; font-size: 18px; color: var(--navy-900); line-height: 1.1; }
.nav-logo-sub { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy-500); }
.nav-links { display: none; align-items: center; justify-content: center; justify-self: center; gap: 26px; }
.nav-link { font-size: 13.5px; font-weight: 600; white-space: nowrap; color: var(--gray-600); text-decoration: none; position: relative; transition: color 0.3s ease; }
.nav-link::after { content: ""; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--flame-500); border-radius: 2px; transition: width 0.3s var(--ease-out); }
.nav-link:hover, .nav-link.active { color: var(--flame-500); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-actions { display: none; align-items: center; justify-self: end; gap: 12px; }
.nav-mobile-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 8px; background: none; border: none; cursor: pointer; justify-self: end; }
.nav-mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: all 0.3s var(--ease-out); }
.nav--on-dark .nav-mobile-toggle span { background: #fff; }
.nav-mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .nav-links { display: flex; } .nav-actions { display: flex; } .nav-mobile-toggle { display: none; } }
.nav-mobile { display: none; position: absolute; top: 100%; left: 16px; right: 16px; background: rgba(255,255,255,.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-xl); padding: 24px; border-radius: var(--radius-xl); flex-direction: column; gap: 8px; border: 1px solid var(--gray-200); z-index: 999; }
.nav-mobile.open { display: flex; }
.nav-mobile-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--gray-200); }
.nav-mobile .nav-link { font-size: 16px; padding: 8px 0; }
.nav-mobile .btn { width: 100%; text-align: center; margin-top: 8px; }
.nav--on-dark .nav-mobile { background: rgba(9,14,26,.96); border-top-color: rgba(255,255,255,.12); }
.nav--on-dark .nav-mobile .nav-link { color: rgba(255,255,255,.9); }
.nav-link:focus-visible, .btn:focus-visible, .nav-mobile-toggle:focus-visible { outline: 2px solid var(--flame-500); outline-offset: 3px; border-radius: 6px; }
.nav--on-dark .nav-link:focus-visible { outline-color: var(--gold-400); }

/* Buttons */
.nav--on-dark .btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.nav--on-dark .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.18); transform: translateY(-1px); }
.nav--on-dark .btn-outline { color: #fff; border: 1.5px solid rgba(255,255,255,.55); background: rgba(255,255,255,.05); }
.nav--on-dark .btn-outline:hover { background: #fff; color: var(--navy-900); border-color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; font-size: 14px; font-weight: 600; border-radius: 9999px; border: none; cursor: pointer; text-decoration: none; transition: all 0.3s cubic-bezier(.16,1,.3,1); white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, #fc4600, #ff6b1a); color: white; box-shadow: 0 8px 24px rgba(252,70,0,.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(252,70,0,.35); }
.btn-ghost { background: transparent; color: #4b5563; padding: 8px 16px; border: 1.5px solid transparent; }
.btn-ghost:hover { color: #fc4600; border-color: #ffb37a; background: #fff0e5; }
.btn-outline { background: transparent; color: #1a2740; border: 2px solid #d1d5db; }
.btn-outline:hover { border-color: #fc4600; color: #fc4600; transform: translateY(-2px); }
.btn-outline-light { background: rgba(255,255,255,.06); color: #fff; border: 2px solid rgba(255,255,255,.5); border-radius: 9999px; padding: 12px 24px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; transition: all 0.3s cubic-bezier(.34,1.56,.64,1); white-space: nowrap; }
.btn-outline-light:hover { background: rgba(255,255,255,.15); border-color: #fff; transform: translateY(-2px); }

/* ============================================================
   AUTH PAGES — PREMIUM REDESIGN
   ============================================================ */
body.auth-body {
    background: linear-gradient(160deg, #fdfcf9 0%, #f7f2e8 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}
body.auth-body::before {
    content: "";
    position: fixed;
    top: -20%; right: -15%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(252,70,0,.07), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
body.auth-body::after {
    content: "";
    position: fixed;
    bottom: -25%; left: -15%;
    width: 55vw; height: 55vw;
    background: radial-gradient(circle, rgba(201,162,39,.06), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.auth-main { position: relative; z-index: 1; }

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 24px 80px;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #ebe6da;
    border-radius: 22px;
    padding: 48px 44px 42px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow:
        0 1px 2px rgba(15,23,38,.03),
        0 12px 40px rgba(15,23,38,.08),
        0 30px 80px rgba(15,23,38,.05);
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 3px;
    background: linear-gradient(90deg, transparent, #fc4600 40%, #C9A227 60%, transparent);
    border-radius: 0 0 3px 3px;
}
.auth-card.large { max-width: 560px; }

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b6a64;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 28px;
    transition: color .2s;
    font-family: var(--font-mono, monospace);
    letter-spacing: .04em;
    text-transform: uppercase;
}
.auth-back:hover { color: #fc4600; }

.auth-header { margin-bottom: 28px; }

.auth-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #fdfcf9;
    border: 1px solid #ebe6da;
    border-radius: 14px;
}
.auth-logo img {
    height: 48px !important;
    width: auto !important;
    max-height: 48px !important;
    display: block;
    flex-shrink: 0;
}
.auth-logo > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.auth-logo-sub {
    font-family: var(--font-mono, monospace) !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #1a2740 !important;
    line-height: 1.35;
}
.auth-logo-sub + .auth-logo-sub {
    color: #5c6570 !important;
    font-weight: 500 !important;
    letter-spacing: .1em;
}

/* Badge admin / sous-admin */
.auth-role-badge {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 18px;
    background: linear-gradient(90deg, #fff4ec, #fffaf6);
    border: 1px solid #ffd9c2;
    border-radius: 12px;
    margin-bottom: 28px;
    position: relative;
    padding-left: 40px;
}
.auth-role-badge::before {
    content: "◆";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #fc4600;
    font-size: 11px;
}
.auth-role-badge span {
    font-size: 14px;
    font-weight: 700;
    color: #1a2740;
}
.auth-role-badge small {
    font-size: 12px;
    color: #5c6570;
    font-weight: 500;
}

/* Formulaire */
.auth-form { display: flex; flex-direction: column; gap: 22px; }

.registration-role-choice {
    margin: 0 0 24px;
}
.registration-role-choice__label {
    display: block;
    margin-bottom: 9px;
    color: #243650;
    font-size: 13px;
    font-weight: 700;
}
.registration-role-choice__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    background: #f5f7fa;
}
.registration-role-choice__option {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 5px;
    color: #526178;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}
.registration-role-choice__option:hover {
    color: #11213a;
    background: #ffffff;
}
.registration-role-choice__option.is-active {
    color: #ffffff;
    background: #11213a;
    box-shadow: 0 2px 6px rgba(17, 33, 58, .18);
}

.registration-role-choice__option {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    min-height: 68px;
    padding: 11px 13px;
    text-align: left;
}

.registration-role-choice__option strong {
    font-size: 12px;
}

.registration-role-choice__option span {
    color: #68758a;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.35;
}

.registration-role-choice__option.is-active span {
    color: #d7e1f0;
}

.registration-role-summary {
    background: #f4f7fb;
    border-left: 3px solid #fc4600;
    color: #405069;
    margin: -8px 0 22px;
    padding: 12px 14px;
}

.registration-role-summary__tag {
    color: #11213a;
    display: block;
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.registration-role-summary p {
    font-size: 12px;
    line-height: 1.45;
    margin: 5px 0 0;
}

.registration-form-heading {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    margin-bottom: -2px;
    padding-bottom: 14px;
}

.registration-form-heading > span {
    align-items: center;
    background: #11213a;
    border: 1px solid #fc4600;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    font-weight: 700;
    height: 25px;
    justify-content: center;
    width: 25px;
}

.registration-form-heading strong,
.registration-form-heading small {
    display: block;
}

.registration-form-heading strong {
    color: #11213a;
    font-size: 13px;
}

.registration-form-heading small {
    color: #68758a;
    font-size: 10.5px;
    line-height: 1.35;
    margin-top: 2px;
}

.registration-partner-fields {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-form-group { display: flex; flex-direction: column; gap: 8px; }

.auth-form-label {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1a2740;
}

.auth-input,
.auth-form .input {
    width: 100%;
    padding: 14px 16px;
    background: #fdfcf9;
    border: 1.5px solid #ebe6da;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #0f1726;
    transition: border-color .18s, background .18s, box-shadow .18s;
    box-sizing: border-box;
}
.auth-input::placeholder { color: #a8a8a2; }
.auth-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #fc4600;
    box-shadow: 0 0 0 4px rgba(252,70,0,.1);
}
.auth-input:-webkit-autofill {
    -webkit-text-fill-color: #0f1726;
    -webkit-box-shadow: 0 0 0 1000px #fdfcf9 inset;
}

.form-error {
    font-size: 12.5px;
    color: #b3261e;
    font-weight: 600;
    margin-top: 2px;
}

/* Checkbox custom (auth-remember) */
.auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #1a2740;
    cursor: pointer;
    padding: 2px 0;
    user-select: none;
    position: relative;
}
.auth-remember input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.auth-remember-box {
    width: 20px;
    height: 20px;
    border: 1.5px solid #d6d2c8;
    border-radius: 6px;
    background: #fdfcf9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .15s ease;
    position: relative;
}
.auth-remember-box::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    opacity: 0;
    transition: opacity .15s;
}
.auth-remember input:checked + .auth-remember-box {
    background: #fc4600;
    border-color: #fc4600;
}
.auth-remember input:checked + .auth-remember-box::after { opacity: 1; }
.auth-remember input:focus-visible + .auth-remember-box {
    box-shadow: 0 0 0 3px rgba(252,70,0,.15);
}

/* Submit */
.auth-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #fc4600 0%, #e53e00 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: inherit;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, filter .15s;
    box-shadow: 0 6px 18px rgba(252,70,0,.28) !important;
    margin-top: 8px;
}
.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(252,70,0,.36) !important;
    filter: brightness(1.03);
}
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.auth-switch {
    text-align: center;
    font-size: 13.5px;
    color: #5c6570;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #ebe6da;
}
.auth-switch a {
    color: #fc4600;
    font-weight: 700;
    text-decoration: none;
    transition: color .15s;
}
.auth-switch a:hover { color: #e53e00; text-decoration: underline; }

@media (max-width: 560px) {
    .auth-card { padding: 36px 24px 32px; border-radius: 18px; }
    .auth-logo { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 14px; }
    .auth-logo img { height: 40px !important; }
    .auth-page { padding: 100px 16px 60px; }
    .registration-role-choice__options { grid-template-columns: 1fr; }
    .registration-partner-fields { grid-template-columns: 1fr; }
}

/* Connexion GUPI */
body.auth-body {
    background: #f3f5f8;
}
body.auth-body::before,
body.auth-body::after {
    display: none;
}
.auth-page {
    min-height: 100vh;
    padding: 112px 24px 48px;
}
.auth-shell {
    display: grid;
    grid-template-columns: minmax(330px, .9fr) minmax(430px, 1.1fr);
    width: 100%;
    max-width: 1040px;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid #dce2ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 32, 58, .12);
}
.auth-intro {
    display: flex;
    flex-direction: column;
    padding: 64px 52px 46px;
    background: #11213a;
    color: #fff;
}
.auth-intro__eyebrow {
    margin-bottom: 22px;
    color: #ff8a55;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.auth-intro h1 {
    max-width: 390px;
    margin: 0 0 18px;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 38px;
    line-height: 1.1;
}
.auth-intro > p {
    max-width: 400px;
    color: #c7d2e2;
    font-size: 15px;
    line-height: 1.7;
}
.auth-intro__points {
    display: grid;
    gap: 0;
    margin-top: 38px;
}
.auth-intro__points > div {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 3px 14px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .13);
}
.auth-intro__points > div > span {
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 138, 85, .45);
    border-radius: 50%;
    color: #ff8a55;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
}
.auth-intro__points strong {
    color: #fff;
    font-size: 14px;
}
.auth-intro__points small {
    color: #9fb0c8;
    font-size: 12.5px;
    line-height: 1.5;
}
.auth-intro__security {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 28px;
    color: #b9c7d9;
    font-size: 12.5px;
}
.auth-intro__security svg {
    width: 19px;
    height: 19px;
    color: #ff8a55;
    flex-shrink: 0;
}
.auth-shell .auth-card {
    max-width: none;
    padding: 42px 54px 38px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.auth-shell .auth-card::before {
    display: none;
}
.auth-shell .auth-back {
    margin-bottom: 34px;
    color: #5f6b7c;
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}
.auth-shell .auth-back span {
    color: #fc4600;
    font-size: 17px;
}
.auth-shell .auth-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 18px;
    align-items: center;
    margin-bottom: 30px;
}
.auth-brand-mark {
    width: auto;
    height: 48px;
    object-fit: contain;
}
.auth-space-badge {
    justify-self: start;
    padding: 6px 10px;
    border-radius: 20px;
    background: #fff0e9;
    color: #d83c00;
    font-size: 11.5px;
    font-weight: 700;
}
.auth-shell .auth-header h2,
.auth-shell .auth-header p {
    grid-column: 1 / -1;
}
.auth-shell .auth-header h2 {
    margin: 18px 0 0;
    color: #11213a;
    font-family: var(--font-serif);
    font-size: 30px;
    line-height: 1.15;
}
.auth-shell .auth-header p {
    margin: 0;
    color: #5f6b7c;
    font-size: 14px;
    line-height: 1.6;
}

.auth-login-role-switch {
    background: transparent;
    border: 2px solid #11213a;
    border-radius: 10px;
    box-shadow: 0 0 0 3px rgba(17, 33, 58, .08);
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 22px;
    padding: 6px;
    position: relative;
}

.auth-login-role-switch::before {
    background: #fc4600;
    border-radius: 0 0 3px 3px;
    content: '';
    height: 3px;
    left: 24px;
    position: absolute;
    top: -2px;
    width: 52px;
}

.auth-login-role-switch a {
    border: 1px solid #d6e0eb;
    border-radius: 6px;
    color: #526176;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 8px;
    text-align: center;
    text-decoration: none;
}

.auth-login-role-switch a:hover {
    background: #fff;
    color: #11213a;
}

.auth-login-role-switch a.is-active {
    background: #11213a;
    border-color: #11213a;
    color: #fff;
    box-shadow: 0 2px 6px rgba(17, 33, 58, .24);
}

.auth-shell--partenaire .auth-intro__eyebrow,
.auth-shell--partenaire .auth-intro__security svg {
    color: #ff8a55;
}

.auth-shell--partenaire .auth-space-badge {
    background: #fff0e9;
    color: #c53d09;
}
.auth-alert {
    margin: -8px 0 22px;
    padding: 12px 14px;
    border: 1px solid #bce6d5;
    border-radius: 6px;
    background: #eaf8f2;
    color: #126b4d;
    font-size: 13px;
}
.auth-shell .auth-form {
    gap: 20px;
}
.auth-shell .auth-form-group {
    gap: 9px;
}
.auth-shell .auth-form-label {
    color: #243650;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.auth-shell .auth-input,
.auth-shell .auth-form .input {
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #cbd4e0;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
}
.auth-shell .auth-input:focus {
    border-color: #fc4600;
    box-shadow: 0 0 0 3px rgba(252, 70, 0, .12);
}
.auth-shell .auth-input[aria-invalid="true"] {
    border-color: #b3261e;
}
.password-input-wrap {
    position: relative;
}
.password-input-wrap .auth-input {
    padding-right: 52px;
}
.password-visibility-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #657287;
    cursor: pointer;
    transform: translateY(-50%);
}
.password-visibility-toggle::before {
    content: "";
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.6 12S6.2 6.6 12 6.6 21.4 12 21.4 12 17.8 17.4 12 17.4 2.6 12 2.6 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.6 12S6.2 6.6 12 6.6 21.4 12 21.4 12 17.8 17.4 12 17.4 2.6 12 2.6 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.password-visibility-toggle[aria-pressed="true"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 3 18 18'/%3E%3Cpath d='M10.6 10.7a2 2 0 0 0 2.7 2.7M9.9 4.4A10.4 10.4 0 0 1 12 4.2c6.7 0 10 7.8 10 7.8a17.7 17.7 0 0 1-2.3 3.5M6.6 6.6C3.5 8.5 2 12 2 12s3.3 7.8 10 7.8a10.2 10.2 0 0 0 4.2-.9'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 3 18 18'/%3E%3Cpath d='M10.6 10.7a2 2 0 0 0 2.7 2.7M9.9 4.4A10.4 10.4 0 0 1 12 4.2c6.7 0 10 7.8 10 7.8a17.7 17.7 0 0 1-2.3 3.5M6.6 6.6C3.5 8.5 2 12 2 12s3.3 7.8 10 7.8a10.2 10.2 0 0 0 4.2-.9'/%3E%3C/svg%3E");
}
.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
    color: #11213a;
}
.password-visibility-toggle:focus-visible {
    border-radius: 5px;
    outline: 2px solid #fc4600;
    outline-offset: 1px;
}
.auth-shell .auth-remember {
    color: #394960;
    font-size: 13.5px;
}
.auth-shell .auth-submit {
    display: flex;
    justify-content: space-between;
    min-height: 52px;
    margin-top: 2px;
    padding: 14px 20px 14px 24px;
    border-radius: 6px !important;
    background: #fc4600 !important;
}
.auth-shell .auth-submit svg {
    width: 19px;
    height: 19px;
    transition: transform .15s ease;
}
.auth-shell .auth-submit:hover svg {
    transform: translateX(3px);
}
.auth-shell .auth-switch {
    margin-top: 24px;
    padding-top: 20px;
    border-color: #e0e5ec;
    font-size: 13px;
}
@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
        min-height: 0;
    }
    .auth-intro {
        display: none;
    }
}
@media (max-width: 560px) {
    .auth-page {
        align-items: flex-start;
        padding: 92px 14px 24px;
    }
    .auth-shell {
        border-radius: 8px;
    }
    .auth-shell .auth-card {
        padding: 28px 22px 26px;
    }
    .auth-shell .auth-back {
        margin-bottom: 26px;
    }
    .auth-shell .auth-header h2 {
        font-size: 27px;
    }
    .auth-login-role-switch { grid-template-columns: 1fr; }
    .auth-brand-mark {
        height: 42px;
    }
}
