* {
    font-family: 'Exo', sans-serif;
}

.loginBody {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5faf7 0%, #e2d3c3 100%);
    padding: 20px;
}

.loginBody .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loginBody .mainer {
    display: flex;
    margin: 0;
    width: 100%;
    max-width: 800px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-height: 450px;
}

/* Partie gauche - Image avec fond vert */
.loginBody .part2 {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #1a5f2a 0%, #2d8a3e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 300px;
}

.loginBody .part2 .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.loginBody .part2 .bg .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

.loginBody .part2 .content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 30px;
    top: 100px;
}

.loginBody .part2 .content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.loginBody .part2 .content p {
    font-size: 14px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Partie droite - Formulaire */
.loginBody .part1 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
    border: none;
}

.loginBody .part1 .card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border: none;
}

.loginBody .part1 .logo {
    text-align: left;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.loginBody .part1 .logo img {
    max-width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.loginBody .part1 .logo img:hover {
    transform: scale(1.05);
}

.loginBody .logo-link {
    text-decoration: none;
    display: inline-block;
}

.loginBody .back-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #495057;
    text-decoration: none;
}

.loginBody .back-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #343a40;
}

.loginBody .back-btn i {
    font-size: 14px;
}

.loginBody .part1 h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.loginBody .part1 .subtitle {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-bottom: 20px;
}

.loginBody .form-group {
    margin-bottom: 15px;
    position: relative;
}

.loginBody .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 12px;
}

.loginBody .form-control {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.loginBody .form-control:focus {
    border-color: #28a745;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.loginBody .form-control::placeholder {
    color: #aaa;
}

/* Pas de padding à gauche pour les inputs de mot de passe */
.loginBody .form-control.password-input {
    padding: 10px 40px 10px 15px;
}

/* Pas de padding à gauche pour l'input téléphone */
.loginBody .form-control.phone-input {
    padding: 10px 15px 10px 15px;
}

/* Override intl-tel-input styles */
.iti {
    width: 100%;
}

.iti__flag-container {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    padding: 1px;
}

.iti__selected-flag {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    padding: 0 6px 0 6px;
}

.iti__selected-dial-code {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 70px;
    font-size: 12px;
    color: #495057;
    display: none;
    padding-right: 5px;
}

.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
    background-color: transparent;
}

.iti--allow-dropdown .iti__flag-container:has(.iti__selected-flag:hover) {
    background-color: transparent;
}

.loginBody .input-icon {
    position: absolute;
    left: 12px;
    top: 68%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    cursor: pointer;
}

.loginBody .input-icon:hover {
    color: #28a745;
}

/* Icône de mot de passe à droite */
.loginBody .input-icon.password-toggle {
    left: auto;
    right: 12px;
}

.loginBody .forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.loginBody .forgot-password a {
    color: #28a745;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.loginBody .forgot-password a:hover {
    text-decoration: underline;
}

.loginBody .btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.loginBody .btn-primary:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.loginBody .register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: #666;
}

.loginBody .register-link a {
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
}

.loginBody .register-link a:hover {
    text-decoration: underline;
}

/* Champs obligatoires */
.loginBody .required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

.loginBody .form-text {
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
    display: block;
}

/* Animations d'apparition */
.loginBody .mainer {
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loginBody .part2 {
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loginBody .part1 {
    animation: slideInRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loginBody .part2 .content h1 {
    animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.loginBody .part2 .content p {
    animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.loginBody .part1 .logo {
    animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.loginBody .part1 h2 {
    animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.loginBody .part1 .subtitle {
    animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

.loginBody .form-group {
    animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.loginBody .form-group:nth-child(1) {
    animation-delay: 0.5s;
}

.loginBody .form-group:nth-child(2) {
    animation-delay: 0.6s;
}

.loginBody .form-group:nth-child(3) {
    animation-delay: 0.7s;
}

.loginBody .form-group:nth-child(4) {
    animation-delay: 0.8s;
}

.loginBody .form-group:nth-child(5) {
    animation-delay: 0.9s;
}

.loginBody .form-group:nth-child(6) {
    animation-delay: 1.0s;
}

.loginBody .form-group:nth-child(7) {
    animation-delay: 1.1s;
}

.loginBody .btn-primary {
    animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s both;
}

.loginBody .register-link {
    animation: fadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.3s both;
}

.loginBody .back-btn {
    animation: fadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

/* Keyframes pour les animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* Register specific styles */
.registerB .mainer {
    max-width: 1000px;
    min-height: 600px;
}

.registerB .part2 .content {
    margin-top: 120px;
}

.registerB .part1 .card {
    max-width: 100%;
    padding: 0;
}

.registerB .row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.registerB .col-md-6 {
    flex: 1;
}

.registerB .col-md-12 {
    width: 100%;
}

.registerB .form-check {
    margin-bottom: 15px;
}

.registerB .form-check input {
    margin-right: 8px;
}

.registerB .form-check span {
    font-size: 12px;
    color: #666;
}

.registerB .form-check a {
    color: #28a745;
    text-decoration: none;
}

.registerB .form-check a:hover {
    text-decoration: underline;
}

.registerB .password-requirements {
    display: none;
    position: absolute;
    width: 260px;
    top: 100%;
    left: 0;
    z-index: 1000;
    padding: 12px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
    font-size: 11px;
}

.registerB .password-requirements.show {
    display: block;
}

.registerB .password-requirements p {
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.registerB .password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.registerB .password-requirements li {
    margin-bottom: 3px;
    color: #dc3545;
}

.registerB .password-requirements li.valid {
    color: #28a745;
}

.registerB .btn-primary:disabled {
    background-color: #28a745;
    opacity: 0.5;
    cursor: not-allowed;
}

.registerB #submit-message {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .loginBody .mainer {
        flex-direction: column;
    }

    .loginBody .part2 {
        min-height: 250px;
    }

    .loginBody .part1 {
        padding: 30px;
    }

    .loginBody .part2 .content {
        margin-top: 0;
        padding: 20px;
    }

    .loginBody .part2 .content h1 {
        font-size: 24px;
    }

    .loginBody .part2 .content p {
        font-size: 14px;
    }

    .loginBody .part2 .bg .bg-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: auto;
        image-rendering: crisp-edges;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .registerB .part2 .content {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .loginBody {
        padding: 10px;
    }

    .loginBody .mainer {
        border-radius: 15px;
    }

    .loginBody .part2 {
        min-height: 280px;
    }

    .loginBody .part1 {
        padding: 20px;
    }

    .loginBody .part1 .logo img {
        max-width: 80px;
    }

    .loginBody .part1 h2 {
        font-size: 20px;
    }

    .loginBody .part1 .subtitle {
        font-size: 12px;
    }

    .loginBody .form-group {
        margin-bottom: 15px;
    }

    .loginBody .form-control {
        padding: 12px 15px 12px 40px;
        font-size: 14px;
    }

    .loginBody .btn-primary {
        padding: 12px;
        font-size: 14px;
    }

    .loginBody .part2 .bg .bg-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: auto;
        image-rendering: crisp-edges;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }

    .registerB .part2 .content {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .loginBody .part2 {
        min-height: 320px;
    }

    .loginBody .part2 .content h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .loginBody .part2 .content p {
        font-size: 12px;
        line-height: 1.4;
    }

    .registerB .part2 .content {
        margin-top: 0;
    }

    .loginBody .part2 .bg .bg-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: auto;
        image-rendering: crisp-edges;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
        -webkit-font-smoothing: antialiased;
    }
}