body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(90deg, #1c5980 0%, #008c9e 100%) !important;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Conteneur principal */
.login-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 1000px;
    max-width: 95%;

    display: flex; /* Active Flexbox */
    align-items: stretch; /* LA CLÉ : Force les enfants à s'étirer à 100% de la hauteur */

    min-height: 600px; /* Hauteur mini globale */
}

/* COLONNE GAUCHE : Login Classique */
.login-left {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* COLONNE DROITE : Shortcuts Dev */
.login-right {
    flex: 1.2;
    background: #f8f9fa;
    padding: 40px;
    border-left: 1px solid #eee;

    /* IMPORTANT : On change la gestion du scroll */
    /* On enlève max-height pour qu'il suive le parent */
    height: auto;

    display: flex; /* Devient aussi un conteneur flex */
    flex-direction: column; /* Vertical */
}

/* Logo & Titres */
.login-logo {
    max-height: 60px;
    margin-bottom: 30px;
}

h3 {
    font-weight: 700;
    color: #1c5980;
    margin-bottom: 10px;
}

.info-content h4 a {
    color: inherit !important; /* Force la couleur du H4 (#1c5980) */
    text-decoration: none; /* Enlève le soulignement moche */
    border-bottom: 1px solid #1c5980; /* Optionnel : Soulignement discret et stylé */
    transition: opacity 0.2s;
}

.info-content h4 a:hover {
    opacity: 0.7; /* Petit effet au survol pour montrer que c'est cliquable */
    text-decoration: none;
}

h5 {
    font-weight: 600;
    color: #555;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

p.subtitle {
    color: #8898aa;
    margin-bottom: 30px;
}

/* Champs de formulaire (Gauche) */
.form-control {
    height: 50px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding-left: 20px;
    margin-bottom: 20px;
    background: #fcfcfc;
}

.form-control:focus {
    border-color: #1c5980;
    box-shadow: 0 0 0 3px rgba(28, 89, 128, 0.1);
}

/* Bouton Principal (Gauche) */
.btn-main {
    background: linear-gradient(90deg, #1c5980 0%, #008c9e 100%);
    border: none;
    height: 50px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    width: 100%;
    transition: opacity 0.2s;
}

.btn-main:hover {
    opacity: 0.9;
    color: white;
}

/* CARTES SHORTCUTS (Droite) */
/* C'est ici que la magie opère : chaque form est une carte */
.shortcut-form {
    margin-bottom: 10px;
}

.btn-shortcut {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-align: left;
    transition: all 0.2s ease;
    color: #525f7f;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

.btn-shortcut:hover {
    transform: translateX(5px);
    border-color: #1c5980;
    color: #1c5980;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-shortcut i {
    width: 30px;
    font-size: 1.1rem;
    opacity: 0.7;
}

/* Badges de couleur par rôle */
.role-badge {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 20px;
    background: #eee;
    color: #555;
}

/* Couleurs spécifiques par type (Optionnel) */
.group-renatech .btn-shortcut:hover {
    border-left: 4px solid #1c5980;
}

.group-rfnet .btn-shortcut:hover {
    border-left: 4px solid #e83e8c;
}

/* Alertes (Flash messages) */
.alert-area {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 100;
}

/* Nouveau : Lien discret (Mot de passe oublié / Aide) */
.link-muted {
    color: #8898aa;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.link-muted:hover {
    color: #1c5980;
    text-decoration: underline;
}

/* Nouveau : Bouton "Créer un compte" (Outline) */
.btn-outline-custom {
    background: transparent;
    border: 2px solid #e9ecef;
    color: #6c757d;
    height: 50px;
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s;
    display: flex; /* Pour centrer le texte si c'est un lien <a> */
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Important si c'est une balise <a> */
}

.btn-outline-custom:hover {
    border-color: #1c5980;
    color: #1c5980;
    background: #f8fbff;
    text-decoration: none;
}

/* Petit séparateur "OU" */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #adb5bd;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e9ecef;
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

.toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.toggle-wrapper {
    background: #e9ecef; /* Fond gris du switch */
    padding: 5px;
    border-radius: 50px;
    display: inline-flex;
}

.toggle-btn {
    border: none;
    background: transparent;
    padding: 8px 25px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none !important;
}

/* L'état actif (Bouton Blanc) */
.toggle-btn.active {
    background: white;
    color: #1c5980; /* Ton bleu */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* --- STYLE DE LA VUE "INFOS" --- */
.info-content h4 {
    color: #1c5980;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.info-content p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.network-logo-container {
    text-align: center;
    margin: 40px 0 5px 0;
    padding: 20px;
    justify-content: center; /* Centre horizontalement */
}

.network-logo-img {
    max-height: 80px; /* Taille max du logo réseau */
    max-width: 100%;
}

.animate-fade-in {
    transition: opacity 0.3s ease;
}

div#view-info {
    position: sticky;
}