/* ================================================================
   Sourdosphère — auth.css
   Shell partagé : login, inscription multi-étapes, mot de passe
   oublié, onboarding. Split desktop / plein écran mobile.
   ================================================================ */

.auth-shell {
    display: flex;
    min-height: 100vh;
}
.auth-body { padding-top: 0 !important; padding-bottom: 0 !important; }

/* ── Panneau formulaire (gauche) ─────────────────────────────── */
.auth-shell__form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
}
.auth-shell__inner {
    width: 100%;
    max-width: 420px;
}
.auth-shell__inner--wide { max-width: 480px; }

.auth-shell__logo {
    font-size: 1.3rem; font-weight: 700; color: var(--green-dark);
    margin-bottom: 1.75rem; display: block; text-decoration: none;
}
.auth-shell__logo span { color: var(--green-mid); }
.auth-shell__logo:hover { text-decoration: none; }

.auth-shell__title { font-size: 1.35rem; font-weight: 800; color: var(--black); margin-bottom: 0.4rem; }
.auth-shell__subtitle { font-size: 0.88rem; color: var(--gray-mid); margin-bottom: 1.75rem; line-height: 1.5; }

.auth-shell__switch {
    text-align: center; font-size: 0.875rem; color: var(--gray-mid); margin-top: 1.5rem;
}
.auth-shell__switch a { font-weight: 700; color: var(--green-mid); }

.auth-shell__back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.82rem; color: var(--gray-mid); margin-bottom: 1.25rem;
}
.auth-shell__back:hover { color: var(--green-dark); }

/* ── Panneau visuel (droite, masqué sur mobile) ──────────────── */
.auth-shell__visual-side {
    flex: 1;
    background: var(--green-dark);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 3rem; gap: 1.75rem; position: relative; overflow: hidden;
}
.auth-shell__visual-avatars { display: flex; }
.auth-shell__avatar {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; color: #fff;
    border: 3px solid var(--green-dark); margin-left: -18px;
}
.auth-shell__avatar:first-child { margin-left: 0; }
.auth-shell__avatar--1 { background: var(--green-mid); z-index: 3; }
.auth-shell__avatar--2 { background: #5DCAA5; z-index: 2; }
.auth-shell__avatar--3 { background: #0F6E56; z-index: 1; }

.auth-shell__visual-text {
    color: #fff; font-size: 1.2rem; font-weight: 700; text-align: center;
    max-width: 320px; line-height: 1.4;
}
.auth-shell__visual-sub {
    color: rgba(255,255,255,0.65); font-size: 0.88rem; text-align: center; max-width: 300px; line-height: 1.6;
}
.auth-shell__visual-badge {
    position: absolute; top: 2rem; left: 2rem;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    color: var(--green-mid); background: rgba(255,255,255,0.08);
    padding: 0.4rem 0.85rem; border-radius: 20px;
}

@media (max-width: 900px) {
    .auth-shell__visual-side { display: none; }
    .auth-shell__form-side { padding: 2rem 1.25rem; }
}

/* ── Indicateur d'étapes ──────────────────────────────────────── */
.auth-steps { display: flex; align-items: center; margin-bottom: 0.6rem; }
.auth-steps__dot {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--gray-light); color: var(--gray-mid);
    font-size: 0.68rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.auth-steps__dot--done { background: var(--green-mid); color: #fff; }
.auth-steps__dot--active { background: var(--green-dark); color: #fff; }
.auth-steps__dot svg { width: 13px; height: 13px; }
.auth-steps__line { flex: 1; height: 2px; background: var(--gray-light); }
.auth-steps__line--done { background: var(--green-mid); }
.auth-steps__label { font-size: 0.72rem; font-weight: 700; color: var(--green-mid); margin-bottom: 1.25rem; }

/* ── Bouton "passer" (étapes facultatives) ───────────────────── */
.auth-shell__actions {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.5rem;
}
.auth-shell__skip {
    font-size: 0.85rem; font-weight: 600; color: var(--gray-mid);
    white-space: nowrap;
}
.auth-shell__skip:hover { color: var(--black); }

/* ── Upload photo (onboarding) ───────────────────────────────── */
.auth-photo-upload {
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    margin-bottom: 1.5rem;
}
.auth-photo-upload__preview {
    width: 120px; height: 120px; border-radius: 50%;
    background: var(--gray-light); border: 2px dashed var(--gray-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-mid); overflow: hidden; position: relative; cursor: pointer;
}
.auth-photo-upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.auth-photo-upload__label {
    font-size: 0.85rem; font-weight: 700; color: var(--green-mid); cursor: pointer;
}

/* ── Suggestions (onboarding étape 5) ─────────────────────────── */
.auth-suggest-section { margin-bottom: 1.5rem; }
.auth-suggest-section__title { font-size: 0.8rem; font-weight: 700; color: var(--gray-mid); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 0.75rem; }
.auth-suggest-row {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.6rem 0; border-bottom: 1px solid var(--gray-light);
}
.auth-suggest-row:last-child { border-bottom: none; }
.auth-suggest-row__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.auth-suggest-row__icon {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    background: var(--green-dark); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem;
}
.auth-suggest-row__body { flex: 1; min-width: 0; }
.auth-suggest-row__name { font-size: 0.85rem; font-weight: 700; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-suggest-row__meta { font-size: 0.72rem; color: var(--gray-mid); }
