/* ==========================================================================
   INTERFACES DE CONNEXION - NS GROUP (STYLE CHIC)
   ========================================================================== */
:root {
    --primary: #ff5e14;
    --primary-hover: #e54e00;
    --dark-bg: #f5f5f5;
    --card-bg: rgba(255, 255, 255, 0.97);
    --input-bg: rgba(0, 0, 0, 0.03);
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: radial-gradient(circle at center, #ffffff 0%, #f0f0f0 100%);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-main);
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-box {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(15px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
    text-align: center;
}

/* --- Ajustements du Logo --- */
.logo-img-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.login-logo {
    max-height: 80px; /* Taille agrandie pour une meilleure visibilité */
    width: auto;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

.brand-section p { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    margin-bottom: 40px; 
    line-height: 1.4;
    font-weight: 300;
}

/* --- Formulaire --- */
.input-group { text-align: left; margin-bottom: 25px; }
.input-group label { 
    display: block; 
    font-size: 12px; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.field {
    background: var(--input-bg);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    transition: var(--transition);
}

.field:focus-within { 
    border-color: var(--primary); 
    background: rgba(255, 94, 20, 0.04);
}

.field input {
    background: transparent;
    border: none;
    color: #1a1a1a;
    padding: 14px 12px;
    width: 100%;
    outline: none;
}

button {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

button:hover { 
    background: var(--primary-hover);
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px rgba(255, 94, 20, 0.4); 
}

.footer-links { margin-top: 30px; font-size: 14px; }
.footer-links a { color: var(--primary); text-decoration: none; }
.hidden { display: none; }


/* --- Ajustements du Logo pour Impact Maximum --- */
.logo-img-wrapper {
    margin-bottom: 10px; /* Un peu plus d'espace sous le gros logo */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* S'assure que le logo est bien centré horizontalement */
}

.login-logo {
    /* On passe à 170px pour un logo bien imposant */
    max-height: 100px; 
    width: auto;
    object-fit: contain;
    /* Un léger filtre pour donner de la profondeur sans changer les couleurs */
    filter: none;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

/* Petit effet au survol du logo pour le côté "Chic" */
.login-logo:hover {
    transform: scale(1.03);
}

.brand-section p { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    margin-bottom: 35px; /* Espace avant le début du formulaire */
    line-height: 1.4;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* --- Alertes Chics --- */
.alert-container {
    margin-bottom: 25px;
    animation: fadeInDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alert-chic {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

/* Style Erreur (Rouge Soft) */
.alert-chic.error {
    background: rgba(255, 82, 82, 0.1);
    color: #ff5252;
    border: 1px solid rgba(255, 82, 82, 0.2);
}

/* Style Succès (Vert Emeraude) */
.alert-chic.success {
    background: rgba(0, 200, 81, 0.1);
    color: #00c851;
    border: 1px solid rgba(0, 200, 81, 0.2);
}

.alert-chic i {
    font-size: 18px;
}

/* Animation d'entrée */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.alert-container {
    margin-bottom: 25px;
    /* On s'assure que l'animation d'entrée ne soit pas en conflit */
    animation: fadeInDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: opacity, transform;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.progress-bar-horizontal {
    display: flex;
    justify-content: space-between;
    width: 300px;
    margin: 20px auto 40px;
    position: relative;
}
.progress-bar-horizontal .line {
    position: absolute; top: 15px; width: 100%; height: 2px; background: #333; z-index: 1;
}
.p-step {
    width: 32px; height: 32px; background: #222; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 2; font-weight: bold; color: #666; transition: 0.3s;
}
.p-step.active { background: #ff5e14; color: white; box-shadow: 0 0 15px rgba(255, 94, 20, 0.4); }



.iti { width: 100%; }
.iti__country-list { background-color: #1a1a1a; color: white; border: 1px solid #333; }
.iti__country:hover { background-color: #ff5e14; }
textarea { 
    background: transparent; border: none; color: white; width: 100%; 
    height: 80px; padding: 10px; resize: none;
}
input:disabled { opacity: 0.6; cursor: not-allowed; color: #ff5e14; }


/* --- Sélection de Rôle --- */
.role-selection {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.role-card {
    flex: 1;
    cursor: pointer;
}

.role-card input {
    display: none; /* Cache le bouton radio par défaut */
}

.role-content {
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    color: var(--text-muted);
}

.role-content i { font-size: 1.4rem; }
.role-content span { font-size: 0.85rem; font-weight: 600; }

/* État sélectionné */
.role-card input:checked + .role-content {
    border-color: var(--primary);
    background: rgba(255, 94, 20, 0.1);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 94, 20, 0.15);
}