/* ============================================
   STYLES POUR LES PAGES D'AUTHENTIFICATION
   ============================================ */


/*STYLE DU MENU DE NAVIGATION DANS LES PAGES D'AUTHENTIFICATION*/


/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.logo img {
    height: 100px;
    width: 180px;
    margin-right: var(--spacing-xs);
}

.nav-menu {
    display: flex;
    list-style: none;
    /*gap: var(--spacing-md);*/
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}




/* Structure principale bloc contenant le Formaulaire d'Authentification et le Sidebar */
.auth-page {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
    min-height: calc(100vh - 80px);
    /*background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
}

.auth-container {
    flex: 1;
    max-width: 800px;
    background: white;
    padding: 40px;
    overflow-y: auto;
    border : 3px solid rgb(209, 222, 209);
    box-shadow: black;
}

.auth-sidebar {
    flex: 0 0 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    border : 3px solid rgb(179, 205, 190);
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.professor-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(138, 43, 226, 0.1);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.professor-badge i {
    font-size: 1.2rem;
}

/* Steps */
.auth-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.auth-steps:before {
    content: '';
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #e9ecef;
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.step.active .step-text {
    color: var(--primary-color);
    font-weight: 600;
}

/* Formulaires */
.auth-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f8f9fa;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: black;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.form-section h3 i {
    color: black;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
} 


/*Style du FOOTER DE LA PAGE D'AUTHENTIFICATION*/

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: var(--spacing-xl) 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.footer-section h3 {
    margin-bottom: var(--spacing-md);
    color: var(--white);
    font-size: 1.2rem;
}

.footer-logo {
    height: 100px;
    width: 150px;
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section i {
    margin-right: var(--spacing-xs);
    width: 20px;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding: var(--spacing-md);
    margin-top: var(--spacing-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gray-medium);
    font-size: 0.9rem;
}















@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group label i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.required {
    color: #e74c3c;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Source Sans Pro', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Photo upload */
.profile-photo-upload {
    margin-bottom: 30px;
}

.photo-upload-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.photo-preview {
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    border: 3px dashed #dee2e6;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview i {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.photo-upload-controls {
    flex: 1;
}

.btn-upload {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-upload:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Password input */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar:before {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: #e74c3c;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

.password-requirements {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    font-size: 0.85rem;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: var(--text-light);
}

.password-requirements li:before {
    content: '✗';
    color: #e74c3c;
}

.password-requirements li.valid:before {
    content: '✓';
    color: #2ecc71;
}

.password-match {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    color: #e74c3c;
    font-size: 0.85rem;
}

.password-match.valid {
    color: #2ecc71;
}

.password-match i {
    font-size: 1rem;
}




/* Styles pour la barre de force du mot de passe */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    width: 0%; /* Initialement vide */
}

.strength-bar.weak {
    background-color: #e74c3c;
}

.strength-bar.medium {
    background-color: #f39c12;
}

.strength-bar.good {
    background-color: #3498db;
}

.strength-bar.excellent {
    background-color: #2ecc71;
}

.strength-text {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 500;
}

.password-requirements {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    font-size: 0.85rem;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.password-requirements li:before {
    content: '✗';
    color: #e74c3c;
    font-weight: bold;
    width: 16px;
    text-align: center;
}

.password-requirements li.valid:before {
    content: '✓';
    color: #2ecc71;
}

.password-match {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #e74c3c;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.password-match.valid {
    color: #2ecc71;
}

.password-match i {
    font-size: 1rem;
}






/* Account type selector */

.account-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.account-type-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}



.account-type-option input {
    position: absolute;
    opacity: 0;
}

.option-content {
    text-align: center;
}

.option-content i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.option-content h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.option-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.account-type-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.account-type-option input:checked + .option-content {
    color: var(--primary-color);
}

.account-type-option input:checked + .option-content {
    border-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.05);
}



/* Mettre en évidence le choix du type de compte */
/* Version CSS uniquement */
.account-type-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.account-type-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Style quand sélectionné - CSS uniquement */
.account-type-option input:checked + .option-content {
    position: relative;
}

.account-type-option input:checked + .option-content::after {
    content: '✓';
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.account-type-option input:checked + .option-content {
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    padding: 15px;
    background: rgba(52, 152, 219, 0.05);
}

.account-type-option input:checked + .option-content i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.account-type-option input:checked + .option-content h4 {
    color: var(--primary-color);
    font-weight: 700;
}

.account-type-option input:checked + .option-content p {
    color: var(--primary-color);
    opacity: 0.9;
}










/* Dynamic lists */
.dynamic-list {
    margin-bottom: 30px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.list-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text-dark);
}

.btn-small {
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: var(--secondary-color);
}

.dynamic-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.item-number {
    font-weight: 600;
    color: var(--text-dark);
}

.btn-remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
}

.btn-remove-item:hover {
    color: #c0392b;
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.tag-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
}

.multi-input {
    display: flex;
    gap: 10px;
}

.multi-input input {
    flex: 1;
}

/* Terms box */
.terms-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.terms-content h4 {
    color: var(--text-dark);
    margin-top: 15px;
    margin-bottom: 10px;
}

.terms-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.terms-content li {
    margin-bottom: 8px;
    color: var(--text-light);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--primary-color);
}

.checkbox.agreement {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

/* Form actions */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.auth-divider {
    margin: 30px 0;
    position: relative;
    text-align: center;
}

.auth-divider span {
    background: white;
    padding: 0 20px;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.auth-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
    z-index: 1;
}

/* Auth footer */
.auth-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar-content {
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
}

.sidebar-content h2 {
    color: white;
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
}

.stats-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.stat-item h3 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.stat-item p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.benefits-list li i {
    font-size: 1.5rem;
    margin-top: 5px;
    color: white;
}

.benefits-list li h4 {
    margin: 0 0 5px;
    color: white;
    font-size: 1.1rem;
}

.benefits-list li p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
}

.testimonial-author span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.modal-icon.success {
    color: #2ecc71;
}

.modal-icon.pending {
    color: #f39c12;
}

.modal-content h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    max-width: 200px;
}

/* Form errors */
.form-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .auth-page {
        flex-direction: column;
    }
    
    .auth-sidebar {
        flex: none;
        width: 100%;
        order: -1;
    }
    
    .auth-container {
        max-width: 100%;
    }
    
    .sidebar-content {
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 20px;
    }
    
    .auth-sidebar {
        padding: 20px;
    }
    
    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .stats-box {
        grid-template-columns: 1fr;
    }
    
    .photo-upload-container {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-actions .btn-primary,
    .modal-actions .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading:after {
    content: '...';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}