.auth-wrapper-modern {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
}

.auth-section-left {
    flex: 1;
    background: linear-gradient(135deg, #0d683d 0%, #77a308 100%);
    background-image: url("../login.jpe");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 85, 48, 0.75);
    backdrop-filter: blur(1px);
}

.auth-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.auth-logo {
    margin-bottom: 3rem;
}

.logo-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.auth-brand {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
    color: #0d683d;
}

.titrep {
    background: #ffffff80;
    border-radius: 30px;
    padding: 14px;
    color: #274f2c;
}

.auth-description{
    width: 80% !important;
    margin: auto !important;
}

.auth-description h3 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-description p {
    font-size: 1.15rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Styles pour le bouton de don - Desktop */
.donation-section {
    margin-top: 2rem;
}

.btn-donation {
    background: linear-gradient(45deg, #77a308, #0d683d);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px #0d683d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-donation:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #0d683d46;
    color: white;
    text-decoration: none;
}

.btn-donation i {
    font-size: 1.1rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

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

.donation-text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Styles pour le bouton de don - Mobile */
.donation-mobile {
    display: none;
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
}

.btn-donation-mobile {
    background: linear-gradient(45deg, #77a308, #0d683d);
    border: none;
    border-radius: 20px;
    padding: 10px 25px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px #0d683d46;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-donation-mobile:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px #0d683d46;
    color: white;
    text-decoration: none;
}

.btn-donation-mobile i {
    font-size: 1rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.donation-text-mobile {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.auth-section-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
}

.auth-form-container {
    width: 100%;
    max-width: 450px;
}

.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 3rem;
}

.form-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1.5rem;
}

.form-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #0d683d;
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.2);
}

.form-header h4 {
    color: #0d683d;
    font-size: 1.6rem;
    font-weight: 600;
}

.form-header p {
    font-size: 0.95rem;
    margin: 0;
    color: #666;
}

.btn-primary {
    /* background: linear-gradient(45deg, #0d683d, #77a308); */
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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 ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 85, 48, 0.3);
}

.form-control {
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    padding: 14px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control:focus {
    border-color: #0d683d;
    box-shadow: 0 0 0 0.2rem rgba(44, 85, 48, 0.15);
    background: white;
}

.form-control:hover {
    border-color: #0d683d;
    background: white;
}

.spinnerl {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-primary {
    color: #0d683d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-primary:hover {
    color: #77a308;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-wrapper-modern {
        flex-direction: column;
    }

    .auth-section-left {
        display: none;
    }

    .auth-section-right {
        flex: 1;
        min-height: 100vh;
        padding: 1rem;
    }

    .card-body {
        padding: 2rem;
    }

    .form-logo {
        width: 120px;
        height: 120px;
    }

    .donation-mobile {
        display: block;
    }
}

.custom-swal-popup {
    border-radius: 15px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15) !important;
}

.custom-swal-title {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #0d683d !important;
}

.custom-swal-content {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: #666 !important;
}

.custom-swal-confirm {
    border-radius: 10px !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
}

.custom-swal-cancel {
    border-radius: 10px !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
}

/* Styles pour les boutons de sélection de méthode de récupération */
.recovery-method-selection .btn-outline-primary {
    border-color: #1c4021;
    color: #1c4021;
    background-color: transparent;
    transition: all 0.3s ease;
}

.recovery-method-selection .btn-outline-primary:hover {
    background-color: white;
    border-color: #1c4021;
    color: #1c4021;
}

.recovery-method-selection .btn-check:checked + .btn-outline-primary {
    color: white;
    border-color: #0d683d;
    background: linear-gradient(45deg, #77a308, #0d683d);
}

.recovery-method-selection .btn-outline-primary:focus {
    border-color: #1c4021;
}

.recovery-method-selection .btn-outline-primary:active {
    background-color: #6b9307;
    border-color: #6b9307;
    color: white;
}

.otp-container {
    display: none;
}
.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}
.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.otp-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}
.countdown-timer {
    text-align: center;
    margin: 15px 0;
    font-weight: 500;
}
.resend-section {
    text-align: center;
    margin-top: 15px;
}
.fade-transition {
    transition: opacity 0.5s ease-in-out;
}
.recovery-method-selection {
    transition: all 0.3s ease;
}

.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1rem;
}
.error-code {
    font-size: 6rem;
    font-weight: 900;
    color: #0d683d;
    line-height: 1;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}
.floating-text {
    animation: floatText 4s ease-in-out infinite;
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}
@keyframes floatText {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}
.retry-btn {
    background: linear-gradient(45deg, #0d683d, #0d683d);
    border: none;
    border-radius: 10px;
    padding: 14px 30px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px;
}
.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 85, 48, 0.3);
    color: white;
    text-decoration: none;
}













/* Styles pour la section des boutons - Desktop */
.buttons-section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.button-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-register {
    background: none;
    border: solid 2px #fff;
    border-radius: 25px;
    padding: 12px 30px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px #77a308;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
    justify-content: center;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #77a308;
    border: solid 2px #fff;
    color: #ffff;
    text-decoration: none;
}

.btn-register i {
    font-size: 1.1rem;
}

.btn-donation {
    background: linear-gradient(45deg, #77a308, #0d683d);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 104, 61, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
    justify-content: center;
}

.btn-donation:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 104, 61, 0.5);
    color: white;
    text-decoration: none;
}

.btn-donation i {
    font-size: 1.1rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.buttons-text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Responsive pour tablette */
@media (max-width: 992px) {
    .buttons-section {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .button-container {
        flex: 1;
        min-width: 200px;
    }
    
    .btn-register,
    .btn-donation {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: unset;
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .buttons-section {
        display: none; /* Caché sur mobile car on a les boutons dans la section mobile */
    }
}

/* Ajustements pour le bouton mobile existant */
.donation-mobile {
    display: none;
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
}

.btn-donation-mobile {
    background: linear-gradient(45deg, #77a308, #0d683d);
    border: none;
    border-radius: 20px;
    padding: 10px 25px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(13, 104, 61, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
}

.btn-donation-mobile:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13, 104, 61, 0.4);
    color: white;
    text-decoration: none;
}

.btn-register-mobile {
    background: linear-gradient(45deg, #1a365d, #2c5282);
    border: none;
    border-radius: 20px;
    padding: 10px 25px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(26, 54, 93, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
}

.btn-register-mobile:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.4);
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .donation-mobile {
        display: block;
    }
}