.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-violet) 100%);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-violet));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.3);
    animation: pulse 2s infinite;
}

.auth-logo i {
    font-size: 2.5rem;
    color: white;
}

.form-floating {
    margin-bottom: 1.5rem;
}

.form-floating .form-control {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1rem 1rem 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-floating .form-control:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
    background: white;
}

.form-floating .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-floating label {
    color: var(--gray);
    font-weight: 500;
}

.step-progress {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    background: var(--primary-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.step-label {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.step.active .step-circle {
    background: var(--primary-violet);
}

.step.active .step-label {
    color: var(--dark-gray);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.role-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.role-option {
    flex: 1;
    text-align: center;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.role-option:hover {
    border-color: var(--primary-pink);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.2);
}

.role-option.selected {
    border-color: var(--primary-pink);
    background: linear-gradient(135deg, var(--light-pink), var(--light-violet));
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.role-icon {
    font-size: 2rem;
    color: var(--primary-pink);
    margin-bottom: 0.5rem;
}

.role-title {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.role-description {
    font-size: 0.85rem;
    color: var(--gray);
}

.role-description small {
    display: block;
    margin-top: 0.25rem;
}

.password-toggle {
    position: relative;
}

.password-toggle-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--gray);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

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

.specialty-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.specialty-item:last-child {
    border-bottom: none;
}

.specialty-item .form-check-label {
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.specialty-item .form-check-label:hover {
    background-color: rgba(138, 43, 226, 0.05);
}

.specialty-item .form-check-input:checked+.form-check-label {
    background-color: rgba(138, 43, 226, 0.1);
}

.btn-register {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-violet));
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-register:hover::before {
    left: 100%;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.4);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-violet));
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.auth-footer a {
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--accent-pink);
}

.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-shapes .shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.floating-shapes .shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shapes .shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-shapes .shape:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.form-check {
    margin: 1.5rem 0;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--primary-pink);
    border-radius: 4px;
    margin-right: 0.75rem;
}

.form-check-input:checked {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
}

.form-check-label {
    color: var(--dark-gray);
    font-weight: 500;
    cursor: pointer;
}

.social-login {
    margin: 2rem 0;
    text-align: center;
}

.social-login .divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray);
}

.social-login .divider::before,
.social-login .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.social-login .divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-social {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    background: white;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-social:hover {
    border-color: var(--primary-pink);
    color: var(--primary-pink);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.2);
}

.welcome-message {
    background: linear-gradient(135deg, var(--light-pink), var(--light-violet));
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 105, 180, 0.2);
}

.welcome-message h3 {
    color: var(--primary-pink);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.9rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(2deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(20px) rotate(-2deg);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message i {
    font-size: 0.75rem;
}

/* Styles pour les messages d'erreur */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.is-invalid~.invalid-feedback {
    display: block;
}

/* Styles pour la validation du mot de passe */
.password-requirements li {
    transition: all 0.3s ease;
}

.password-requirements .text-success {
    color: #28a745;
}

.password-requirements .text-danger {
    color: #dc3545;
}

/* Styles pour les petits écrans */
@media (max-width: 768px) {
    .auth-card {
        margin: 1rem;
        border-radius: 20px;
        z-index: 10;
    }

    .role-selector {
        flex-direction: column;
    }

    .floating-shapes {
        display: none;
    }

    .auth-card {
        margin: 1rem;
        border-radius: 20px;
    }

    .role-selector {
        flex-direction: column;
    }

    .floating-shapes {
        display: none;
    }

    .social-buttons {
        align-items: center;
    }

    .floating-shapes {
        display: none;
    }
}

/* Experience slider improvements */
.range-slider {
    padding: 1.5rem 0;
    position: relative;
}

.range-slider .form-range {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--primary-pink) 0%, var(--primary-violet) 100%);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.range-slider .form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-pink);
    transition: all 0.2s ease;
}

.range-slider .form-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.range-slider .form-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-pink);
    transition: all 0.2s ease;
    border: none;
}

.range-slider .form-range::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.range-values {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    justify-content: space-between;
}

.range-values span {
    position: relative;
    display: inline-block;
    padding: 0 5px;
}

.range-values span:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: #ddd;
}

#experience-value {
    font-weight: bold;
    color: var(--primary-pink);
    font-size: 1.3rem;
    background: rgba(255, 105, 180, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    min-width: 50px;
    text-align: center;
}

/* ==================== */
/* EXIGENCES MOT DE PASSE */
/* ==================== */

.password-requirements {
    background: rgba(0, 0, 0, 0.03);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    border-left: 3px solid var(--primary-violet);
}

.password-requirements p {
    font-weight: 500;
    color: var(--dark-violet);
}

.password-requirements ul {
    margin-bottom: 0;
    margin-top: 0.5rem;
}

.password-requirements li {
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.password-requirements i {
    margin-right: 0.5rem;
    width: 1em;
    text-align: center;
    font-size: 0.9em;
}

/* ==================== */
/* INDICATEUR MOBILE */
/* ==================== */

.mobile-step-indicator {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.mobile-step-indicator .step-circle {
    width: 50px;
    height: 50px;
    background: var(--primary-violet);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.25);
}

.mobile-step-indicator .step-label {
    font-size: 1rem;
    color: var(--dark-violet);
    font-weight: 600;
    margin-top: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Adaptation mobile */
@media (max-width: 576px) {
    .mobile-step-indicator .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .mobile-step-indicator .step-label {
        font-size: 0.85rem;
    }
}

/* Correction pour la barre de progression desktop */
.step-progress {
    display: none;
    /* Masqué par défaut */
}

@media (min-width: 992px) {
    .step-progress {
        display: flex;
        /* Visible seulement sur desktop */
    }
}

/* Adaptation responsive de la barre de progression */
@media (max-width: 768px) {
    .step-progress {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .step {
        flex: 0 0 calc(33% - 1rem);
        margin-bottom: 1rem;
    }

    .step-progress::before {
        display: none;
        /* Masque la ligne sur mobile */
    }

    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.7rem;
    }
}

/* Nouveau style pour mobile */
@media (max-width: 768px) {
    .step-progress {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .step {
        display: none;
        flex: 1;
        text-align: center;
    }

    .step.active {
        display: block;
    }

    .step-progress::before,
    .step-progress::after {
        content: '';
        flex: 1;
        height: 2px;
        background: #e9ecef;
        margin: 0 10px;
    }

    .mobile-step-nav {
        display: flex;
        justify-content: space-between;
        margin-top: 1rem;
    }
}