
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background: linear-gradient(135deg, #fc781a 0%, #764ba2 100%);
        min-height: 50vh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px;
    }

    /* ========== CONTENEUR MODAL ========== */
    .modal-container {
        background: white;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        width: 80%;
        max-width: 900px;
        overflow: hidden;
        display: flex;
        min-height: 5   00px;
        animation: scaleIn 0.5s ease;
    }

    @keyframes scaleIn {
        from {
            opacity: 0;
            transform: scale(0.9);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    /* ========== SECTION GAUCHE (IMAGE + TEXTE) ========== */
    .modal-left {
        flex: 1;
        background: linear-gradient(135deg,#f8fafc 0%, #eef2f7 100%);
        color: white;
        padding: 60px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow: hidden;
        text-align: center;
    }

    .modal-left::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(0, 0, 0, 0.04) 0%, transparent 70%);
        animation: pulse 15s ease-in-out infinite;
    }

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

    .hero-image {
        width: 100%;
        max-width: 500px;
        height: auto;
        position: relative;
        z-index: 1;
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
        animation: float 3s ease-in-out infinite;
        background: transparent;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }

    .modal-left h1 {
        font-size: 2.2em;
        margin-bottom: 20px;
        position: relative;
        z-index: 1;
        font-weight: 700;
        line-height: 1.2;
        color: black;
    }

    .modal-left p {
        font-size: 1.05em;
        line-height: 1.6;
        opacity: 0.95;
        position: relative;
        z-index: 1;
        max-width: 450px;
        color: black;
    }

    /* ========== SECTION DROITE (FORMULAIRE) ========== */
    .modal-right {
        flex: 1;
        padding: 60px 50px;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .login-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .login-header h2 {
        font-size: 2em;
        color: #333;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .login-header p {
        color: #666;
        font-size: 1em;
    }

    /* ========== MESSAGES ========== */
    .messages {
        margin-bottom: 25px;
    }

    .alert {
        padding: 14px 18px;
        border-radius: 10px;
        margin-bottom: 15px;
        font-size: 14px;
        animation: slideDown 0.3s ease;
        display: flex;
        align-items: center;
        gap: 10px;
    }

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

    .alert-error {
        background: #fee2e2;
        color: #991b1b;
        border-left: 4px solid #ef4444;
    }

    .alert-success {
        background: #d1fae5;
        color: #065f46;
        border-left: 4px solid #10b981;
    }

    /* ========== FORMULAIRE ========== */
    .form-group {
        margin-bottom: 25px;
    }

    label {
        display: block;
        margin-bottom: 8px;
        color: #333;
        font-weight: 600;
        font-size: 14px;
    }

    .input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }

    input {
        width: 100%;
        padding: 14px 16px;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        font-size: 15px;
        transition: all 0.3s;
        background: #fafafa;
        font-family: inherit;
    }

    input:focus {
        outline: none;
        border-color: #fc781a;
        background: white;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .password-toggle {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        color: #9ca3af;
        transition: color 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .password-toggle:hover {
        color: #e66204;
    }

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

    .forgot-password a {
        color: #e66204;
        text-decoration: none;
        font-size: 14px;
        font-weight: 400;
        transition: color 0.3s;
    }

    .forgot-password a:hover {
        color: #e66204;
        text-decoration: underline;
    }

    .submit-btn {
        width: 100%;
        padding: 16px;
        border: none;
        background: linear-gradient(135deg, #e66204 0%, #e66204 100%);
        color: white;
        font-size: 16px;
        font-weight: 600;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s;
        margin-top: 10px;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

    /* ========== RESPONSIVE ========== */
    @media (max-width: 968px) {
        .modal-container {
            flex-direction: column;
            max-width: 500px;
        }

        .modal-left {
            padding: 40px 30px;
            min-height: auto;
        }

        .hero-image {
            max-width: 250px;
            margin-bottom: 1.5rem;
        }

        .modal-left h1 {
            font-size: 1.8em;
        }

        .modal-left p {
            font-size: 0.95em;
        }

        .modal-right {
            padding: 40px 30px;
        }

        .login-header h2 {
            font-size: 1.6em;
        }
    }

    @media (max-width: 640px) {
        body {
            padding: 10px;
        }

        .modal-container {
            border-radius: 15px;
        }

        .modal-left {
            padding: 30px 20px;
        }

        .hero-image {
            max-width: 200px;
        }

        .modal-left h1 {
            font-size: 1.5em;
        }

        .modal-right {
            padding: 30px 20px;
        }

        .login-header h2 {
            font-size: 1.4em;
        }
    }