:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --warning: #f8961e;
    --info: #4895ef;

    --primary-0: #e7f3fd ;
    --primary-100: #e9f5ff;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;

    --accent-pink: #f472b6;
    --accent-purple: #a855f7;
    --accent-teal: #14b8a6;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;

    --hero-gradient-start: var(--primary-100);
    --hero-gradient-end: var(--primary-200);
}


/* Poppins Thin (100) */
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-ThinItalic.ttf') format('truetype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

/* Poppins ExtraLight (200) */
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-ExtraLightItalic.ttf') format('truetype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

/* Poppins Light (300) */
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Poppins Regular (400) */
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Poppins Medium (500) */
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* Poppins SemiBold (600) */
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* Poppins Bold (700) */
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Poppins ExtraBold (800) */
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* Poppins Black (900) */
@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/fonts/Poppins-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}


body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
}


body {
    font-family: 'Poppins', sans-serif;
    /*background-color: var(--primary-0);*/
    color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.login-container {
    width: 100%;
    max-width: 450px; /* Ajustez la largeur selon vos préférences */
    padding: 20px;
}

.login-box {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Ombre douce pour la profondeur */
    text-align: center;
}

/*
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.8rem;    
    margin-bottom: 30px;
}

.logo a {text-decoration: none;color: var(--dark);}

.logo i {
    margin-right: 10px;
    color: var(--accent);
}
*/

/* Style pour le conteneur logo + titre */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.logo {
    font-weight: 600;
    font-size: 1.6rem;
}

.logo a {
    text-decoration: none;
    color: var(--dark);
}


.page-title {
    color: var(--secondary);
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
}


/* Ajustement responsive */
@media (max-width: 576px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.4rem;
    }
}

.btn-large {
  padding:15px 30px;
  font-size: 1.1rem;
}

/*

h2 {
    color: var(--secondary);
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 2rem;
}
*/

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    background-color: var(--gray-50);
}

.input-icon i {
    padding: 10px 15px;
    color: var(--gray-400);
}

.input-icon input {
    border: none;
    padding: 12px 15px;
    border-radius: 0 10px 10px 0;
    flex-grow: 1;
    font-size: 1rem;
    background-color: transparent;
    color: var(--dark);
}

.input-icon input:focus {
    outline: none;
}

.password-input {
    position: relative; /* Pour positionner correctement le toggle */
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gray-500);
    padding: 0 10px; /* Pour augmenter la zone cliquable */
}

.password-toggle:hover {
    color: var(--primary);
}


.btn-primary {
    background: linear-gradient(to right, var(--primary-500), var(--accent-purple)); /* Dégradé moderne */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block; /* Pour occuper toute la largeur disponible */
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.4); /* Ombre plus marquée au survol */
}

.form-links {
    margin-top: 15px;
    text-align: right;
}

.form-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.form-links a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.auth-switch {
    margin-top: 30px;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.auth-switch a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Responsive adjustments (si nécessaire) */
@media (max-width: 576px) {
    .login-box {
        padding: 30px;
    }

    .logo {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .form-wrapper h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .input-group {
        margin-bottom: 15px;
    }

    .btn-primary {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

/* Styles pour la sélection de type d'utilisateur */
.user-type-selection {
    margin-bottom: 20px;
}

.user-type-selection label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.radio-options {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    cursor: pointer;
    margin-right: 6px;
    accent-color: #2196F3; /* Couleur bleue pour les boutons radio sélectionnés */
}

.radio-option label {
    cursor: pointer;
    margin-bottom: 0;
    font-weight: normal;
}

/* Animation au hover */
.radio-option:hover label {
    color: #2196F3;
}

/* Style pour les boutons radio sélectionnés */
.radio-option input[type="radio"]:checked + label {
    color: #2196F3;
    font-weight: 500;
}

/* Style pour les messages d'erreur */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 5px;
    display: none;
}

.input-group.error input {
    border-color: #e74c3c;
}

/* Style pour les critères de mot de passe */
.password-criteria {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.password-criteria.valid {
    color: #27ae60;
}

/* Style pour le champ de sélection de classe */
.form-select {
    border: none;
    padding: 12px 15px;
    border-radius: 0 10px 10px 0;
    flex-grow: 1;
    font-size: 1rem;
    background-color: transparent;
    color: var(--dark);
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px 12px;
}

.form-select:focus {
    outline: none;
}

/* Style pour les groupes d'options */
optgroup {
    font-weight: 600;
    color: var(--primary-700);
}

option {
    font-weight: normal;
    color: var(--dark);
    padding: 8px;
}

/* Animation pour les transitions d'affichage */
.input-group {
    transition: all 0.3s ease;
}

#class-selection-group, #bloc-prenom {display: none}

/* Styles pour le formulaire de mot de passe oublié */
.section-title {
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: left;
}

.form-description {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 25px;
    text-align: left;
}

.form-notification {
    background-color: var(--primary-100);
    border-left: 4px solid var(--primary-500);
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.form-notification i {
    color: var(--primary-500);
    font-size: 1.5rem;
    margin-right: 12px;
}

.form-notification p {
    color: var(--gray-700);
    margin: 0;
    font-size: 0.95rem;
}

#forgot-password-form-wrapper .btn-primary {
    margin-top: 10px;
}

/* Bouton retour */
.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-600);
    font-size: 0.9rem;
    margin-top: 15px;
    text-decoration: none;
    cursor: pointer;
}

.back-link i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.back-link:hover {
    color: var(--primary-700);
    text-decoration: underline;
}