/* ===== JangaMarket — Connexion / Inscription (Neumorphism) ===== */

:root {
    --auth-bg: #F3F6FB;
    --auth-card: #EEF2F7;
    --auth-shadow-light: #FFFFFF;
    --auth-shadow-dark: #C9D3DF;
    --auth-green: #2E7D32;
    --auth-green-light: #43A047;
    --auth-orange: #F57C00;
    --auth-text: #1F2937;
    --auth-text-secondary: #6B7280;
}

.auth-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--auth-bg);
    color: var(--auth-text);
    margin: 0;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* Le verrouillage du scroll (page tenant dans un seul écran) ne s'applique
   qu'à partir du layout deux colonnes : sur mobile, la mise en page empilée
   doit pouvoir défiler normalement pour ne rien couper. */
@media (min-width: 992px) {
    html, body.auth-body {
        height: 100%;
        overflow: hidden;
    }
    .auth-shell {
        height: 100vh;
    }
}

/* ----- Colonne gauche : identité — premium attractif ----- */
.auth-brand-panel {
    flex: 0 0 46%;
    max-width: 46%;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,0.10), transparent 38%),
        radial-gradient(circle at 15% 85%, rgba(20,184,166,0.18), transparent 42%),
        linear-gradient(155deg, #0f5132 0%, #2e7d32 38%, #1b6a2a 100%);
    color: #fff;
    padding: 2.6rem 2.8rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.auth-brand-panel::before {
    content:"";
    position:absolute; inset:0;
    background: url('../../arriere-plan.jpg') center/cover no-repeat;
    opacity:0.14;
    mix-blend-mode: soft-light;
    pointer-events:none;
    z-index:0;
}
.auth-brand-orb {
    position:absolute; border-radius:50%; filter:blur(28px); pointer-events:none; z-index:0;
}
.auth-brand-orb-1 { width:320px; height:320px; top:-80px; right:-90px; background:rgba(255,255,255,0.08); }
.auth-brand-orb-2 { width:220px; height:220px; bottom:-60px; left:-40px; background:rgba(45,212,191,0.14); }
.auth-brand-orb-3 { width:180px; height:180px; top:42%; left:18%; background:rgba(124,58,237,0.10); filter:blur(32px); }

.auth-brand-decor {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

.auth-brand-decor-1 {
    width: 380px;
    height: 380px;
    top: -140px;
    right: -110px;
    background: rgba(255,255,255,0.07);
}

.auth-brand-decor-2 {
    width: 260px;
    height: 260px;
    bottom: -90px;
    left: -70px;
    background: rgba(255,255,255,0.04);
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    z-index: 1;
}

.auth-brand-logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.auth-brand-slogan {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 1.8rem 0 0;
    max-width: 380px;
    z-index: 1;
    letter-spacing: -0.02em;
}

.auth-brand-illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 1.6rem 0 1.2rem;
    z-index: 1;
}

.auth-phone-mock {
    width: 230px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 30px;
    padding: 0.85rem;
    backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 0 28px 60px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.14), 0 0 40px rgba(45,212,191,0.18);
    animation: authFloat 5s ease-in-out infinite;
    transform: rotate(-1.5deg);
}

.auth-phone-notch {
    width: 50px;
    height: 5px;
    border-radius: 10px;
    background: rgba(255,255,255,0.35);
    margin: 0 auto 0.9rem;
}

.auth-phone-screen {
    background: #ffffff;
    border-radius: 18px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.auth-phone-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.auth-phone-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--auth-green-light);
    flex-shrink: 0;
}

.auth-phone-line {
    display: block;
    height: 7px;
    border-radius: 4px;
    background: #e4e9ef;
}

.auth-phone-line-short { width: 70px; }
.auth-phone-line-tiny { width: 44px; margin-top: 5px; }

.auth-phone-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--auth-bg);
    border-radius: 10px;
    padding: 0.55rem 0.6rem;
}

.auth-phone-card i {
    color: var(--auth-green);
    font-size: 1.1rem;
}

.auth-phone-map {
    background: var(--auth-green);
    border-radius: 10px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
}

.auth-floating-badge {
    position: absolute;
    background: #ffffff;
    color: #0f172a;
    padding: 0.48rem 0.8rem;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #eef2f7;
}

.auth-floating-badge i {
    color: var(--auth-orange);
}

.auth-floating-badge-1 {
    top: 8%;
    right: 2%;
    animation: authFloat 4s ease-in-out infinite .3s;
}

.auth-floating-badge-2 {
    bottom: 12%;
    left: -6px;
    animation: authFloat 4.5s ease-in-out infinite .6s;
}
.auth-floating-badge-3 {
    top: 46%;
    right: -14px;
    animation: authFloat 4.2s ease-in-out infinite .9s;
    font-size:0.68rem;
    padding:0.4rem 0.7rem;
}

@keyframes authFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-brand-text {
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    max-width: 380px;
    margin: 0;
    z-index: 1;
}

/* ----- Colonne droite : formulaire — fond blanc comme login.png ----- */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
}

@media (min-width: 992px) {
    .auth-form-panel {
        height: 100vh;
        overflow-y: auto;
    }
}

.auth-card {
    background: #f8fafc;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 1.75rem 1.85rem 1.5rem;
    box-shadow: 0 20px 60px rgba(15,23,42,0.08), 0 4px 16px rgba(15,23,42,0.04);
    border: 1px solid #eef2f7;
    animation: authCardIn .5s ease both;
    margin: auto;
}

.auth-card-wide {
    max-width: 720px;
}

@keyframes authCardIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15,23,42,0.08);
    border: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--auth-green);
    margin: 0 auto 0.7rem;
}

.auth-card h1 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.2rem;
}

.auth-card-subtitle {
    text-align: center;
    color: var(--auth-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.1rem;
}

/* ----- Champs — modèle login.png (fond blanc, icône verte) ----- */
.auth-field {
    margin-bottom: 0.85rem;
}

.auth-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.3rem;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.auth-input-wrap:focus-within {
    background: #ffffff;
    border-color: var(--auth-green);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}

.auth-input-wrap i.auth-input-icon {
    padding: 0 0.75rem 0 0.85rem;
    color: var(--auth-green);
    font-size: 1rem;
    flex-shrink: 0;
}

.auth-input-wrap input,
.auth-input-wrap select {
    border: none;
    background: transparent;
    outline: none;
    padding: 0.62rem 0.5rem 0.62rem 0;
    width: 100%;
    font-size: 0.88rem;
    color: var(--auth-text);
}

.auth-input-wrap .auth-toggle-password {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 0 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
}
.auth-input-wrap .auth-toggle-password:hover { color: var(--auth-green); }

.auth-field-feedback {
    font-size: 0.78rem;
    margin-top: 0.35rem;
    display: none;
    align-items: center;
    gap: 0.3rem;
}

.auth-field-feedback.is-valid {
    display: flex;
    color: var(--auth-green);
}

.auth-field-feedback.is-invalid {
    display: flex;
    color: #dc3545;
}

.auth-input-wrap.is-valid {
    box-shadow: inset 3px 3px 6px var(--auth-shadow-dark), inset -3px -3px 6px var(--auth-shadow-light), 0 0 0 2px rgba(46,125,50,0.35);
}

.auth-input-wrap.is-invalid {
    box-shadow: inset 3px 3px 6px var(--auth-shadow-dark), inset -3px -3px 6px var(--auth-shadow-light), 0 0 0 2px rgba(220,53,69,0.35);
}

/* ----- Options ----- */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
    font-size: 0.8rem;
}

.auth-options a {
    color: var(--auth-green);
    text-decoration: none;
    font-weight: 600;
}

.auth-options a:hover {
    text-decoration: underline;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--auth-text-secondary);
}

/* ----- Bouton principal ----- */
.auth-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--auth-green-light), var(--auth-green));
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 0.65rem;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 20px rgba(46,125,50,0.28);
    transition: transform .15s, box-shadow .15s;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(46,125,50,0.32);
    color: #fff;
}

.auth-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(46,125,50,0.28);
}

/* ----- Séparateur ----- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.9rem 0;
    color: var(--auth-text-secondary);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-shadow-dark);
}

/* ----- Connexion sociale ----- */
.auth-social {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.auth-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--auth-card);
    border: none;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 4px 4px 10px var(--auth-shadow-dark), -4px -4px 10px var(--auth-shadow-light);
    color: var(--auth-text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.65;
    position: relative;
}

.auth-social-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--auth-text);
    color: #fff;
    font-size: 0.68rem;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    white-space: nowrap;
}

/* ----- Bas de carte ----- */
.auth-switch {
    text-align: center;
    font-size: 0.9rem;
    color: var(--auth-text-secondary);
    margin: 20px 0 0;
}

.auth-switch a {
    color: var(--auth-green);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-footer-note {
    text-align: center;
    margin-top: 0.9rem;
    font-size: 0.72rem;
    color: var(--auth-text-secondary);
}

.auth-footer-note a {
    color: var(--auth-text-secondary);
    text-decoration: underline;
}

/* ----- Alerte ----- */
.auth-alert {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-alert-danger {
    background: rgba(220,53,69,0.1);
    color: #b02a37;
}

.auth-alert-warning {
    background: rgba(245,124,0,0.12);
    color: #a35300;
}

.auth-alert-success {
    background: rgba(46,125,50,0.12);
    color: var(--auth-green);
}

/* ----- Type de compte (radio cards) ----- */
.auth-role-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.auth-role-card {
    position: relative;
}

.auth-role-card input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
    cursor: pointer;
}

.auth-role-card label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    background: var(--auth-card);
    border-radius: 12px;
    padding: 0.55rem 0.5rem;
    box-shadow: 4px 4px 10px var(--auth-shadow-dark), -4px -4px 10px var(--auth-shadow-light);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--auth-text-secondary);
    cursor: pointer;
    transition: box-shadow .15s, color .15s;
}

.auth-role-card label i {
    font-size: 1.05rem;
    color: var(--auth-text-secondary);
}

.auth-role-card input:checked + label {
    color: var(--auth-green);
    box-shadow: inset 3px 3px 6px var(--auth-shadow-dark), inset -3px -3px 6px var(--auth-shadow-light), 0 0 0 2px var(--auth-green);
}

.auth-role-card input:checked + label i {
    color: var(--auth-green);
}

/* ----- Champs commerçant dynamiques ----- */
.auth-merchant-fields {
    display: none;
    border-top: 1px dashed var(--auth-shadow-dark);
    padding-top: 0.7rem;
    margin-top: 0.2rem;
    animation: authCardIn .35s ease both;
}

.auth-merchant-fields.is-visible {
    display: block;
}

.auth-section-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--auth-green);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ----- Géolocalisation ----- */
.auth-location-box {
    background: var(--auth-card);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    box-shadow: inset 3px 3px 6px var(--auth-shadow-dark), inset -3px -3px 6px var(--auth-shadow-light);
    margin-bottom: 0.75rem;
}

.auth-location-status {
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.auth-location-status.is-pending { color: var(--auth-orange); }
.auth-location-status.is-success { color: var(--auth-green); }
.auth-location-status.is-error { color: #dc3545; }

.auth-location-results {
    max-height: 150px;
    overflow-y: auto;
}

.auth-location-results button {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: none;
    border-bottom: 1px solid #eef1ee;
    padding: 0.5rem 0.6rem;
    font-size: 0.78rem;
    color: var(--auth-text);
}

.auth-location-results button:hover {
    background: var(--auth-bg);
}

/* ----- Responsive ----- */
@media (max-width: 1200px) {
    .auth-brand-panel {
        flex: 0 0 40%;
        max-width: 40%;
        padding: 2.5rem;
    }
}

@media (max-width: 991px) {
    .auth-shell {
        flex-direction: column;
    }
    .auth-brand-panel {
        flex: none;
        max-width: 100%;
        padding: 2rem 1.5rem;
        min-height: 260px;
    }
    .auth-brand-illustration {
        display: none;
    }
    .auth-brand-slogan {
        font-size: 1.3rem;
        margin-top: 1rem;
    }
    .auth-form-panel {
        padding: 2rem 1rem 3rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.75rem 1.35rem;
        border-radius: 18px;
    }
    .auth-role-group {
        grid-template-columns: 1fr;
    }
}

/* ===== Login premium attractif — surcharge login.png ===== */
.auth-brand-panel::after {
    content:"";
    position:absolute;
    inset:0;
    background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity:0.45;
    pointer-events:none;
}
.auth-phone-mock {
    box-shadow: 0 24px 48px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
}
.auth-phone-screen { box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); }
.auth-phone-card { border: 1px solid #eef2f0; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.auth-brand-stats {
    display:flex; gap:1.25rem; margin-top:1.5rem; z-index:1;
    padding-top:1.25rem; border-top:1px solid rgba(255,255,255,0.14);
}
.auth-brand-stat { text-align:center; flex:1; }
.auth-brand-stat strong { display:block; font-size:1.35rem; font-weight:800; line-height:1; color:#fff; }
.auth-brand-stat span { font-size:0.7rem; opacity:0.85; letter-spacing:0.04em; text-transform:uppercase; }
.auth-brand-features {
    display:flex; gap:0.6rem; flex-wrap:wrap; margin-top:1rem; z-index:1;
}
.auth-brand-features span {
    display:inline-flex; align-items:center; gap:0.32rem;
    background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.18);
    backdrop-filter:blur(6px); color:#e6fff7; font-size:0.68rem; font-weight:600;
    padding:0.32rem 0.6rem; border-radius:999px;
}
.auth-brand-features i { color:#6ee7b7; font-size:0.75rem; }

.auth-card { position:relative; overflow:hidden; }
.auth-card::before {
    content:"";
    position:absolute; top:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg, #14b8a6, #22c55e, #7c3aed);
}
.auth-card h1 { font-size:1.35rem; letter-spacing:-0.02em; }
.auth-card-subtitle { color:#64748b; }
.auth-input-wrap { background:#f8fafc; border-color:#e2e8f0; }
.auth-input-wrap i.auth-input-icon { background:#ffffff; width:36px; height:36px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; margin-left:6px; box-shadow:0 2px 8px rgba(15,23,42,0.06); }
.auth-btn-primary {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-radius:12px;
    padding:0.75rem;
    font-size:0.92rem;
    letter-spacing:0.01em;
    box-shadow:0 10px 24px rgba(22,163,74,0.28);
    position:relative; overflow:hidden;
}
.auth-btn-primary::after {
    content:"";
    position:absolute; top:0; left:-100%; width:100%; height:100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition:left .6s;
}
.auth-btn-primary:hover::after { left:100%; }
.auth-switch a { color:#15803d; }
.auth-footer-note { opacity:0.9; }
.auth-trust {
    display:flex; align-items:center; justify-content:center; gap:0.5rem;
    margin-top:0.85rem; padding:0.6rem; background:#f8fafc; border:1px solid #eef2f7;
    border-radius:12px; font-size:0.72rem; color:#64748b;
}
.auth-trust i { color:#f59e0b; }

/* ===== Wizard inscription étape par étape ===== */
.auth-card-register { max-width: 760px; }
.auth-wizard-progress {
    display:flex; align-items:center; justify-content:center; gap:0.4rem;
    margin:1.1rem 0 1.2rem;
}
.auth-wizard-step {
    display:flex; align-items:center; gap:0.4rem;
    font-size:0.76rem; font-weight:600; color:#94a3b8;
}
.auth-wizard-bullet {
    width:26px; height:26px; border-radius:50%;
    display:inline-flex; align-items:center; justify-content:center;
    background:#f1f5f9; border:1px solid #e2e8f0; color:#64748b; font-size:0.78rem; font-weight:700;
    transition: all .18s;
}
.auth-wizard-step.is-active .auth-wizard-bullet { background:#2e7d32; border-color:#2e7d32; color:#fff; box-shadow:0 4px 12px rgba(46,125,50,0.22); }
.auth-wizard-step.is-done .auth-wizard-bullet { background:#dcfce7; border-color:#86efac; color:#15803d; }
.auth-wizard-step.is-done .auth-wizard-bullet::after { content:"✓"; font-size:0.72rem; }
.auth-wizard-step.is-done .auth-wizard-bullet { font-size:0; }
.auth-wizard-line { flex:0 0 28px; height:2px; background:#e2e8f0; border-radius:2px; }
.auth-wizard-step.is-done + .auth-wizard-line { background:#86efac; }
.auth-wizard-label { white-space:nowrap; }
.auth-step { display:none; animation: authCardIn .32s ease both; }
.auth-step.is-active { display:block; }
.auth-step-title { font-weight:700; color:#0f172a; margin-bottom:0.25rem; display:flex; align-items:center; gap:0.4rem; }
.auth-step-desc { font-size:0.82rem; color:#64748b; margin-bottom:0.9rem; }
.auth-role-group--wizard { grid-template-columns:1fr 1fr; gap:0.9rem; }
.auth-role-icon {
    width:48px; height:48px; border-radius:14px;
    display:inline-flex; align-items:center; justify-content:center;
    font-size:1.35rem; border:1px solid transparent;
    box-shadow:0 4px 12px rgba(15,23,42,0.06);
    transition: transform .15s;
}
.auth-role-icon--client { background:#f0fdfa; border-color:#99f6e4; color:#0f766e; }
.auth-role-icon--merchant { background:#fffbeb; border-color:#fde68a; color:#b45309; }
.auth-role-card label {
    flex-direction:column; padding:1.1rem 0.8rem; gap:0.5rem;
    border-radius:16px; border:1px solid #e2e8f0;
    background:#ffffff; box-shadow:0 2px 10px rgba(15,23,42,0.04);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.auth-role-card label:hover { border-color:#cbd5e1; transform:translateY(-2px); box-shadow:0 8px 18px rgba(15,23,42,0.08); }
.auth-role-card input:checked + label { border-color:#2e7d32; background:#f0fdf4; box-shadow:0 8px 20px rgba(46,125,50,0.12); }
.auth-role-card input:checked + label .auth-role-icon--client { background:#ccfbf1; border-color:#5eead4; }
.auth-role-card input:checked + label .auth-role-icon--merchant { background:#fef3c7; border-color:#fcd34d; }
.auth-role-card label strong { font-size:0.94rem; color:#0f172a; font-weight:700; }
.auth-role-card label small { font-size:0.72rem; color:#64748b; font-weight:400; }
.auth-role-hints { margin-top:0.7rem; }
.auth-role-hint { display:none; align-items:center; gap:0.35rem; background:#f0fdf4; border:1px solid #dcfce7; color:#15803d; font-size:0.76rem; font-weight:600; padding:0.45rem 0.65rem; border-radius:10px; }
.auth-role-hint i { color:#16a34a; }
.auth-wizard-nav { display:flex; gap:0.6rem; margin-top:1.2rem; }
.auth-wizard-nav .auth-btn-primary { flex:1; }
.auth-hint { font-size:0.68rem; color:#94a3b8; margin-top:0.25rem; display:block; }

/* KYC — étape 4 */
.auth-kyc-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:0.75rem; }
.auth-kyc-card { background:#ffffff; border:1px solid #e2e8f0; border-radius:12px; padding:0.75rem; box-shadow:0 2px 10px rgba(15,23,42,0.04); }
.auth-kyc-label { font-size:0.78rem; font-weight:700; color:#0f172a; margin-bottom:0.35rem; display:block; }
.auth-kyc-upload {
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0.25rem;
    border:2px dashed #cbd5e1; border-radius:10px; padding:0.9rem 0.6rem; background:#f8fafc;
    cursor:pointer; text-align:center; transition: border-color .15s, background .15s;
}
.auth-kyc-upload:hover { border-color:#2e7d32; background:#f0fdf4; }
.auth-kyc-upload input { display:none; }
.auth-kyc-icon { width:32px; height:32px; border-radius:8px; background:#e0f2fe; color:#0ea5e9; display:inline-flex; align-items:center; justify-content:center; font-size:1.05rem; }
.auth-kyc-text { font-size:0.78rem; font-weight:600; color:#334155; }
.auth-kyc-upload small { font-size:0.66rem; color:#94a3b8; }
.auth-kyc-preview { font-size:0.72rem; margin-top:0.35rem; color:#475569; word-break:break-all; }
.auth-kyc-notice { margin-top:0.85rem; background:#fffbeb; border:1px solid #fde68a; color:#92400e; font-size:0.74rem; padding:0.55rem 0.7rem; border-radius:10px; display:flex; align-items:center; gap:0.35rem; }
@media (max-width: 560px){ .auth-kyc-grid{ grid-template-columns:1fr; } }

/* ===== Modèle login.jfif — panier + amélioration ===== */
.auth-basket-wrap { position:relative; margin:1.4rem 0 1.1rem; z-index:1; }
.auth-basket-card {
    position:relative; border-radius:16px; overflow:hidden;
    box-shadow:0 20px 40px rgba(0,0,0,0.22); border:1px solid rgba(255,255,255,0.18);
    background:#fff; transform:rotate(-0.5deg);
}
.auth-basket-card img { width:100%; height:200px; object-fit:cover; display:block; }
.auth-basket-badge {
    position:absolute; bottom:10px; left:10px;
    background:rgba(255,255,255,0.96); color:#0f172a; backdrop-filter:blur(6px);
    font-size:0.68rem; font-weight:700; padding:0.32rem 0.6rem; border-radius:999px;
    display:inline-flex; align-items:center; gap:0.3rem; box-shadow:0 4px 12px rgba(0,0,0,0.12);
}
.auth-basket-badge i { color:#16a34a; }
.auth-basket-glow {
    position:absolute; inset:-10px; z-index:-1;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.14), transparent 62%);
    filter:blur(12px); border-radius:20px;
}
.auth-brand-discover {
    font-family:'Poppins',serif; font-size:1.85rem; font-weight:300; font-style:italic;
    color:#fff; margin:0 0 0.45rem; line-height:1; letter-spacing:-0.02em; z-index:1;
}
.auth-social-divider {
    display:flex; align-items:center; gap:0.75rem; margin:1rem 0 0.85rem;
    color:#64748b; font-size:0.78rem;
}
.auth-social-divider::before, .auth-social-divider::after { content:""; flex:1; height:1px; background:#e2e8f0; }
.auth-social-row { display:flex; gap:0.6rem; margin-bottom:0.85rem; }
.auth-social-btn2 {
    flex:1; height:42px; border-radius:12px; border:1px solid #e2e8f0; background:#ffffff;
    display:flex; align-items:center; justify-content:center; font-size:1.15rem;
    box-shadow:0 4px 12px rgba(15,23,42,0.06); transition: transform .12s, box-shadow .12s;
}
.auth-social-btn2:hover { transform:translateY(-2px); box-shadow:0 8px 18px rgba(15,23,42,0.10); }
.auth-social-btn2.g { color:#4285f4; } .auth-social-btn2.f { color:#1877f2; } .auth-social-btn2.a { color:#16a34a; }
.auth-card-footer {
    display:flex; align-items:center; justify-content:space-between; gap:0.5rem;
    margin-top:1rem; padding-top:0.85rem; border-top:1px solid #f1f5f9;
    font-size:0.7rem; color:#64748b;
}
.auth-card-footer a { color:#64748b; text-decoration:underline; }
.auth-card-footer .auth-footer-badge { display:inline-flex; align-items:center; gap:0.3rem; background:#f0fdf4; color:#15803d; padding:0.25rem 0.55rem; border-radius:999px; font-weight:600; border:1px solid #dcfce7; }
.auth-card-footer .auth-footer-rating { display:inline-flex; align-items:center; gap:0.25rem; font-weight:700; color:#0f172a; }
.auth-card-footer .auth-footer-rating i { color:#f59e0b; }
