* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    background: #191a1f;
    overflow-x: hidden;
}

.logo {
    position: fixed;
    top: 40px;
    left: 6.7%;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 100;
}

.logo span {
    color: #e5a00d;
}

.slider-container {
    display: flex;
    height: 100vh;
    width: 300vw;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    overflow-x: hidden;
}

.slide {
    min-width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(0deg, transparent, rgb(25, 26, 31)), 
                linear-gradient(80deg, transparent, rgb(25, 26, 31)), 
                linear-gradient(300deg, transparent, rgb(25, 26, 31)), 
                url("../../img/background/back_login.jpg");
    background-size: cover;
    background-position: center;
    overflow-x: hidden;

}

.content-box {
    max-width: 500px;
    width: 100%;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: white;
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 700;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: white;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(26, 26, 26, 0.8);
    transition: all 0.3s;
    border: 1px solid #3e3e3e;
    color: white;
}

input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(229, 160, 13, 0.3);
    border: 1px solid #e5a00d;
}

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.password-strength.show {
    display: block;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 2px;
}

.password-strength.weak .password-strength-bar {
    width: 33%;
    background: #ef4444;
}

.password-strength.medium .password-strength-bar {
    width: 66%;
    background: #f59e0b;
}

.password-strength.strong .password-strength-bar {
    width: 100%;
    background: #10b981;
}

.profile-preview-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-banner-preview {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1e1e1e 0%, #0f0f0f 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.profile-banner-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.profile-banner-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
}

.profile-banner-preview:hover .banner-overlay {
    opacity: 1;
}

.banner-overlay i {
    font-size: 32px;
    margin-bottom: 8px;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.profile-avatar-preview:hover {
    transform: scale(1.05);
    border-color: #e5a00d;
}

.profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.5);
}

.profile-info {
    flex: 1;
}

.profile-info input {
    margin-bottom: 0;
}

.nav-buttons {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

button {
    flex: 1;
    padding: 18px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background-color: #e5a00d;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background-color: #d4940a;
    box-shadow: 0 8px 16px rgba(229, 160, 13, 0.3);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.text-link {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.text-link a {
    color: #e5a00d;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.text-link a:hover {
    text-decoration: underline;
}

.dots {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    pointer-events: none;

}

.dot.active {
    background: #e5a00d;
    width: 32px;
    border-radius: 6px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #1a1b20;
    padding: 30px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.grid img:hover {
    transform: scale(1.05);
    border-color: #e5a00d;
}

.grid img.selected {
    border-color: #e5a00d;
    box-shadow: 0 0 20px rgba(229, 160, 13, 0.5);
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.banner-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.banner-grid img:hover,
.banner-grid img.selected {
    border-color: #e5a00d;
    transform: scale(1.02);
}

.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.message.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

.footer-branding {
    position: fixed;
    bottom: 40px;
    right: 6.7%;
    opacity: 0.5;
}

.footer-branding img {
    width: 200px;
    height: auto;
    filter: brightness(0.8);
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    .logo {
        font-size: 1.5rem;
        left: 20px;
        top: 20px;
    }

    .profile-avatar-section {
        flex-direction: column;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .banner-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .footer-branding {
        display: none;
    }
    .content-box{
        margin-top: 50px;
        padding: 80px 0px;
    }
    .slide {
        height: 110vh;
    }
}


/* Ajouter ces styles à votre fichier join.css */

/* Groupe pour la checkbox "Se souvenir de moi" */
.remember-me {
    margin: 1rem 0;
}

/* Container personnalisé pour la checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.checkbox-container:hover {
    color: #e5a00d;
}

/* Cacher la checkbox par défaut */
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Créer une checkbox personnalisée */
.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Au survol */
.checkbox-container:hover .checkmark {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(229, 160, 13, 0.5);
}

/* Quand la checkbox est cochée */
.checkbox-container input:checked ~ .checkmark {
    background-color: #e5a00d;
    border-color: #e5a00d;
}

/* Créer l'indicateur (caché quand non coché) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Afficher l'indicateur quand coché */
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Style de l'indicateur/coche */
.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Animation de coche */
@keyframes checkAnim {
    0% {
        height: 0;
    }
    100% {
        height: 10px;
    }
}

.checkbox-container input:checked ~ .checkmark:after {
    animation: checkAnim 0.2s ease-in-out;
}

.info-box {
    background: transparent;
    border-radius: 12px;
    padding: 20px 24px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgb(255, 179, 0);
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(85, 85, 85, 0.1);
    pointer-events: none;
    filter: blur(.90);
}

.info-box .icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    vertical-align: middle;
}

.info-box p {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.info-box strong {
    font-weight: 600;
    font-size: 17px;
}

@media (max-width: 768px) {
    .info-box {
        padding: 16px 20px;
    }

    .info-box p {
        font-size: 15px;
    }
}


.modal#avatarModal .modal-content {
    max-width: 800px;
    background: #1a1a1a;
    border-radius: 16px;
    padding: 0;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal#avatarModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
}

.modal#avatarModal .modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: all 0.3s;
    padding: 0;
}

.close-modal .bx:hover{
    color: gray;
}

/* Filtres */
.category-filters {
    display: flex;
    gap: 8px;
    padding: 20px 30px;
    overflow-x: auto;
}

.category-filters::-webkit-scrollbar {
    height: 4px;
}

.category-filters::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
    background: #d4940a36;
    border: 1px solid #d4940a;
}

/* Catégories */
.avatar-categories {
    padding: 20px 30px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.avatar-categories::-webkit-scrollbar {
    width: 8px;
}

.avatar-categories::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.avatar-categories::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.category-section {
    margin-bottom: 30px;
}

.category-section.hidden {
    display: none;
}

.category-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Scroll Container */
.avatar-scroll-container {
    position: relative;
    overflow: hidden;
}

.avatar-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.avatar-slider::-webkit-scrollbar {
    display: none;
}

.avatar-option {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.avatar-option:hover {
    border-color: #d4940a;
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: #d4940a;
    box-shadow: 0 0 20px rgba(212, 148, 10, 0.5);
}

/* Boutons de scroll */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0;
}

.avatar-scroll-container:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn:hover {
    background: #d4940a;
    transform: translateY(-50%) scale(1.1);
}

.scroll-left {
    left: -12px;
}

.scroll-right {
    right: -12px;
}

/* Responsive */
@media (max-width: 768px) {
    .modal#avatarModal .modal-content {
        max-width: 95%;
    }

    .avatar-option {
        width: 70px;
        height: 70px;
    }

    .category-filters {
        padding: 15px 20px;
    }

    .avatar-categories {
        padding: 15px 20px;
    }
}