/* ================================================
   MODULE AUTH — CSS
   À ajouter à la fin de public/assets/css/app.css
   ================================================ */

/* ── Page auth (fond sobre) ─────────────────────── */
.fm-auth-page {
    background: var(--fm-gray-light);
    min-height: 100vh;
}
.fm-auth-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--fm-black);
    text-decoration: none;
    display: inline-block;
}
.fm-auth-subtitle {
    font-size: 0.9rem;
    color: var(--fm-gray-dark);
    margin: 0;
}

/* ── Carte formulaire ───────────────────────────── */
.fm-auth-card {
    background: var(--fm-white);
    border-radius: var(--fm-radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ── Champs ─────────────────────────────────────── */
.fm-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fm-black);
    margin-bottom: 6px;
}
.fm-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--fm-gray-mid);
    border-radius: var(--fm-radius);
    font-size: 0.9rem;
    font-family: var(--fm-font);
    color: var(--fm-black);
    background: var(--fm-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.fm-input:focus {
    border-color: var(--fm-gold);
    box-shadow: 0 0 0 3px rgba(212,161,30,0.15);
}
.fm-input-hint {
    font-size: 0.75rem;
    color: var(--fm-gray-dark);
    margin-top: 4px;
    display: block;
}
.fm-input-wrap {
    position: relative;
}
.fm-input-wrap .fm-input {
    padding-right: 42px;
}
.fm-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--fm-gray-dark);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: color 0.2s;
}
.fm-eye-btn:hover { color: var(--fm-gold); }

/* ── Checkbox ───────────────────────────────────── */
.fm-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--fm-gold);
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Boutons OAuth ──────────────────────────────── */
.fm-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--fm-radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--fm-font);
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    border: 1.5px solid transparent;
}
.fm-oauth-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.fm-oauth-google {
    background: var(--fm-white);
    color: var(--fm-black);
    border-color: var(--fm-gray-mid);
}
.fm-oauth-google:hover { color: var(--fm-black); }
.fm-oauth-facebook {
    background: #1877F2;
    color: #fff;
    font-size: 1.1rem;
}
.fm-oauth-facebook:hover { color: #fff; }

/* ── Diviseur ───────────────────────────────────── */
.fm-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1rem 0;
    color: var(--fm-gray-mid);
    font-size: 0.8rem;
}
.fm-auth-divider::before,
.fm-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--fm-gray-light);
}

/* ── Liens ──────────────────────────────────────── */
.fm-auth-link {
    color: var(--fm-gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.fm-auth-link:hover { color: var(--fm-gold-dark); }

/* ── Alertes ────────────────────────────────────── */
.fm-alert {
    padding: 12px 16px;
    border-radius: var(--fm-radius);
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.5;
}
.fm-alert i { flex-shrink: 0; margin-top: 1px; font-size: 1rem; }
.fm-alert-error   { background: #fdf0f0; color: #9b2525; border: 1px solid #f5c6c6; }
.fm-alert-success { background: #f0fdf4; color: #1a6832; border: 1px solid #c3e6cb; }
.fm-alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Indicateur force mot de passe ─────────────── */
.fm-strength-bar {
    height: 4px;
    background: var(--fm-gray-light);
    border-radius: 99px;
    overflow: hidden;
}
.fm-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 99px;
    transition: width 0.3s, background 0.3s;
}
.fm-strength-label {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

/* ── Page profil ────────────────────────────────── */
.fm-profil-card {
    background: var(--fm-white);
    border-radius: var(--fm-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--fm-gray-light);
    position: sticky;
    top: 80px;
}
.fm-profil-avatar-wrap { display: flex; justify-content: center; }
.fm-profil-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--fm-gold);
    color: var(--fm-black);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fm-profil-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.fm-profil-role {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
}
.fm-profil-email {
    font-size: 0.8rem;
    color: var(--fm-gray-dark);
    margin: 6px 0 0;
    word-break: break-all;
}
.fm-profil-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 0.5rem;
}
.fm-profil-nav-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--fm-radius);
    font-size: 0.875rem;
    color: var(--fm-black);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.fm-profil-nav-item:hover,
.fm-profil-nav-item.active {
    background: var(--fm-gray-light);
    color: var(--fm-black);
}

@media (max-width: 576px) {
    .fm-auth-card { padding: 1.5rem 1.25rem; }
    .fm-profil-card { position: static; }
}
